Package: dcfldd Version: 1.3.4.1-2.1 Severity: normal Tags: patch Dear Maintainer,
When trying to use sizeprobe=of, dcfldd failed with an error about the BLKGETSIZE ioctl failing. Using strace showed dcfldd was trying to ioctl(1, BLKGETSIZE, ...) instead of the block device specified using of, e.g., of=/dev/md3. The problem is that it performs ioctl(STDOUT_FILENO, BLKGETSIZE, ...) unconditionally, instead of using the file descriptor of the output file. The following patch makes it use the first file in the output list instead: --- dcfldd-1.3.4.1.orig/dcfldd.c +++ dcfldd-1.3.4.1/dcfldd.c @@ -759,7 +759,7 @@ int main(int argc, char **argv) else sizeprobe(STDIN_FILENO); else if (probe == PROBE_OUTPUT) - sizeprobe(STDOUT_FILENO); + sizeprobe(outputlist->data.fd); start_time = time(NULL); if (do_verify) -- System Information: Debian Release: 7.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores) Locale: LANG=el_GR.UTF8, LC_CTYPE=el_GR.UTF8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages dcfldd depends on: ii libc6 2.13-38+deb7u3 dcfldd recommends no packages. dcfldd suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org