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
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.
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 "
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.
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/