public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfstests - unchecked mount failures
@ 2012-03-09 13:28 David Sterba
  2012-03-09 17:41 ` Eric Sandeen
  2012-03-12  0:46 ` Dave Chinner
  0 siblings, 2 replies; 3+ messages in thread
From: David Sterba @ 2012-03-09 13:28 UTC (permalink / raw)
  To: xfs

Hi,

I've encountered a bad situation when a failed mount in test 269 did not stop
the test and continued to use the mount point and exhausted space on the root
partition. A quick grep revealed that there are more tests with unchecked
_scratch_mount calls.

The underlying problem with failed mount was observed when the mount comes in a
quick sequence after mount, I saw it with btrfs, and don't know if it affects
other filesystems.

So, either all callers should check the return value or _scratch_mount
calls _fail. I'd go for the latter as it will make it more resilient
against unintentional ommision of checking the retval in new tests and
reviewer does not have keep that in mind.


david

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2012-03-12  0:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-09 13:28 xfstests - unchecked mount failures David Sterba
2012-03-09 17:41 ` Eric Sandeen
2012-03-12  0:46 ` Dave Chinner

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