Message ID | 20191105145622.11181-1-fdmanana@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/3] common: open files in ro mode for extent and hole count helpers | expand |
diff --git a/common/rc b/common/rc index ef0c2509..238ffef9 100644 --- a/common/rc +++ b/common/rc @@ -3199,12 +3199,12 @@ _require_metadata_journaling() _count_extents() { - $XFS_IO_PROG -c "fiemap" $1 | tail -n +2 | grep -v hole | wc -l + $XFS_IO_PROG -r -c "fiemap" $1 | tail -n +2 | grep -v hole | wc -l } _count_holes() { - $XFS_IO_PROG -c "fiemap" $1 | tail -n +2 | grep hole | wc -l + $XFS_IO_PROG -r -c "fiemap" $1 | tail -n +2 | grep hole | wc -l } _count_attr_extents()