From: Lukas Czerner Date: Mon, 20 Jan 2014 01:46:51 +0000 (+1100) Subject: common: Filter out lost+found directory from _ls_l() output X-Git-Tag: v2022.05.01~3301 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a056ab7fcf2ffa5c920fb541545b52ab38ca8156;p=xfstests-dev.git common: Filter out lost+found directory from _ls_l() output Signed-off-by: Lukas Czerner Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/common/rc b/common/rc index 72ea9ebf..70b49922 100644 --- a/common/rc +++ b/common/rc @@ -74,10 +74,11 @@ _md5_checksum() # ls -l w/ selinux sometimes puts a dot at the end: # -rwxrw-r--. id1 id2 file1 +# Also filter out lost+found directory on extN file system if present _ls_l() { - ls -l $* | sed "s/\(^[-rwxdlbcpsStT]*\)\. /\1 /" + ls -l $* | sed "s/\(^[-rwxdlbcpsStT]*\)\. /\1 /" | grep -v 'lost+found' } _mount_opts()