fstests: Don't use gawk's strtonum
[xfstests-dev.git] / tests / xfs / 009
index 6a31514cc0d7fcefe70cabf082e00b49f28421ec..956c47729f4709dc18936daa7dfd2d20e25ad018 100755 (executable)
@@ -66,12 +66,12 @@ _block_filter()
 
        /CMD/ {
                split($3, off, "=")
-               offset = strtonum(off[2])
+               offset = off[2]
                if (offset != -1)
                        offset = offset / bsize
 
                split($4, len, "=")
-               nr_blocks = strtonum(len[2])
+               nr_blocks = len[2]
                if (nr_blocks != -1)
                        nr_blocks = nr_blocks / bsize
 
@@ -82,13 +82,13 @@ _block_filter()
 
        /MAP/ {
                split($2, off, "=")
-               offset = strtonum(off[2])
+               offset = off[2]
                if (offset != -1)
                        offset = offset / bsize
 
                split($3, len, "=")
 
-               nr_blocks = strtonum(len[2])
+               nr_blocks = len[2]
 
                if (nr_blocks != -1)
                        nr_blocks = nr_blocks / bsize
@@ -100,7 +100,7 @@ _block_filter()
 
        /TRUNCATE/ {
                split($2, off, "=")
-               offset = strtonum(off[2]) / bsize
+               offset = off[2] / bsize
 
                printf("    %s off=%s\n", $1, offset)