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 1 commit into from Oct 8, 2019


On Debian-based distros, hexdump(1) comes from FreeBSD in bsdmainutils
package (other distros ship a Linux version from util-linux).  It turns
out that '-s skip' for anything but a regular file has been broken for
ages in FreeBSD -- instead of calling fseek(), it consumed the input
byte by byte with getchar().  This was fixed in commit 7cd5ae492557
"hexdump(1): Speed up -s flag on devices" last year, but it hasn't made
it to the Debian world yet.

bsdmainutils_9.0.6ubuntu3 in xenial had a custom patch for that, but
it's no longer there in bsdmainutils_11.1.2ubuntu1 in bionic.  hexdump
-s <large offset> is now a fancy infinite loop!

Signed-off-by: Ilya Dryomov <>
(cherry picked from commit d1b6913)
@tchaikov tchaikov added this to the mimic milestone Sep 25, 2019
@smithfarm smithfarm requested review from idryomov and dillaman Sep 25, 2019
@smithfarm smithfarm changed the title mimic: qa: avoid hexdump skip and length options mimic: rbd/tests: avoid hexdump skip and length options in krbd test Sep 25, 2019
Copy link

dillaman left a comment



This comment has been minimized.

Copy link

yuriw commented Oct 4, 2019

@yuriw yuriw merged commit eaa97f9 into ceph:mimic Oct 8, 2019
4 checks passed
4 checks passed
Docs: build check OK - docs built
Signed-off-by all commits in this PR are signed
Unmodified Submodules submodules for project are unmodified
make check make check succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
6 participants
You can’t perform that action at this time.