]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: avoid hexdump skip and length options 30569/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 20 Sep 2019 19:01:09 +0000 (21:01 +0200)
committerPrashant D <pdhange@redhat.com>
Tue, 24 Sep 2019 23:05:20 +0000 (19:05 -0400)
commit05385dff08da1e7d5c88a2df6692a0e353d1ce2c
tree21905034aab833c78658ffdc4e84bd168f6158fd
parent3544b06933c68c5b0f10a4639d2f24b62b5dbfea
qa: avoid hexdump skip and length options

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 <idryomov@gmail.com>
(cherry picked from commit d1b69136b04a20e9b4a481f0dfbe281f9cf61b1c)
qa/rbd/krbd_huge_image.t