linux/include/uapi/linux/f2fs.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */

#ifndef _UAPI_LINUX_F2FS_H
#define _UAPI_LINUX_F2FS_H
#include <linux/types.h>
#include <linux/ioctl.h>

/*
 * f2fs-specific ioctl commands
 */
#define F2FS_IOCTL_MAGIC
#define F2FS_IOC_START_ATOMIC_WRITE
#define F2FS_IOC_COMMIT_ATOMIC_WRITE
#define F2FS_IOC_START_VOLATILE_WRITE
#define F2FS_IOC_RELEASE_VOLATILE_WRITE
#define F2FS_IOC_ABORT_ATOMIC_WRITE
#define F2FS_IOC_GARBAGE_COLLECT
#define F2FS_IOC_WRITE_CHECKPOINT
#define F2FS_IOC_DEFRAGMENT
#define F2FS_IOC_MOVE_RANGE
#define F2FS_IOC_FLUSH_DEVICE
#define F2FS_IOC_GARBAGE_COLLECT_RANGE
#define F2FS_IOC_GET_FEATURES
#define F2FS_IOC_SET_PIN_FILE
#define F2FS_IOC_GET_PIN_FILE
#define F2FS_IOC_PRECACHE_EXTENTS
#define F2FS_IOC_RESIZE_FS
#define F2FS_IOC_GET_COMPRESS_BLOCKS
#define F2FS_IOC_RELEASE_COMPRESS_BLOCKS
#define F2FS_IOC_RESERVE_COMPRESS_BLOCKS
#define F2FS_IOC_SEC_TRIM_FILE
#define F2FS_IOC_GET_COMPRESS_OPTION
#define F2FS_IOC_SET_COMPRESS_OPTION
#define F2FS_IOC_DECOMPRESS_FILE
#define F2FS_IOC_COMPRESS_FILE
#define F2FS_IOC_START_ATOMIC_REPLACE

/*
 * should be same as XFS_IOC_GOINGDOWN.
 * Flags for going down operation used by FS_IOC_GOINGDOWN
 */
#define F2FS_IOC_SHUTDOWN
#define F2FS_GOING_DOWN_FULLSYNC
#define F2FS_GOING_DOWN_METASYNC
#define F2FS_GOING_DOWN_NOSYNC
#define F2FS_GOING_DOWN_METAFLUSH
#define F2FS_GOING_DOWN_NEED_FSCK

/*
 * Flags used by F2FS_IOC_SEC_TRIM_FILE
 */
#define F2FS_TRIM_FILE_DISCARD
#define F2FS_TRIM_FILE_ZEROOUT
#define F2FS_TRIM_FILE_MASK

struct f2fs_gc_range {};

struct f2fs_defragment {};

struct f2fs_move_range {};

struct f2fs_flush_device {};

struct f2fs_sectrim_range {};

struct f2fs_comp_option {};

#endif /* _UAPI_LINUX_F2FS_H */