Hi all, gznbd works incorrectly with large size argument which overflows 4-byte integer. For example: gznbd /dev/nbd0 /root/test.gz 1000204886016 gznbd: 1000204886016 does not appear to be a valid size The size is stored in u64, but is converted from string using atol(). I've attached the patch to replace atol() with atoll(). As the source is compiled with -std=gnu99, there must be no problem with atoll(). -- Andrey Hippo.
Attachment:
nbd-atol-u64.patch
Description: Binary data