xfs
[Top] [All Lists]

[PATCH] xfstests: update _filter_size() for Btrfs

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfstests: update _filter_size() for Btrfs
From: Stefan Behrens <sbehrens@xxxxxxxxxxxxxxxx>
Date: Fri, 23 Aug 2013 15:07:12 +0200
Cc: linux-btrfs@xxxxxxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1377263233-8903-1-git-send-email-sbehrens@xxxxxxxxxxxxxxxx>
References: <1377263233-8903-1-git-send-email-sbehrens@xxxxxxxxxxxxxxxx>
From: root <root@xxxxxxxxxxx>

The btrfs-progs tools changed the output:
- 100GiB instead of 100GB

xfstest btrfs/006 is one that failed due to this change.

Signed-off-by: Stefan Behrens <sbehrens@xxxxxxxxxxxxxxxx>
---
 common/filter | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/filter b/common/filter
index dbb1674..ee738ca 100644
--- a/common/filter
+++ b/common/filter
@@ -262,7 +262,7 @@ _filter_uuid()
 # Filter out sizes like 6.14MB etc
 _filter_size()
 {
-       sed -e "s/[0-9\.]\+\s\?[b|k|m|g|t][b]\?/<SIZE>/ig"
+       sed -e "s/[0-9\.]\+\s\?[b|k|m|g|t][i]\?[b]\?/<SIZE>/ig"
 }
 
 # Convert string read from stdin like 128K to bytes and print it to stdout
-- 
1.8.3.4

<Prev in Thread] Current Thread [Next in Thread>