btrfs/059: add a filter for btrfs compression property

btrfs/059.out should not be hardcoded to zlib, if compression method
is lzo, this case will fail wrongly, so here add a filter.

Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Wang Xiaoguang
2016-03-23 17:39:11 +11:00
committed by Dave Chinner
parent d00a869c2e
commit 26ae452604
3 changed files with 18 additions and 8 deletions
+4
View File
@@ -65,7 +65,11 @@ _filter_transaction_commit() {
_filter_btrfs_subvol_delete()
{
_filter_scratch | _filter_transaction_commit
}
_filter_btrfs_compress_property()
{
sed -e "s/compression=\(lzo\|zlib\)/COMPRESSION=XXX/g"
}
# filter name of the property from the output, optionally verify against $1