[LTP] [PATCH COMMITTED] tst_device: do sync() before reading test block device stat file

Cyril Hrubis chrubis@suse.cz
Thu Jan 2 13:57:59 CET 2020


Hi!
> To avoid FS deferred IO metadata/cache interferes test result, so we
> do sync simply before the tst_dev_bytes_written invocation.

Can we do fsync() on the fd instead of full sync()? That should be
slightly faster.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list