[LTP] [PATCH v4 9/9] syscalls/sync_file_range: add sync device test-case

Sumit Garg sumit.garg@linaro.org
Tue Feb 26 10:02:56 CET 2019

On Mon, 25 Feb 2019 at 20:57, Cyril Hrubis <chrubis@suse.cz> wrote:
> Hi!
> This tests fails for me for fuse based filesystems, the call returns 0
> but does not write anything, the questions is if this is desired
> behavior or not.

Interesting case. Do you see similar behaviour with other sync related syscalls?

AFAIK, fuse file-system operations are implemented in user-space
daemons exported to kernel as callbacks via libfuse. Maybe we need to
check fsync() callback operation [1] implementation?

[1] https://libfuse.github.io/doxygen/structfuse__operations.html

> Also we should as well add a second test here that sync only a middle of
> a written region of a file and expects that the data written are
> somewhere between a few percents of the synced size.

Sure, will add a test for this.


> --
> Cyril Hrubis
> chrubis@suse.cz

More information about the ltp mailing list