aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/fs_ioctl_f2fs.txt
diff options
context:
space:
mode:
authorJiaheng Hu <jiahengh@google.com>2020-07-14 22:30:08 +0000
committerMatt Morehouse <mascasa@google.com>2020-07-14 16:15:53 -0700
commitf3bec699b60e09e7428029b500ac2ef9b6fde4d1 (patch)
tree284577ab4ca00f442fe40b72afe9f4c58b7f5d30 /sys/linux/fs_ioctl_f2fs.txt
parentada108d08bee29122bf15427630464265c555cbc (diff)
sys/linux: add shutdown ioctl for f2fs
Added the shutdown ioctl for f2fs filesystem.
Diffstat (limited to 'sys/linux/fs_ioctl_f2fs.txt')
-rw-r--r--sys/linux/fs_ioctl_f2fs.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/linux/fs_ioctl_f2fs.txt b/sys/linux/fs_ioctl_f2fs.txt
index d4e62a28b..ae9d3d7fe 100644
--- a/sys/linux/fs_ioctl_f2fs.txt
+++ b/sys/linux/fs_ioctl_f2fs.txt
@@ -25,6 +25,10 @@ ioctl$F2FS_IOC_GET_COMPRESS_BLOCKS(fd fd, cmd const[F2FS_IOC_GET_COMPRESS_BLOCKS
ioctl$F2FS_IOC_RELEASE_COMPRESS_BLOCKS(fd fd, cmd const[F2FS_IOC_RELEASE_COMPRESS_BLOCKS], arg ptr[out, int64])
ioctl$F2FS_IOC_RESERVE_COMPRESS_BLOCKS(fd fd, cmd const[F2FS_IOC_RESERVE_COMPRESS_BLOCKS], arg ptr[out, int64])
+# F2FS_IOC_SHUTDOWN on root fs effectively brings the machine down in weird ways.
+# Fortunately, the value does not conflict with any other ioctl commands for now.
+ioctl$F2FS_IOC_SHUTDOWN(fd fd, cmd const[F2FS_IOC_SHUTDOWN], args ptr[in, flags[f2fs_shutdown_flag, int32]]) (disabled)
+
f2fs_gc_range {
sync bool32
start int64
@@ -47,3 +51,5 @@ f2fs_flush_device {
dev_num int32
segments int32
}
+
+f2fs_shutdown_flag = F2FS_GOING_DOWN_FULLSYNC, F2FS_GOING_DOWN_METASYNC, F2FS_GOING_DOWN_NOSYNC, F2FS_GOING_DOWN_METAFLUSH, F2FS_GOING_DOWN_NEED_FSCK