* [PATCH] generic/077: fall back to /usr if /lib/modules doesn't exist
@ 2014-08-09 5:39 Theodore Ts'o
2014-08-09 13:29 ` Eric Sandeen
0 siblings, 1 reply; 2+ messages in thread
From: Theodore Ts'o @ 2014-08-09 5:39 UTC (permalink / raw)
To: fstests; +Cc: Theodore Ts'o
We need a source of "filler" that can fill up a 50M file system.
Unfortunately, on some systems /lib/modules might not exist at all.
In that case, use /usr instead.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
---
tests/generic/077 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/generic/077 b/tests/generic/077
index 172ce6e..0d6aec7 100755
--- a/tests/generic/077
+++ b/tests/generic/077
@@ -32,6 +32,9 @@ status=1
# Something w/ enough data to fill 50M of fs...
filler=/lib/modules/
+# fall back in case /lib/modules doesn't exist
+[ -d $filler ] || filler=/usr
+
_cleanup()
{
cd /
--
2.0.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] generic/077: fall back to /usr if /lib/modules doesn't exist
2014-08-09 5:39 [PATCH] generic/077: fall back to /usr if /lib/modules doesn't exist Theodore Ts'o
@ 2014-08-09 13:29 ` Eric Sandeen
0 siblings, 0 replies; 2+ messages in thread
From: Eric Sandeen @ 2014-08-09 13:29 UTC (permalink / raw)
To: Theodore Ts'o, fstests
On 8/9/14, 12:39 AM, Theodore Ts'o wrote:
> We need a source of "filler" that can fill up a 50M file system.
> Unfortunately, on some systems /lib/modules might not exist at all.
> In that case, use /usr instead.
>
> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Seems reasonable.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
> ---
> tests/generic/077 | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tests/generic/077 b/tests/generic/077
> index 172ce6e..0d6aec7 100755
> --- a/tests/generic/077
> +++ b/tests/generic/077
> @@ -32,6 +32,9 @@ status=1
> # Something w/ enough data to fill 50M of fs...
> filler=/lib/modules/
>
> +# fall back in case /lib/modules doesn't exist
> +[ -d $filler ] || filler=/usr
> +
> _cleanup()
> {
> cd /
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-09 13:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-09 5:39 [PATCH] generic/077: fall back to /usr if /lib/modules doesn't exist Theodore Ts'o
2014-08-09 13:29 ` Eric Sandeen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.