/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 2007 Oracle. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License v2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 021110-1307, USA.
*/
/* * Arguments for specification of subvolumes or devices, supporting by-name or * by-id and flags * * The set of supported flags depends on the ioctl * * BTRFS_SUBVOL_RDONLY is also provided/consumed by the following ioctls: * - BTRFS_IOC_SUBVOL_GETFLAGS * - BTRFS_IOC_SUBVOL_SETFLAGS
*/
/* Supported flags for BTRFS_IOC_RM_DEV_V2 */ #define BTRFS_DEVICE_REMOVE_ARGS_MASK \
(BTRFS_DEVICE_SPEC_BY_ID)
/* Supported flags for BTRFS_IOC_SNAP_CREATE_V2 and BTRFS_IOC_SUBVOL_CREATE_V2 */ #define BTRFS_SUBVOL_CREATE_ARGS_MASK \
(BTRFS_SUBVOL_RDONLY | \
BTRFS_SUBVOL_QGROUP_INHERIT)
/* Supported flags for BTRFS_IOC_SNAP_DESTROY_V2 */ #define BTRFS_SUBVOL_DELETE_ARGS_MASK \
(BTRFS_SUBVOL_SPEC_BY_ID)
/* * structure to report errors and progress to userspace, either as a * result of a finished scrub, a canceled scrub or a progress inquiry
*/ struct btrfs_scrub_progress {
__u64 data_extents_scrubbed; /* # of data extents scrubbed */
__u64 tree_extents_scrubbed; /* # of tree extents scrubbed */
__u64 data_bytes_scrubbed; /* # of data bytes scrubbed */
__u64 tree_bytes_scrubbed; /* # of tree bytes scrubbed */
__u64 read_errors; /* # of read errors encountered (EIO) */
__u64 csum_errors; /* # of failed csum checks */
__u64 verify_errors; /* # of occurrences, where the metadata * of a tree block did not match the * expected values, like generation or
* logical */
__u64 no_csum; /* # of 4k data block for which no csum * is present, probably the result of
* data written with nodatasum */
__u64 csum_discards; /* # of csum for which no data was found
* in the extent tree. */
__u64 super_errors; /* # of bad super blocks encountered */
__u64 malloc_errors; /* # of internal kmalloc errors. These * will likely cause an incomplete
* scrub */
__u64 uncorrectable_errors; /* # of errors where either no intact * copy was found or the writeback
* failed */
__u64 corrected_errors; /* # of errors corrected */
__u64 last_physical; /* last physical address scrubbed. In * case a scrub was aborted, this can
* be used to restart the scrub */
__u64 unverified_errors; /* # of occurrences where a read for a * full (64k) bio failed, but the re- * check succeeded for each 4k piece.
* Intermittent error. */
};
#define BTRFS_SCRUB_READONLY 1 #define BTRFS_SCRUB_SUPPORTED_FLAGS (BTRFS_SCRUB_READONLY) struct btrfs_ioctl_scrub_args {
__u64 devid; /* in */
__u64 start; /* in */
__u64 end; /* in */
__u64 flags; /* in */ struct btrfs_scrub_progress progress; /* out */ /* pad to 1k */
__u64 unused[(1024-32-sizeof(struct btrfs_scrub_progress))/8];
};
#define BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS 0 #define BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID 1 struct btrfs_ioctl_dev_replace_start_params {
__u64 srcdevid; /* in, if 0, use srcdev_name instead */
__u64 cont_reading_from_srcdev_mode; /* in, see #define
* above */
__u8 srcdev_name[BTRFS_DEVICE_PATH_NAME_MAX + 1]; /* in */
__u8 tgtdev_name[BTRFS_DEVICE_PATH_NAME_MAX + 1]; /* in */
};
struct btrfs_ioctl_dev_info_args {
__u64 devid; /* in/out */
__u8 uuid[BTRFS_UUID_SIZE]; /* in/out */
__u64 bytes_used; /* out */
__u64 total_bytes; /* out */ /* * Optional, out. * * Showing the fsid of the device, allowing user space to check if this * device is a seeding one. * * Introduced in v6.3, thus user space still needs to check if kernel * changed this value. Older kernel will not touch the values here.
*/
__u8 fsid[BTRFS_UUID_SIZE];
__u64 unused[377]; /* pad to 4k */
__u8 path[BTRFS_DEVICE_PATH_NAME_MAX]; /* out */
};
/* * Retrieve information about the filesystem
*/
/* Request information about checksum type and size */ #define BTRFS_FS_INFO_FLAG_CSUM_INFO (1 << 0)
/* Request information about filesystem generation */ #define BTRFS_FS_INFO_FLAG_GENERATION (1 << 1) /* Request information about filesystem metadata UUID */ #define BTRFS_FS_INFO_FLAG_METADATA_UUID (1 << 2)
struct btrfs_ioctl_fs_info_args {
__u64 max_id; /* out */
__u64 num_devices; /* out */
__u8 fsid[BTRFS_FSID_SIZE]; /* out */
__u32 nodesize; /* out */
__u32 sectorsize; /* out */
__u32 clone_alignment; /* out */ /* See BTRFS_FS_INFO_FLAG_* */
__u16 csum_type; /* out */
__u16 csum_size; /* out */
__u64 flags; /* in/out */
__u64 generation; /* out */
__u8 metadata_uuid[BTRFS_FSID_SIZE]; /* out */
__u8 reserved[944]; /* pad to 1k */
};
/* * feature flags * * Used by: * struct btrfs_ioctl_feature_flags
*/ #define BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE (1ULL << 0) /* * Older kernels (< 4.9) on big-endian systems produced broken free space tree * bitmaps, and btrfs-progs also used to corrupt the free space tree (versions * < 4.7.3). If this bit is clear, then the free space tree cannot be trusted. * btrfs-progs can also intentionally clear this bit to ask the kernel to * rebuild the free space tree, however this might not work on older kernels * that do not know about this bit. If not sure, clear the cache manually on * first mount when booting older kernel versions.
*/ #define BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID (1ULL << 1) #define BTRFS_FEATURE_COMPAT_RO_VERITY (1ULL << 2)
/* * Put all block group items into a dedicated block group tree, greatly * reducing mount time for large filesystem due to better locality.
*/ #define BTRFS_FEATURE_COMPAT_RO_BLOCK_GROUP_TREE (1ULL << 3)
/* * older kernels tried to do bigger metadata blocks, but the * code was pretty buggy. Lets not let them try anymore.
*/ #define BTRFS_FEATURE_INCOMPAT_BIG_METADATA (1ULL << 5)
/* * this is packed, because it should be exactly the same as its disk * byte order counterpart (struct btrfs_disk_balance_args)
*/ struct btrfs_balance_args {
__u64 profiles;
/* * usage filter * BTRFS_BALANCE_ARGS_USAGE with a single value means '0..N' * BTRFS_BALANCE_ARGS_USAGE_RANGE - range syntax, min..max
*/ union {
__u64 usage; struct {
__u32 usage_min;
__u32 usage_max;
};
};
__u64 devid;
__u64 pstart;
__u64 pend;
__u64 vstart;
__u64 vend;
__u64 target;
__u64 flags;
/* * BTRFS_BALANCE_ARGS_LIMIT with value 'limit' * BTRFS_BALANCE_ARGS_LIMIT_RANGE - the extend version can use minimum * and maximum
*/ union {
__u64 limit; /* limit number of processed chunks */ struct {
__u32 limit_min;
__u32 limit_max;
};
};
/* * Process chunks that cross stripes_min..stripes_max devices, * BTRFS_BALANCE_ARGS_STRIPES_RANGE
*/
__u32 stripes_min;
__u32 stripes_max;
__u64 unused[6];
} __attribute__ ((__packed__));
/* report balance progress to userspace */ struct btrfs_balance_progress {
__u64 expected; /* estimated # of chunks that will be
* relocated to fulfill the request */
__u64 considered; /* # of chunks we have considered so far */
__u64 completed; /* # of chunks relocated so far */
};
/* * flags definition for balance * * Restriper's general type filter * * Used by: * btrfs_ioctl_balance_args.flags * btrfs_balance_control.flags (internal)
*/ #define BTRFS_BALANCE_DATA (1ULL << 0) #define BTRFS_BALANCE_SYSTEM (1ULL << 1) #define BTRFS_BALANCE_METADATA (1ULL << 2)
/* * Profile changing flags. When SOFT is set we won't relocate chunk if * it already has the target profile (even though it may be * half-filled).
*/ #define BTRFS_BALANCE_ARGS_CONVERT (1ULL << 8) #define BTRFS_BALANCE_ARGS_SOFT (1ULL << 9)
/* * flags definition for balance state * * Used by: * struct btrfs_ioctl_balance_args.state
*/ #define BTRFS_BALANCE_STATE_RUNNING (1ULL << 0) #define BTRFS_BALANCE_STATE_PAUSE_REQ (1ULL << 1) #define BTRFS_BALANCE_STATE_CANCEL_REQ (1ULL << 2)
#define BTRFS_INO_LOOKUP_USER_PATH_MAX (4080 - BTRFS_VOL_NAME_MAX - 1) struct btrfs_ioctl_ino_lookup_user_args { /* in, inode number containing the subvolume of 'subvolid' */
__u64 dirid; /* in */
__u64 treeid; /* out, name of the subvolume of 'treeid' */ char name[BTRFS_VOL_NAME_MAX + 1]; /* * out, constructed path from the directory with which the ioctl is * called to dirid
*/ char path[BTRFS_INO_LOOKUP_USER_PATH_MAX];
};
/* Search criteria for the btrfs SEARCH ioctl family. */ struct btrfs_ioctl_search_key { /* * The tree we're searching in. 1 is the tree of tree roots, 2 is the * extent tree, etc... * * A special tree_id value of 0 will cause a search in the subvolume * tree that the inode which is passed to the ioctl is part of.
*/
__u64 tree_id; /* in */
/* * When doing a tree search, we're actually taking a slice from a * linear search space of 136-bit keys. * * A full 136-bit tree key is composed as: * (objectid << 72) + (type << 64) + offset * * The individual min and max values for objectid, type and offset * define the min_key and max_key values for the search range. All * metadata items with a key in the interval [min_key, max_key] will be * returned. * * Additionally, we can filter the items returned on transaction id of * the metadata block they're stored in by specifying a transid range. * Be aware that this transaction id only denotes when the metadata * page that currently contains the item got written the last time as * result of a COW operation. The number does not have any meaning * related to the transaction in which an individual item that is being * returned was created or changed.
*/
__u64 min_objectid; /* in */
__u64 max_objectid; /* in */
__u64 min_offset; /* in */
__u64 max_offset; /* in */
__u64 min_transid; /* in */
__u64 max_transid; /* in */
__u32 min_type; /* in */
__u32 max_type; /* in */
/* * input: The maximum amount of results desired. * output: The actual amount of items returned, restricted by any of: * - reaching the upper bound of the search range * - reaching the input nr_items amount of items * - completely filling the supplied memory buffer
*/
__u32 nr_items; /* in/out */
/* align to 64 bits */
__u32 unused;
/* some extra for later */
__u64 unused1;
__u64 unused2;
__u64 unused3;
__u64 unused4;
};
#define BTRFS_SEARCH_ARGS_BUFSIZE (4096 - sizeof(struct btrfs_ioctl_search_key)) /* * the buf is an array of search headers where * each header is followed by the actual item * the type field is expanded to 32 bits for alignment
*/ struct btrfs_ioctl_search_args { struct btrfs_ioctl_search_key key; char buf[BTRFS_SEARCH_ARGS_BUFSIZE];
};
/* * Extended version of TREE_SEARCH ioctl that can return more than 4k of bytes. * The allocated size of the buffer is set in buf_size.
*/ struct btrfs_ioctl_search_args_v2 { struct btrfs_ioctl_search_key key; /* in/out - search parameters */
__u64 buf_size; /* in - size of buffer * out - on EOVERFLOW: needed size
* to store item */
__u64 buf[]; /* out - found items */
};
/* With a @src_length of zero, the range from @src_offset->EOF is cloned! */ struct btrfs_ioctl_clone_range_args {
__s64 src_fd;
__u64 src_offset, src_length;
__u64 dest_offset;
};
/* * flags definition for the defrag range ioctl * * Used by: * struct btrfs_ioctl_defrag_range_args.flags
*/ #define BTRFS_DEFRAG_RANGE_COMPRESS 1 #define BTRFS_DEFRAG_RANGE_START_IO 2 #define BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL 4 /* Request no compression on the range (uncompress if necessary). */ #define BTRFS_DEFRAG_RANGE_NOCOMPRESS 8 #define BTRFS_DEFRAG_RANGE_FLAGS_SUPP (BTRFS_DEFRAG_RANGE_COMPRESS | \
BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL | \
BTRFS_DEFRAG_RANGE_NOCOMPRESS | \
BTRFS_DEFRAG_RANGE_START_IO)
struct btrfs_ioctl_defrag_range_args { /* start of the defrag operation */
__u64 start;
/* number of bytes to defrag, use (u64)-1 to say all */
__u64 len;
/* * flags for the operation, which can include turning * on compression for this one defrag
*/
__u64 flags;
/* * any extent bigger than this will be considered * already defragged. Use 0 to take the kernel default * Use 1 to say every single extent must be rewritten
*/
__u32 extent_thresh;
/* * which compression method to use if turning on compression * for this defrag operation. If unspecified, zlib will be * used. If compression level is also being specified, set the * BTRFS_DEFRAG_RANGE_COMPRESS_LEVEL flag and fill the compress * member structure instead of the compress_type field.
*/ union {
__u32 compress_type; struct {
__u8 type;
__s8 level;
} compress;
};
/* spare for later */
__u32 unused[4];
};
#define BTRFS_SAME_DATA_DIFFERS 1 /* For extent-same ioctl */ struct btrfs_ioctl_same_extent_info {
__s64 fd; /* in - destination file */
__u64 logical_offset; /* in - start of extent in destination */
__u64 bytes_deduped; /* out - total # of bytes we were able
* to dedupe from this file */ /* status of this dedupe operation: * 0 if dedup succeeds * < 0 for error * == BTRFS_SAME_DATA_DIFFERS if data differs
*/
__s32 status; /* out - see above description */
__u32 reserved;
};
struct btrfs_ioctl_same_args {
__u64 logical_offset; /* in - start of extent in source */
__u64 length; /* in - length of extent */
__u16 dest_count; /* in - total elements in info array */
__u16 reserved1;
__u32 reserved2; struct btrfs_ioctl_same_extent_info info[];
};
struct btrfs_data_container {
__u32 bytes_left; /* out -- bytes not needed to deliver output */
__u32 bytes_missing; /* out -- additional bytes needed for result */
__u32 elem_cnt; /* out */
__u32 elem_missed; /* out */
__u64 val[]; /* out */
};
struct btrfs_ioctl_ino_path_args {
__u64 inum; /* in */
__u64 size; /* in */
__u64 reserved[4]; /* struct btrfs_data_container *fspath; out */
__u64 fspath; /* out */
};
struct btrfs_ioctl_logical_ino_args {
__u64 logical; /* in */
__u64 size; /* in */
__u64 reserved[3]; /* must be 0 for now */
__u64 flags; /* in, v2 only */ /* struct btrfs_data_container *inodes; out */
__u64 inodes;
};
/* * Return every ref to the extent, not just those containing logical block. * Requires logical == extent bytenr.
*/ #define BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET (1ULL << 0)
enum btrfs_dev_stat_values { /* disk I/O failure stats */
BTRFS_DEV_STAT_WRITE_ERRS, /* EIO or EREMOTEIO from lower layers */
BTRFS_DEV_STAT_READ_ERRS, /* EIO or EREMOTEIO from lower layers */
BTRFS_DEV_STAT_FLUSH_ERRS, /* EIO or EREMOTEIO from lower layers */
/* stats for indirect indications for I/O failures */
BTRFS_DEV_STAT_CORRUPTION_ERRS, /* checksum error, bytenr error or * contents is illegal: this is an * indication that the block was damaged * during read or write, or written to * wrong location or read from wrong
* location */
BTRFS_DEV_STAT_GENERATION_ERRS, /* an indication that blocks have not
* been written */
/* out values: */
__u64 values[BTRFS_DEV_STAT_VALUES_MAX];
/* * This pads the struct to 1032 bytes. It was originally meant to pad to * 1024 bytes, but when adding the flags field, the padding calculation * was not adjusted.
*/
__u64 unused[128 - 2 - BTRFS_DEV_STAT_VALUES_MAX];
};
struct btrfs_ioctl_received_subvol_args { char uuid[BTRFS_UUID_SIZE]; /* in */
__u64 stransid; /* in */
__u64 rtransid; /* out */ struct btrfs_ioctl_timespec stime; /* in */ struct btrfs_ioctl_timespec rtime; /* out */
__u64 flags; /* in */
__u64 reserved[16]; /* in */
};
/* * Caller doesn't want file data in the send stream, even if the * search of clone sources doesn't find an extent. UPDATE_EXTENT * commands will be sent instead of WRITE commands.
*/ #define BTRFS_SEND_FLAG_NO_FILE_DATA 0x1
/* * Do not add the leading stream header. Used when multiple snapshots * are sent back to back.
*/ #define BTRFS_SEND_FLAG_OMIT_STREAM_HEADER 0x2
/* * Omit the command at the end of the stream that indicated the end * of the stream. This option is used when multiple snapshots are * sent back to back.
*/ #define BTRFS_SEND_FLAG_OMIT_END_CMD 0x4
/* * Read the protocol version in the structure
*/ #define BTRFS_SEND_FLAG_VERSION 0x8
/* * Send compressed data using the ENCODED_WRITE command instead of decompressing * the data and sending it with the WRITE command. This requires protocol * version >= 2.
*/ #define BTRFS_SEND_FLAG_COMPRESSED 0x10
struct btrfs_ioctl_send_args {
__s64 send_fd; /* in */
__u64 clone_sources_count; /* in */
__u64 __user *clone_sources; /* in */
__u64 parent_root; /* in */
__u64 flags; /* in */
__u32 version; /* in */
__u8 reserved[28]; /* in */
};
/* * Information about a fs tree root. * * All items are filled by the ioctl
*/ struct btrfs_ioctl_get_subvol_info_args { /* Id of this subvolume */
__u64 treeid;
/* Name of this subvolume, used to get the real name at mount point */ char name[BTRFS_VOL_NAME_MAX + 1];
/* * Id of the subvolume which contains this subvolume. * Zero for top-level subvolume or a deleted subvolume.
*/
__u64 parent_id;
/* * Inode number of the directory which contains this subvolume. * Zero for top-level subvolume or a deleted subvolume
*/
__u64 dirid;
/* Latest transaction id of this subvolume */
__u64 generation;
/* Flags of this subvolume */
__u64 flags;
/* UUID of this subvolume */
__u8 uuid[BTRFS_UUID_SIZE];
/* * UUID of the subvolume of which this subvolume is a snapshot. * All zero for a non-snapshot subvolume.
*/
__u8 parent_uuid[BTRFS_UUID_SIZE];
/* * UUID of the subvolume from which this subvolume was received. * All zero for non-received subvolume.
*/
__u8 received_uuid[BTRFS_UUID_SIZE];
/* Transaction id indicating when change/create/send/receive happened */
__u64 ctransid;
__u64 otransid;
__u64 stransid;
__u64 rtransid; /* Time corresponding to c/o/s/rtransid */ struct btrfs_ioctl_timespec ctime; struct btrfs_ioctl_timespec otime; struct btrfs_ioctl_timespec stime; struct btrfs_ioctl_timespec rtime;
/* Must be zero */
__u64 reserved[8];
};
#define BTRFS_MAX_ROOTREF_BUFFER_NUM 255 struct btrfs_ioctl_get_subvol_rootref_args { /* in/out, minimum id of rootref's treeid to be searched */
__u64 min_treeid;
/* out, number of found items */
__u8 num_items;
__u8 align[7];
};
/* * Data and metadata for an encoded read or write. * * Encoded I/O bypasses any encoding automatically done by the filesystem (e.g., * compression). This can be used to read the compressed contents of a file or * write pre-compressed data directly to a file. * * BTRFS_IOC_ENCODED_READ and BTRFS_IOC_ENCODED_WRITE are essentially * preadv/pwritev with additional metadata about how the data is encoded and the * size of the unencoded data. * * BTRFS_IOC_ENCODED_READ fills the given iovecs with the encoded data, fills * the metadata fields, and returns the size of the encoded data. It reads one * extent per call. It can also read data which is not encoded. * * BTRFS_IOC_ENCODED_WRITE uses the metadata fields, writes the encoded data * from the iovecs, and returns the size of the encoded data. Note that the * encoded data is not validated when it is written; if it is not valid (e.g., * it cannot be decompressed), then a subsequent read may return an error. * * Since the filesystem page cache contains decoded data, encoded I/O bypasses * the page cache. Encoded I/O requires CAP_SYS_ADMIN.
*/ struct btrfs_ioctl_encoded_io_args { /* Input parameters for both reads and writes. */
/* * iovecs containing encoded data. * * For reads, if the size of the encoded data is larger than the sum of * iov[n].iov_len for 0 <= n < iovcnt, then the ioctl fails with * ENOBUFS. * * For writes, the size of the encoded data is the sum of iov[n].iov_len * for 0 <= n < iovcnt. This must be less than 128 KiB (this limit may * increase in the future). This must also be less than or equal to * unencoded_len.
*/ conststruct iovec __user *iov; /* Number of iovecs. */ unsignedlong iovcnt; /* * Offset in file. * * For writes, must be aligned to the sector size of the filesystem.
*/
__s64 offset; /* Currently must be zero. */
__u64 flags;
/* * For reads, the following members are output parameters that will * contain the returned metadata for the encoded data. * For writes, the following members must be set to the metadata for the * encoded data.
*/
/* * Length of the data in the file. * * Must be less than or equal to unencoded_len - unencoded_offset. For * writes, must be aligned to the sector size of the filesystem unless * the data ends at or beyond the current end of the file.
*/
__u64 len; /* * Length of the unencoded (i.e., decrypted and decompressed) data. * * For writes, must be no more than 128 KiB (this limit may increase in * the future). If the unencoded data is actually longer than * unencoded_len, then it is truncated; if it is shorter, then it is * extended with zeroes.
*/
__u64 unencoded_len; /* * Offset from the first byte of the unencoded data to the first byte of * logical data in the file. * * Must be less than unencoded_len.
*/
__u64 unencoded_offset; /* * BTRFS_ENCODED_IO_COMPRESSION_* type. * * For writes, must not be BTRFS_ENCODED_IO_COMPRESSION_NONE.
*/
__u32 compression; /* Currently always BTRFS_ENCODED_IO_ENCRYPTION_NONE. */
__u32 encryption; /* * Reserved for future expansion. * * For reads, always returned as zero. Users should check for non-zero * bytes. If there are any, then the kernel has a newer version of this * structure with additional information that the user definition is * missing. * * For writes, must be zeroed.
*/
__u8 reserved[64];
};
/* Data is not compressed. */ #define BTRFS_ENCODED_IO_COMPRESSION_NONE 0 /* Data is compressed as a single zlib stream. */ #define BTRFS_ENCODED_IO_COMPRESSION_ZLIB 1 /* * Data is compressed as a single zstd frame with the windowLog compression * parameter set to no more than 17.
*/ #define BTRFS_ENCODED_IO_COMPRESSION_ZSTD 2 /* * Data is compressed sector by sector (using the sector size indicated by the * name of the constant) with LZO1X and wrapped in the format documented in * fs/btrfs/lzo.c. For writes, the compression sector size must match the * filesystem sector size.
*/ #define BTRFS_ENCODED_IO_COMPRESSION_LZO_4K 3 #define BTRFS_ENCODED_IO_COMPRESSION_LZO_8K 4 #define BTRFS_ENCODED_IO_COMPRESSION_LZO_16K 5 #define BTRFS_ENCODED_IO_COMPRESSION_LZO_32K 6 #define BTRFS_ENCODED_IO_COMPRESSION_LZO_64K 7 #define BTRFS_ENCODED_IO_COMPRESSION_TYPES 8
/* Data is not encrypted. */ #define BTRFS_ENCODED_IO_ENCRYPTION_NONE 0 #define BTRFS_ENCODED_IO_ENCRYPTION_TYPES 1
/* * Wait for subvolume cleaning process. This queries the kernel queue and it * can change between the calls. * * - FOR_ONE - specify the subvolid * - FOR_QUEUED - wait for all currently queued * - COUNT - count number of queued * - PEEK_FIRST - read which is the first in the queue (to be cleaned or being * cleaned already), or 0 if the queue is empty * - PEEK_LAST - read the last subvolid in the queue, or 0 if the queue is empty
*/ struct btrfs_ioctl_subvol_wait {
__u64 subvolid;
__u32 mode;
__u32 count;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.