public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/2] Fix acct failures on nearly full FS.
@ 2019-07-12 14:15 Cyril Hrubis
  2019-07-12 14:15 ` [LTP] [PATCH 1/2] safe_macros: Add SAFE_STATFS() Cyril Hrubis
  2019-07-12 14:15 ` [LTP] [PATCH 2/2] syscalls/acct02: Fix failures with nearly full FS Cyril Hrubis
  0 siblings, 2 replies; 6+ messages in thread
From: Cyril Hrubis @ 2019-07-12 14:15 UTC (permalink / raw)
  To: ltp

Unfortunately it looks like BSD process accounting on Linux is bit of a
minefield, even when you enable the accounting and everything looks OK
kernel may still drop the data silently for a couple of reasons. You can
have a look at kernel/acct.c. This patch disables the test if there is
no enough disk space because in that case data are silently dropped.

If there is less than 4% of free space the accounting is silently
disabled from the start hence the test produces TCONF unless there is at
least 4.1% of free space now.

Cyril Hrubis (2):
  safe_macros: Add SAFE_STATFS()
  syscalls/acct02: Fix failures with nearly full FS

 include/tst_safe_macros.h               | 18 ++++++++++++++++++
 testcases/kernel/syscalls/acct/acct02.c | 12 ++++++++++++
 2 files changed, 30 insertions(+)

-- 
2.21.0


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

end of thread, other threads:[~2019-07-15 11:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-12 14:15 [LTP] [PATCH 0/2] Fix acct failures on nearly full FS Cyril Hrubis
2019-07-12 14:15 ` [LTP] [PATCH 1/2] safe_macros: Add SAFE_STATFS() Cyril Hrubis
2019-07-12 14:15 ` [LTP] [PATCH 2/2] syscalls/acct02: Fix failures with nearly full FS Cyril Hrubis
2019-07-15  8:13   ` Yang Xu
2019-07-15 11:19     ` Cyril Hrubis
2019-07-15 11:27       ` Yang Xu

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