search for: btrfs_ioc_compr_size

Displaying 1 result from an estimated 1 matches for "btrfs_ioc_compr_size".

2010 Jul 26
6
[PATCH] Btrfs: compressed file size ioctl
...rfs_wait_ordered_range(inode, 0, (u64)-1); - return the uncompressed size on disk for uncompressed filesystems instead of EINVAL Minimal example: #include <sys/ioctl.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #define BTRFS_IOCTL_MAGIC 0x94 #define BTRFS_IOC_COMPR_SIZE _IOR(BTRFS_IOCTL_MAGIC, 21, uint64_t) 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 <uli@suse.de> --- fs/btrfs/ioctl.c |...