]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common: Filter out lost+found directory from _ls_l() output
authorLukas Czerner <lczerner@redhat.com>
Mon, 20 Jan 2014 01:46:51 +0000 (12:46 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 20 Jan 2014 01:46:51 +0000 (12:46 +1100)
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc

index 72ea9ebfee99987de90c2a0026577aa86181842d..70b49922a80872ed8d0c7eec4b0ec80f5b170585 100644 (file)
--- 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()