Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimic: rbd/tests: avoid hexdump skip and length options in krbd test #30569

Merged
merged 1 commit into from Oct 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions qa/rbd/krbd_huge_image.t
Expand Up @@ -24,18 +24,18 @@ Write to first and last sectors and make sure we hit the right objects:
Dump first and last megabytes:

$ DEV=$(sudo rbd map hugeimg/img)
$ hexdump -n 1048576 $DEV
$ dd if=$DEV bs=1M count=1 status=none | hexdump
0000000 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd
*
0000200 0000 0000 0000 0000 0000 0000 0000 0000
*
0100000
$ hexdump -s 4611686018426339328 $DEV
3ffffffffff00000 0000 0000 0000 0000 0000 0000 0000 0000
$ dd if=$DEV bs=1M skip=4398046511103 status=none | hexdump
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
3ffffffffffffe00 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd
00ffe00 cdcd cdcd cdcd cdcd cdcd cdcd cdcd cdcd
*
4000000000000000
0100000
$ sudo rbd unmap $DEV

$ ceph osd pool delete hugeimg hugeimg --yes-i-really-really-mean-it >/dev/null 2>&1