From: Theodore Ts'o Date: Wed, 13 Aug 2014 01:20:56 +0000 (+1000) Subject: generic/077: fall back to /usr if /lib/modules doesn't exist X-Git-Tag: v2022.05.01~3089 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c4a6eb0a03a8f200e7bf669d26fd9043fc6d2e02;p=xfstests-dev.git generic/077: fall back to /usr if /lib/modules doesn't exist 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 Reviewed-by: Eric Sandeen Signed-off-by: Dave Chinner --- diff --git a/tests/generic/077 b/tests/generic/077 index 172ce6e7..0d6aec7f 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 /