mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs: test xfs_getbmapx behavior with shared extents
Make sure that xfs_getbmapx behaves properly w.r.t. shared extents and CoW fork reporting. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:
@@ -3075,6 +3075,25 @@ _require_xfs_scratch_rmapbt()
|
||||
_scratch_unmount
|
||||
}
|
||||
|
||||
_xfs_bmapx_find() {
|
||||
case "$1" in
|
||||
"attr")
|
||||
param="a"
|
||||
;;
|
||||
"cow")
|
||||
param="c"
|
||||
;;
|
||||
*)
|
||||
param="e"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
file="$1"
|
||||
shift
|
||||
|
||||
"$XFS_IO_PROG" -c "bmap -${param}lpv" "$file" | grep -c "$@"
|
||||
}
|
||||
|
||||
_get_total_inode()
|
||||
{
|
||||
if [ -z "$1" ]; then
|
||||
|
||||
Reference in New Issue
Block a user