History

f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

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.

Daeho Jeong committed 5 years ago

Commit 5fdb3221 parent 602a16d2 files · +187 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/f2fs.h+2−0
@@ -40,6 +40,8 @@ · 39 unmodified lines
40 struct f2fs_comp_option)40 struct f2fs_comp_option)
41#define F2FS_IOC_SET_COMPRESS_OPTION _IOW(F2FS_IOCTL_MAGIC, 22, \41#define F2FS_IOC_SET_COMPRESS_OPTION _IOW(F2FS_IOCTL_MAGIC, 22, \
42 struct f2fs_comp_option)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 * should be same as XFS_IOC_GOINGDOWN.47 * should be same as XFS_IOC_GOINGDOWN.