Skip to content

Commit

Permalink
xfstests: Correct extent flag parsing for punch hole tests
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Alex Elder <[email protected]>
  • Loading branch information
achender authored and Alex Elder committed Jul 20, 2011
1 parent c47d7a5 commit ced9681
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common.punch
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -228,7 +228,7 @@ _filter_hole_fiemap()
print $1, $2, $3;
next;
}
$5 ~ /0x[[:digit:]]+/ {
$5 ~ /0x[[:xdigit:]]+/ {
print $1, $2, "extent";
}' |
_coalesce_extents
Expand Down

0 comments on commit ced9681

Please sign in to comment.