X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=blobdiff_plain;f=common%2Fverity;h=a8d3de06b3c7e52bc4a11298bb96951bbd9bf3c4;hp=b4c0e2dcb99fa2b439ea88e3662c1ec08cae7e41;hb=11d3da6a7fe19b5220e21bb3abf7838fdc13534a;hpb=eff343fb5d5fa893e4ab53f93f07766c58d83e90 diff --git a/common/verity b/common/verity index b4c0e2dc..a8d3de06 100644 --- a/common/verity +++ b/common/verity @@ -183,7 +183,7 @@ _fsv_scratch_corrupt_bytes() sync # Sync to avoid unwritten extents cat > $tmp.bytes - local end=$(( offset + $(stat -c %s $tmp.bytes ) )) + local end=$(( offset + $(_get_filesize $tmp.bytes ) )) # For each extent that intersects the requested range in order, add a # command that writes the next part of the data to that extent. @@ -234,7 +234,7 @@ _fsv_scratch_corrupt_merkle_tree() ext4|f2fs) # ext4 and f2fs store the Merkle tree after the file contents # itself, starting at the next 65536-byte aligned boundary. - (( offset += ($(stat -c %s $file) + 65535) & ~65535 )) + (( offset += ($(_get_filesize $file) + 65535) & ~65535 )) _fsv_scratch_corrupt_bytes $file $offset ;; *)