[LTP] [PATCH RFC] sync_file_range02: remove the toplimit of write back
Yang Xu
xuyang2018.jy@cn.fujitsu.com
Tue Dec 31 08:05:30 CET 2019
Hi Li
> Hi Yang,
>
> Yang Xu <xuyang2018.jy@cn.fujitsu.com
> <mailto:xuyang2018.jy@cn.fujitsu.com>> wrote:
>
> ...
>
>>
>> I have tried this for many different systems, and it doesn't hit
>> the failure at least one time. So if no more comments, I would
>> merge the patch as below in the next step.
>
> I have a question.we must call sync()? I think syncfs is more accurate.
>
>
> Here we use sync() is to make fs metadata/cache being written back
> before testing because there is no obtainable file descriptor 'fd' for
> the ext4 deferred IO (e.g. initialize the journal and inode tables).
I see. For other test cases using tst_dev_bytes_written api such as
fdatasync03.c, we also need to call sync() to make this written value
more accurate. What do you think about it?
Best Regards
Yang Xu
>
> --
> Regards,
> Li Wang
More information about the ltp
mailing list