On 2024/7/18 16:35, Gao Xiang wrote:
On 2024/7/18 16:32, Gao Xiang wrote:
From: Hongbo Li via Linux-erofs <linux-erofs@lists.ozlabs.org>
Also I will fix the email address issue
(Hongbo Li <lihongb...@huawei.com>) when applying too.
Add support for STATX_DIOALIGN to erofs, so that direct I/O
alignment restrictions are exposed to userspace in a generic
way.
[Before]
```
./statx_test /mnt/erofs/testfile
statx(/mnt/erofs/testfile) = 0
dio mem align:0
dio offset align:0
```
[After]
```
./statx_test /mnt/erofs/testfile
statx(/mnt/erofs/testfile) = 0
dio mem align:512
dio offset align:512
```
Signed-off-by: Hongbo Li <lihongb...@huawei.com>
Signed-off-by: Gao Xiang <hsiang...@linux.alibaba.com>
Reviewed-by: Chao Yu <c...@kernel.org>
Thanks,