I downloaded and compile the following package from
http://www.kernel.org/hg/index.cgi/btrfs/progs/archive/:
kernel-e4cd88595ed7.tar.bz2
progs-269a009cca47.tar.bz2
/tmp/btrfs-stable>lsmod |grep btrfs
btrfs 191148 1
libcrc32c 6784 1 btrfs
uname -r
2.6.25-rc7
And following that I did the following:
mkfs.btrfs
mount -t btrfs /dev/sdb3 /mnt1
btrfsctl -s peter_vol /mnt1
And I the following errors:
ioctl returns -1
Detailed strace as follows:
strace ./btrfsctl -s peter_vol /mnt1
execve("./btrfsctl", ["./btrfsctl", "-s", "peter_vol", "/mnt1"], [/* 43
vars */]) = 0
brk(0) = 0x804a000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=85363, ...}) = 0
mmap2(NULL, 85363, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f82000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000?W\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1589908, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f81000
mmap2(0x55e000, 1308068, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x55e000
mmap2(0x698000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13a) = 0x698000
mmap2(0x69b000, 9636, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x69b000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f80000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f806c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0x698000, 8192, PROT_READ) = 0
mprotect(0x55a000, 4096, PROT_READ) = 0
munmap(0xb7f82000, 85363) = 0
stat64("/mnt1", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/mnt1", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
brk(0) = 0x804a000
brk(0x806c000) = 0x806c000
ioctl(3, 0x41009401, 0xbfd973fc) = -1 EEXIST (File exists)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f96000
write(1, "ioctl returns -1\n", 17ioctl returns -1
) = 17
exit_group(0) = ?
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html