Package: util-linux
Version: 2.20.1-5.3
Severity: normal
Dear Maintainer,
Blockdev --report fails on non-harddisk devices (NBD, loop, ...):
nasc0:root ~ 277 # blockdev --report /dev/nbd0 /dev/loop0
RO RA SSZ BSZ StartSec Size Device
blockdev: ioctl error on /dev/nbd0
blockdev: ioctl error on /dev/loop0
The problem appears to be that blockdev attempts to obtain
the device's geometry, which does not apply to such devices:
From disk-utils/blockdev.c:
[snip]
if (ioctl(fd, BLKROGET, &ro) == 0 &&
ioctl(fd, BLKRAGET, &ra) == 0 &&
ioctl(fd, BLKSSZGET, &ssz) == 0 &&
ioctl(fd, BLKBSZGET, &bsz) == 0 &&
----> ioctl(fd, HDIO_GETGEO, &g) == 0 &&
blkdev_get_size(fd, &bytes) == 0) {
printf("%s %5ld %5d %5d %10ld %15lld %s\n",
ro ? "ro" : "rw", ra, ssz, bsz, g.start, bytes, device);
[snip]
Kind regards,
Rogier.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages util-linux depends on:
ii debconf [debconf-2.0] 1.5.46
ii dpkg 1.16.9
ii initscripts 2.88dsf-34
ii install-info 4.13a.dfsg.1-10
ii libblkid1 2.20.1-5.2
ii libc6 2.13-37
ii libncurses5 5.9-10
ii libselinux1 2.1.9-5
ii libslang2 2.2.4-15
ii libtinfo5 5.9-10
ii libuuid1 2.20.1-5.2
ii lsb-base 4.1+Debian8
ii tzdata 2012g-1
ii zlib1g 1:1.2.7.dfsg-13
util-linux recommends no packages.
Versions of packages util-linux suggests:
ii dosfstools 3.0.13-1
ii kbd 1.15.3-9
pn util-linux-locales <none>
-- debconf information:
util-linux/noauto-with-nonzero-passnum:
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]