Re: Misleading error message in btrfsctl

2009-01-21 Thread Chris Mason
On Sun, 2009-01-18 at 09:12 -0500, Calvin Walton wrote: > On Sun, 2009-01-18 at 14:40 +0100, Peter Klotz wrote: > > Calling btrfsctl results in this message when module btrfs.ko is not loaded: > > > > r...@asus:/root# btrfsctl -A /dev/sda > > ioctl:: Bad file descriptor > .. > > The output with ap

Re: Misleading error message in btrfsctl

2009-01-18 Thread Calvin Walton
On Sun, 2009-01-18 at 14:40 +0100, Peter Klotz wrote: > Calling btrfsctl results in this message when module btrfs.ko is not loaded: > > r...@asus:/root# btrfsctl -A /dev/sda > ioctl:: Bad file descriptor .. > The output with applied patch: > > r...@asus:/root# btrfsctl -A /dev/sda > failed to op

Misleading error message in btrfsctl

2009-01-18 Thread Peter Klotz
Calling btrfsctl results in this message when module btrfs.ko is not loaded: r...@asus:/root# btrfsctl -A /dev/sda ioctl:: Bad file descriptor An strace shows that actually opening of /dev/btrfs-control failed. open("/dev/btrfs-control", O_RDWR) = -1 ENOENT (No such file or directory) ioc