Added two ioctl to decompress/compress explicitly the compression enabled file in "compress_mode=user" mount option. Using these two ioctls, the users can make a control of compression and decompression of their files.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -40,6 +40,8 @@ · 39 unmodified lines | ||
| 40 | 40 | struct f2fs_comp_option) |
| 41 | 41 | #define F2FS_IOC_SET_COMPRESS_OPTION _IOW(F2FS_IOCTL_MAGIC, 22, \ |
| 42 | 42 | struct f2fs_comp_option) |
| 43 | +#define F2FS_IOC_DECOMPRESS_FILE _IO(F2FS_IOCTL_MAGIC, 23) | |
| 44 | +#define F2FS_IOC_COMPRESS_FILE _IO(F2FS_IOCTL_MAGIC, 24) | |
| 43 | 45 | |
| 44 | 46 | /* |
| 45 | 47 | * should be same as XFS_IOC_GOINGDOWN. |