[LTP] [PATCH 1/2] syscalls/preadv01: Run test for all filesystems
Cyril Hrubis
chrubis@suse.cz
Thu Apr 5 11:52:14 CEST 2018
Hi!
Looking at the test running it for all filesystems would not make much
sense as it is since as far as I can tell:
1) setup() creates a file and writes data to it
- dirty pagecache record is created
2) test() reads data from the file
- kernel will copy the data from pagecache
3) test library cleanup will umount() the device
- dirty pagecache is written at this point
So we will not reach any filesystem specific code at all.
I guess that we may fix that by opening second file descriptor with
O_DIRECT which would bypass pagecache so each read/write request would
trigger I/O request from the block device.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list