From a056ab7fcf2ffa5c920fb541545b52ab38ca8156 Mon Sep 17 00:00:00 2001 From: Lukas Czerner Date: Mon, 20 Jan 2014 12:46:51 +1100 Subject: [PATCH] common: Filter out lost+found directory from _ls_l() output Signed-off-by: Lukas Czerner Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- common/rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.39.5