mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common: Filter out lost+found directory from _ls_l() output
Signed-off-by: Lukas Czerner <lczerner@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
9645d9ad85
commit
a056ab7fcf
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user