Lines Matching +full:data +full:- +full:out

1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 021110-1307, USA.
105 * Arguments for specification of subvolumes or devices, supporting by-name or
106 * by-id and flags
111 * - BTRFS_IOC_SUBVOL_GETFLAGS
112 * - BTRFS_IOC_SUBVOL_SETFLAGS
151 __u64 data_extents_scrubbed; /* # of data extents scrubbed */
153 __u64 data_bytes_scrubbed; /* # of data bytes scrubbed */
161 __u64 no_csum; /* # of 4k data block for which no csum
163 * data written with nodatasum */
164 __u64 csum_discards; /* # of csum for which no data was found
178 * full (64k) bio failed, but the re-
189 struct btrfs_scrub_progress progress; /* out */
191 __u64 unused[(1024-32-sizeof(struct btrfs_scrub_progress))/8];
210 __u64 replace_state; /* out, see #define above */
211 __u64 progress_1000; /* out, 0 <= x <= 1000 */
212 __u64 time_started; /* out, seconds since 1-Jan-1970 */
213 __u64 time_stopped; /* out, seconds since 1-Jan-1970 */
214 __u64 num_write_errors; /* out */
215 __u64 num_uncorrectable_read_errors; /* out */
227 __u64 result; /* out */
232 }; /* in/out */
238 __u64 devid; /* in/out */
239 __u8 uuid[BTRFS_UUID_SIZE]; /* in/out */
240 __u64 bytes_used; /* out */
241 __u64 total_bytes; /* out */
243 __u8 path[BTRFS_DEVICE_PATH_NAME_MAX]; /* out */
259 __u64 max_id; /* out */
260 __u64 num_devices; /* out */
261 __u8 fsid[BTRFS_FSID_SIZE]; /* out */
262 __u32 nodesize; /* out */
263 __u32 sectorsize; /* out */
264 __u32 clone_alignment; /* out */
266 __u16 csum_type; /* out */
267 __u16 csum_size; /* out */
268 __u64 flags; /* in/out */
269 __u64 generation; /* out */
270 __u8 metadata_uuid[BTRFS_FSID_SIZE]; /* out */
282 * Older kernels (< 4.9) on big-endian systems produced broken free space tree
283 * bitmaps, and btrfs-progs also used to corrupt the free space tree (versions
285 * btrfs-progs can also intentionally clear this bit to ask the kernel to
355 * BTRFS_BALANCE_ARGS_LIMIT_RANGE - the extend version can use minimum
405 * flags definitions for per-type balance args
436 * half-filled).
453 __u64 flags; /* in/out */
454 __u64 state; /* out */
456 struct btrfs_balance_args data; /* in/out */ member
457 struct btrfs_balance_args meta; /* in/out */
458 struct btrfs_balance_args sys; /* in/out */
460 struct btrfs_balance_progress stat; /* out */
472 #define BTRFS_INO_LOOKUP_USER_PATH_MAX (4080 - BTRFS_VOL_NAME_MAX - 1)
478 /* out, name of the subvolume of 'treeid' */
481 * out, constructed path from the directory with which the ioctl is
500 * linear search space of 136-bit keys.
502 * A full 136-bit tree key is composed as:
530 * - reaching the upper bound of the search range
531 * - reaching the input nr_items amount of items
532 * - completely filling the supplied memory buffer
534 __u32 nr_items; /* in/out */
554 #define BTRFS_SEARCH_ARGS_BUFSIZE (4096 - sizeof(struct btrfs_ioctl_search_key))
566 struct btrfs_ioctl_search_key key; /* in/out - search parameters */
567 __u64 buf_size; /* in - size of buffer
568 * out - on EOVERFLOW: needed size
570 __u64 buf[]; /* out - found items */
591 /* number of bytes to defrag, use (u64)-1 to say all */
620 /* For extent-same ioctl */
622 __s64 fd; /* in - destination file */
623 __u64 logical_offset; /* in - start of extent in destination */
624 __u64 bytes_deduped; /* out - total # of bytes we were able
629 * == BTRFS_SAME_DATA_DIFFERS if data differs
631 __s32 status; /* out - see above description */
636 __u64 logical_offset; /* in - start of extent in source */
637 __u64 length; /* in - length of extent */
638 __u16 dest_count; /* in - total elements in info array */
657 __u32 bytes_left; /* out -- bytes not needed to deliver output */
658 __u32 bytes_missing; /* out -- additional bytes needed for result */
659 __u32 elem_cnt; /* out */
660 __u32 elem_missed; /* out */
661 __u64 val[]; /* out */
668 /* struct btrfs_data_container *fspath; out */
669 __u64 fspath; /* out */
677 /* struct btrfs_data_container *inodes; out */
708 __u64 nr_items; /* in/out */
709 __u64 flags; /* in/out */
711 /* out values: */
719 __u64 unused[128 - 2 - BTRFS_DEV_STAT_VALUES_MAX];
754 __u64 rtransid; /* out */
756 struct btrfs_ioctl_timespec rtime; /* out */
762 * Caller doesn't want file data in the send stream, even if the
787 * Send compressed data using the ENCODED_WRITE command instead of decompressing
788 * the data and sending it with the WRITE command. This requires protocol
824 * Zero for top-level subvolume or a deleted subvolume.
830 * Zero for top-level subvolume or a deleted subvolume
845 * All zero for a non-snapshot subvolume.
851 * All zero for non-received subvolume.
872 /* in/out, minimum id of rootref's treeid to be searched */
875 /* out */
881 /* out, number of found items */
887 * Data and metadata for an encoded read or write.
891 * write pre-compressed data directly to a file.
894 * preadv/pwritev with additional metadata about how the data is encoded and the
895 * size of the unencoded data.
897 * BTRFS_IOC_ENCODED_READ fills the given iovecs with the encoded data, fills
898 * the metadata fields, and returns the size of the encoded data. It reads one
899 * extent per call. It can also read data which is not encoded.
901 * BTRFS_IOC_ENCODED_WRITE uses the metadata fields, writes the encoded data
902 * from the iovecs, and returns the size of the encoded data. Note that the
903 * encoded data is not validated when it is written; if it is not valid (e.g.,
906 * Since the filesystem page cache contains decoded data, encoded I/O bypasses
913 * iovecs containing encoded data.
915 * For reads, if the size of the encoded data is larger than the sum of
919 * For writes, the size of the encoded data is the sum of iov[n].iov_len
938 * contain the returned metadata for the encoded data.
940 * encoded data.
944 * Length of the data in the file.
946 * Must be less than or equal to unencoded_len - unencoded_offset. For
948 * the data ends at or beyond the current end of the file.
952 * Length of the unencoded (i.e., decrypted and decompressed) data.
955 * the future). If the unencoded data is actually longer than
961 * Offset from the first byte of the unencoded data to the first byte of
962 * logical data in the file.
978 * For reads, always returned as zero. Users should check for non-zero
988 /* Data is not compressed. */
990 /* Data is compressed as a single zlib stream. */
993 * Data is compressed as a single zstd frame with the windowLog compression
998 * Data is compressed sector by sector (using the sector size indicated by the
1010 /* Data is not encrypted. */