From: Lukas Czerner <lczerner@redhat.com>
To: xfs@oss.sgi.com
Cc: Lukas Czerner <lczerner@redhat.com>
Subject: [PATCH 1/3] common: Filter out lost+found directory from _ls_l() output
Date: Tue, 17 Dec 2013 15:02:25 +0100 [thread overview]
Message-ID: <1387288947-12650-1-git-send-email-lczerner@redhat.com> (raw)
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
next reply other threads:[~2013-12-17 14:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-17 14:02 Lukas Czerner [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1387288947-12650-1-git-send-email-lczerner@redhat.com \
--to=lczerner@redhat.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox