From f3bec699b60e09e7428029b500ac2ef9b6fde4d1 Mon Sep 17 00:00:00 2001 From: Jiaheng Hu Date: Tue, 14 Jul 2020 22:30:08 +0000 Subject: sys/linux: add shutdown ioctl for f2fs Added the shutdown ioctl for f2fs filesystem. --- sys/linux/fs_ioctl_f2fs.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/linux/fs_ioctl_f2fs.txt') 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 -- cgit mrf-deployment