[LTP] [PATCH 2/3] swapon04: Add test for discard flags
Andrea Cervesato
andrea.cervesato@suse.com
Fri Aug 28 10:47:33 CEST 2026
> this is interesting. Also I notice how it's hard to read the logs, so
> I need a TINFO before the checks. But technically, this could be a kernel
> bug: can you please add a sync() before stat() while we are getting the
> blocks_after? We might need to flush the cache before reading the blocks.
>
> fd = SAFE_OPEN(BACKING_FILE, O_RDONLY);
> SAFE_FSYNC(fd);
> SAFE_CLOSE(fd);
sorry, this should stay after the tst_fill_file()
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list