public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output
@ 2013-12-17 14:02 Lukas Czerner
  2013-12-17 14:02 ` [PATCH 2/3] xfstests 322: use _filter_scratch() Lukas Czerner
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Lukas Czerner @ 2013-12-17 14:02 UTC (permalink / raw)
  To: xfs; +Cc: Lukas Czerner

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
---
 common/rc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/rc b/common/rc
index 5f61d57..7a168e9 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()
-- 
1.8.3.1

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-17 16:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17 14:02 [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output Lukas Czerner
2013-12-17 14:02 ` [PATCH 2/3] xfstests 322: use _filter_scratch() Lukas Czerner
2013-12-17 14:02 ` [PATCH 3/3] xfstests 321, 322: do not remove lost+found Lukas Czerner
2013-12-17 16:22 ` [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output Carlos Maiolino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox