| To: | fstests@xxxxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] common: filter out all metadata related options not only crc |
| From: | Eryu Guan <eguan@xxxxxxxxxx> |
| Date: | Thu, 17 Mar 2016 12:28:12 +0800 |
| Cc: | xfs@xxxxxxxxxxx, Eryu Guan <eguan@xxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
Remove all metadata related mkfs options in _scratch_mkfs_xfs_opts() if
mkfs.xfs has no metadata support, not only the crc option.
Signed-off-by: Eryu Guan <eguan@xxxxxxxxxx>
---
common/rc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/rc b/common/rc
index a34c387..38d3189 100644
--- a/common/rc
+++ b/common/rc
@@ -444,9 +444,9 @@ _scratch_mkfs_xfs_opts()
{
mkfs_opts=$*
- # remove crc related mkfs options if mkfs.xfs doesn't support v5 xfs
+ # remove metadata related mkfs options if mkfs.xfs doesn't support them
if [ -n "$XFS_MKFS_HAS_NO_META_SUPPORT" ]; then
- mkfs_opts=`echo $mkfs_opts | sed "s/-m\s\+crc=.//"`
+ mkfs_opts=`echo $mkfs_opts | sed "s/-m\s\+\S\+//g"`
fi
_scratch_options mkfs
--
2.5.0
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH v3] xfs/073: ignore mkfs output, Eryu Guan |
|---|---|
| Next by Date: | Re: new fs, xfs_admin new label, metadata corruption detected, Chris Murphy |
| Previous by Thread: | [PATCH v3] xfs/073: ignore mkfs output, Eryu Guan |
| Next by Thread: | info, view the attach and get bark to me..., mr. david ibe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |