Re: [PATCH v3] erofs: support STATX_DIOALIGN

From: Chao Yu
Date: Fri Jul 26 2024 - 05:51:05 EST


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@xxxxxxxxxxxxxxxx>

Also I will fix the email address issue
(Hongbo Li <lihongbo22@xxxxxxxxxx>) 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 <lihongbo22@xxxxxxxxxx>
Signed-off-by: Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,