Package: btrfs-tools
Version: 0.19+20111105-2
Severity: normal
Tags: patch

btrfs scrub status <path> always fails on armel, complaining about invalid
arguments:

root@algy:~# btrfs scrub status /storage
ERROR: scrub status args invalid.
 -d  stats per device

This appears to be due to a problem with the argument parsing code --
getopt's return value is cast to a char, which on this platform appears
to be unsigned.  The following patch fixes it:

--- btrfs-tools-0.19+20111105.orig/scrub.c      2011-11-19
--- 14:01:34.000000000 +1300
+++ btrfs-tools-0.19+20111105/scrub.c   2012-03-24 18:11:06.855166804 +1300
@@ -1546,7 +1546,7 @@
        optind = 1;
        int print_raw = 0;
        int do_stats_per_dev = 0;
-       char c;
+       int c;
        char fsid[37];
        int fdres = -1;
        int err = 0;


-- System Information:
Debian Release: 6.0.2
  APT prefers testing
  APT policy: (700, 'testing'), (650, 'unstable')
Architecture: armel (armv5tel)

Kernel: Linux 3.2.0-2-kirkwood
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages btrfs-tools depends on:
ii  e2fslibs                  1.42.1-2       ext2/ext3/ext4 file system librari
ii  libc6                     2.13-18        Embedded GNU C Library: Shared lib
ii  libcomerr2                1.42.1-2       common error description library
ii  libgcc1                   1:4.6.1-4      GCC support library
ii  libuuid1                  2.20.1-4       Universally Unique ID library
ii  zlib1g                    1:1.2.6.dfsg-2 compression library - runtime

btrfs-tools recommends no packages.

btrfs-tools suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to