"invalid argument for seek()" error on very small (<=40KiB) drives
i got a (emulated) drive with a storage capacity of exactly
4096*10 bytes (about 40 kilobytes), and when pointing gparted to it, gparted opens with 2x of the same error: "Invalid argument during seek for read on /dev/nbd1"
this error does not occur when the drive has
4096*100 bytes instead of
4096*10 bytes. (aka, it works with 400 kilobytes, it does not work with 10 kilobytes)
and interestingly, according to strace gparted never issued a seek() in the first place, strace attached.
gparted version: GParted 0.30.0 libparted (as reported by gparted in stdout/stderr): 3.2