Displaying 1 result from an estimated 1 matches for "btrfs_ioc_compress".
2009 Jun 13
1
[PATCH 1/3] Add ioctl to set per file 'compress' flag
...unlock:
+ mutex_unlock(&inode->i_mutex);
+ return 0;
+}
+
long btrfs_ioctl(struct file *file, unsigned int
cmd, unsigned long arg)
{
@@ -1278,6 +1326,8 @@ long btrfs_ioctl(struct file *file, unsi
case BTRFS_IOC_SYNC:
btrfs_sync_fs(file->f_dentry->d_sb, 1);
return 0;
+ case BTRFS_IOC_COMPRESS:
+ return btrfs_ioctl_inode_flag(file, BTRFS_INODE_NOCOMPRESS, 0);
}
return -ENOTTY;
Index: newformat2/fs/btrfs/ioctl.h
===================================================================
--- newformat2.orig/fs/btrfs/ioctl.h
+++ newformat2/fs/btrfs/ioctl.h
@@ -65,5 +65,7 @@ struct btrfs_ioctl...