diff options
author | Federico Simoncelli | 2014-10-24 17:13:54 +0200 |
---|---|---|
committer | Karel Zak | 2014-10-27 09:16:47 +0100 |
commit | d7ce9acb338f70e65712e1edfd34c13207a33d05 (patch) | |
tree | afe1e8bbcf861e485b854e60cb64409cfcedfead /tests/expected/blkdiscard | |
parent | tests: add blkdiscard offsets test (diff) | |
download | kernel-qcow2-util-linux-d7ce9acb338f70e65712e1edfd34c13207a33d05.tar.gz kernel-qcow2-util-linux-d7ce9acb338f70e65712e1edfd34c13207a33d05.tar.xz kernel-qcow2-util-linux-d7ce9acb338f70e65712e1edfd34c13207a33d05.zip |
blkdiscard: fail on sector misalignment
Diffstat (limited to 'tests/expected/blkdiscard')
-rw-r--r-- | tests/expected/blkdiscard/offsets | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/expected/blkdiscard/offsets b/tests/expected/blkdiscard/offsets index 766c39d71..88078785d 100644 --- a/tests/expected/blkdiscard/offsets +++ b/tests/expected/blkdiscard/offsets @@ -1,16 +1,16 @@ create loop device from image testing offsets with full block size Discarded 10485760 bytes from the offset 0 -Discarded 10485248 bytes from the offset 512 -Discarded 10485248 bytes from the offset 512 +blkdiscard: offset 1 is not aligned to sector size 512 +blkdiscard: offset 511 is not aligned to sector size 512 Discarded 10485248 bytes from the offset 512 Discarded 10484736 bytes from the offset 1024 testing offsets with specific length Discarded 5242880 bytes from the offset 0 -Discarded 5242880 bytes from the offset 0 -Discarded 5242880 bytes from the offset 0 -Discarded 5242880 bytes from the offset 512 -Discarded 5242880 bytes from the offset 512 +blkdiscard: length 5242881 is not aligned to sector size 512 +blkdiscard: length 5243391 is not aligned to sector size 512 +blkdiscard: offset 1 is not aligned to sector size 512 +blkdiscard: offset 511 is not aligned to sector size 512 Discarded 5242880 bytes from the offset 512 Discarded 5242880 bytes from the offset 1024 detach loop device from image |