mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: Correct extent flag parsing for punch hole tests
The fiemap filters used in the punch hole tests parse the extent flags in the fiemap to determine the extent type. They are currently parsing them as decimal values, but they should be parsing hex values. Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com> Signed-off-by: Alex Elder <aelder@sgi.com>
This commit is contained in:
committed by
Alex Elder
parent
c47d7a51ef
commit
ced9681ea4
+3
-3
@@ -208,11 +208,11 @@ _filter_fiemap()
|
||||
print $1, $2, $3;
|
||||
next;
|
||||
}
|
||||
$5 ~ /0x[[:digit:]]*8[[:digit:]]{2}/ {
|
||||
$5 ~ /0x[[:xdigit:]]*8[[:xdigit:]]{2}/ {
|
||||
print $1, $2, "unwritten";
|
||||
next;
|
||||
}
|
||||
$5 ~ /0x[[:digit:]]+/ {
|
||||
$5 ~ /0x[[:xdigit:]]+/ {
|
||||
print $1, $2, "data";
|
||||
}' |
|
||||
_coalesce_extents
|
||||
@@ -228,7 +228,7 @@ _filter_hole_fiemap()
|
||||
print $1, $2, $3;
|
||||
next;
|
||||
}
|
||||
$5 ~ /0x[[:digit:]]+/ {
|
||||
$5 ~ /0x[[:xdigit:]]+/ {
|
||||
print $1, $2, "extent";
|
||||
}' |
|
||||
_coalesce_extents
|
||||
|
||||
Reference in New Issue
Block a user