* Re: [PATCH 6/6] tests: avoid spurious parallel failure due to temporary disk full [not found] ` <87mxk69yfd.fsf@rho.meyering.net> @ 2011-04-04 9:34 ` Pádraig Brady 2011-04-04 9:55 ` Jim Meyering 0 siblings, 1 reply; 2+ messages in thread From: Pádraig Brady @ 2011-04-04 9:34 UTC (permalink / raw) To: Jim Meyering; +Cc: coreutils, linux-ext4 On 04/04/11 10:08, Jim Meyering wrote: > Pádraig Brady wrote: >> On 04/04/11 06:13, Jim Meyering wrote: >>> From: Jim Meyering <meyering@redhat.com> >>> >>> Running the new fiemap-empty test uses 600MB of disk space via >>> fallocate, and in so doing caused failure in unrelated tests that >>> were running in parallel on a small file system. Rather than >>> simply running fallocate (which allocates the space, inducing >>> disk full when it fails), skip the test if there is less than >>> 800MB of free space, as computed via stat and awk. > > Thanks for looking. > >> Oops sorry. >> Maybe worth noting is that stat works at a lower level, > > Not sure what you mean? Both use statfs. Oops right. df uses f_bavail, so perhaps it might be better to use %a rather than %f with `stat`? This fallocate() behavior is annoying anyway, as I'm not sure when it's useful, except for filling up a file system. It seems like a this would be useful. #define FALLOC_FL_FULL_SIZE 0x03 /* allocate all or nothing */ cheers, Pádraig. -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 6/6] tests: avoid spurious parallel failure due to temporary disk full 2011-04-04 9:34 ` [PATCH 6/6] tests: avoid spurious parallel failure due to temporary disk full Pádraig Brady @ 2011-04-04 9:55 ` Jim Meyering 0 siblings, 0 replies; 2+ messages in thread From: Jim Meyering @ 2011-04-04 9:55 UTC (permalink / raw) To: Pádraig Brady; +Cc: coreutils, linux-ext4 Pádraig Brady wrote: > On 04/04/11 10:08, Jim Meyering wrote: >> Pádraig Brady wrote: >>> On 04/04/11 06:13, Jim Meyering wrote: >>>> From: Jim Meyering <meyering@redhat.com> >>>> >>>> Running the new fiemap-empty test uses 600MB of disk space via >>>> fallocate, and in so doing caused failure in unrelated tests that >>>> were running in parallel on a small file system. Rather than >>>> simply running fallocate (which allocates the space, inducing >>>> disk full when it fails), skip the test if there is less than >>>> 800MB of free space, as computed via stat and awk. >> >> Thanks for looking. >> >>> Oops sorry. >>> Maybe worth noting is that stat works at a lower level, >> >> Not sure what you mean? Both use statfs. > > Oops right. df uses f_bavail, so perhaps it might > be better to use %a rather than %f with `stat`? Oh, yes. Definitely. I had thought I was using that one, but had skimmed the descriptions too quickly (I spotted "superuser" in the description of %a, so went with %f ;-). Thanks! I may adjust stat --help's description of %f to say this: %a Free blocks available to non-superuser %f Free blocks in file system (available to superuser) > This fallocate() behavior is annoying anyway, > as I'm not sure when it's useful, except for > filling up a file system. > It seems like a this would be useful. > > #define FALLOC_FL_FULL_SIZE 0x03 /* allocate all or nothing */ Good idea. I read fallocate's manual looking for a command-line option like that when I realized that its behavior was at the root of my non-deterministic test failures. Sounds like it'd make a good new option, if not the default. -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-04 9:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1301894021-29180-1-git-send-email-jim@meyering.net>
[not found] ` <1301894021-29180-7-git-send-email-jim@meyering.net>
[not found] ` <4D997AAB.3070807@draigBrady.com>
[not found] ` <87mxk69yfd.fsf@rho.meyering.net>
2011-04-04 9:34 ` [PATCH 6/6] tests: avoid spurious parallel failure due to temporary disk full Pádraig Brady
2011-04-04 9:55 ` Jim Meyering
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox