Re: [PATCH] Btrfs: compressed file size ioctl

2010-08-06 Thread Ulrich Hecht
On Monday 02 August 2010, Miao Xie wrote: > I think you need use lock_extent()/unlock_extent() to enclose > btrfs_get_extent(), but I didn't find lock_extent(). Yeah, I think that was missing in the original patch as well. Hope the latest iteration is OK. CU Uli -- SUSE LINUX Products GmbH, GF

[PATCH v3] Btrfs: compressed file size ioctl

2010-08-06 Thread Ulrich Hecht
main(int argc, char **argv) { uint64_t size = -1; int d = open(argv[1], O_RDONLY); ioctl(d, BTRFS_IOC_COMPR_SIZE, &size); printf("%zd\n", size); return 0; } Signed-off-by: Ulrich Hecht --- fs/btrfs/ioctl.c | 42 ++ fs/btrfs/ioctl.

Re: [PATCH] Btrfs: compressed file size ioctl

2010-07-29 Thread Ulrich Hecht
On Tuesday 27 July 2010, Miao Xie wrote: > Why don't you use btrfs_get_extent() to implement it? Because I didn't know about it. :) Thanks, that simplifies things a lot. CU Uli -- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe from this list: send the line "

[PATCH] Btrfs: compressed file size ioctl

2010-07-29 Thread Ulrich Hecht
main(int argc, char **argv) { uint64_t size = -1; int d = open(argv[1], O_RDONLY); ioctl(d, BTRFS_IOC_COMPR_SIZE, &size); printf("%zd\n", size); return 0; } Signed-off-by: Ulrich Hecht --- fs/btrfs/ioctl.c | 41 + fs/btrfs/ioctl.

[PATCH] Btrfs: compressed file size ioctl

2010-07-26 Thread Ulrich Hecht
int main(int argc, char **argv) { uint64_t size = -1; int d = open(argv[1], O_RDONLY); ioctl(d, BTRFS_IOC_COMPR_SIZE, &size); printf("%zd\n", size); return 0; } Signed-off-by: Ulrich Hecht --- fs/btrfs/ioctl.c | 103 ++ fs/