Your message dated Fri, 25 Jul 2014 11:19:47 +0100
with message-id
<CAD=6czopz+_hmkjrmkutbusdfq-aint7sohvcczrhjw_tb_...@mail.gmail.com>
and subject line Close #699376 - util-linux: blockdev --report fails on
non-harddisk devices
has caused the Debian Bug report #699376,
regarding util-linux: blockdev --report fails on non-harddisk devices
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
699376: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699376
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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:
--- End Message ---
--- Begin Message ---
version: 2.24.2-1
I'm closing this bug now since the fix for the bug you reported was
included in the new (upstream) version.
f7541e14c40f291b21016fd4db906fd5755ed87d
If you can still reproduce it feel free to reopen and provide more info.
thanks
regards
althaser
--- End Message ---