Linux filesystem development
 help / color / mirror / Atom feed
* interesting breakage in ltp fanotify10
@ 2025-06-22 21:51 Al Viro
  2025-06-23  7:24 ` Amir Goldstein
  0 siblings, 1 reply; 5+ messages in thread
From: Al Viro @ 2025-06-22 21:51 UTC (permalink / raw)
  To: Amir Goldstein; +Cc: Eric Biggers, linux-fsdevel

	LTP 6763a3650734 "syscalls/fanotify10: Add test cases for evictable
ignore mark" has an interesting effect on boxen where FANOTIFY is not
enabled.  The thing is, tst_brk() ends up calling ->cleanup().  See the
problem?
	SAFE_FILE_PRINTF(CACHE_PRESSURE_FILE, "%d", old_cache_pressure);
is executed, even though
	SAFE_FILE_SCANF(CACHE_PRESSURE_FILE, "%d", &old_cache_pressure);
	/* Set high priority for evicting inodes */
	SAFE_FILE_PRINTF(CACHE_PRESSURE_FILE, "500");
hadn't been.

	Result: fanotify10 on such kernel configs ends up zeroing
/proc/sys/vm/vfs_cache_pressure.  How much does it confuse the rest of
LTP is an interesting question; it *does* have a fun effect on subsequent
xfstests run - generic/622 gets confused.  No other failures get reported
by xfstests, for whatever little it's worth...

	Arguably, there's an xfstests bug as well - since generic/622
depends upon vfs_cache_pressure being non-zero, it ought to set it
to something sane.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-23 15:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-22 21:51 interesting breakage in ltp fanotify10 Al Viro
2025-06-23  7:24 ` Amir Goldstein
2025-06-23 14:45   ` Al Viro
2025-06-23 15:19     ` Amir Goldstein
2025-06-23 15:38       ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox