ReactOS  0.4.14-dev-52-g6116262
btrfsioctl.h File Reference
#include "btrfs.h"
Include dependency graph for btrfsioctl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  btrfs_get_file_ids
 
struct  btrfs_create_snapshot
 
struct  btrfs_create_snapshot32
 
struct  btrfs_inode_info
 
struct  btrfs_set_inode_info
 
struct  btrfs_device
 
struct  btrfs_usage_device
 
struct  btrfs_usage
 
struct  btrfs_balance_opts
 
struct  btrfs_query_balance
 
struct  btrfs_start_balance
 
struct  btrfs_filesystem_device
 
struct  btrfs_filesystem
 
struct  btrfs_scrub_error
 
struct  btrfs_query_scrub
 
struct  btrfs_mknod
 
struct  btrfs_received_subvol
 
struct  btrfs_set_xattr
 
struct  btrfs_create_subvol
 
struct  btrfs_find_subvol
 
struct  btrfs_send_subvol
 
struct  btrfs_send_subvol32
 
struct  btrfs_resize
 

Macros

#define FSCTL_BTRFS_GET_FILE_IDS   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x829, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_CREATE_SUBVOL   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82a, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_CREATE_SNAPSHOT   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82b, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_GET_INODE_INFO   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82c, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_SET_INODE_INFO   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82d, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_GET_DEVICES   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82e, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_GET_USAGE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82f, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_START_BALANCE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x830, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_QUERY_BALANCE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x831, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_PAUSE_BALANCE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x832, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_RESUME_BALANCE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x833, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_STOP_BALANCE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x834, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_ADD_DEVICE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x835, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_REMOVE_DEVICE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x836, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define IOCTL_BTRFS_QUERY_FILESYSTEMS   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x837, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_GET_UUID   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x838, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_START_SCRUB   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x839, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_QUERY_SCRUB   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83a, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_PAUSE_SCRUB   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83b, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_RESUME_SCRUB   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83c, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_STOP_SCRUB   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83d, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define IOCTL_BTRFS_PROBE_VOLUME   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83e, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_RESET_STATS   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83f, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_MKNOD   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x840, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_RECEIVED_SUBVOL   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x841, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_GET_XATTRS   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x842, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_SET_XATTR   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x843, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_RESERVE_SUBVOL   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x844, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_FIND_SUBVOL   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x845, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_SEND_SUBVOL   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x846, METHOD_BUFFERED, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_READ_SEND_BUFFER   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x847, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
 
#define FSCTL_BTRFS_RESIZE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x848, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
 
#define BTRFS_COMPRESSION_ANY   0
 
#define BTRFS_COMPRESSION_ZLIB   1
 
#define BTRFS_COMPRESSION_LZO   2
 
#define BTRFS_COMPRESSION_ZSTD   3
 
#define BTRFS_BALANCE_OPTS_ENABLED   0x001
 
#define BTRFS_BALANCE_OPTS_PROFILES   0x002
 
#define BTRFS_BALANCE_OPTS_DEVID   0x004
 
#define BTRFS_BALANCE_OPTS_DRANGE   0x008
 
#define BTRFS_BALANCE_OPTS_VRANGE   0x010
 
#define BTRFS_BALANCE_OPTS_LIMIT   0x020
 
#define BTRFS_BALANCE_OPTS_STRIPES   0x040
 
#define BTRFS_BALANCE_OPTS_USAGE   0x080
 
#define BTRFS_BALANCE_OPTS_CONVERT   0x100
 
#define BTRFS_BALANCE_OPTS_SOFT   0x200
 
#define BLOCK_FLAG_SINGLE   0x1000000000000
 
#define BTRFS_BALANCE_STOPPED   0
 
#define BTRFS_BALANCE_RUNNING   1
 
#define BTRFS_BALANCE_PAUSED   2
 
#define BTRFS_BALANCE_REMOVAL   4
 
#define BTRFS_BALANCE_ERROR   8
 
#define BTRFS_BALANCE_SHRINKING   16
 
#define BTRFS_SCRUB_STOPPED   0
 
#define BTRFS_SCRUB_RUNNING   1
 
#define BTRFS_SCRUB_PAUSED   2
 

Macro Definition Documentation

◆ BLOCK_FLAG_SINGLE

#define BLOCK_FLAG_SINGLE   0x1000000000000

Definition at line 139 of file btrfsioctl.h.

◆ BTRFS_BALANCE_ERROR

#define BTRFS_BALANCE_ERROR   8

Definition at line 162 of file btrfsioctl.h.

◆ BTRFS_BALANCE_OPTS_CONVERT

#define BTRFS_BALANCE_OPTS_CONVERT   0x100

Definition at line 136 of file btrfsioctl.h.

◆ BTRFS_BALANCE_OPTS_DEVID

#define BTRFS_BALANCE_OPTS_DEVID   0x004

Definition at line 130 of file btrfsioctl.h.

◆ BTRFS_BALANCE_OPTS_DRANGE

#define BTRFS_BALANCE_OPTS_DRANGE   0x008

Definition at line 131 of file btrfsioctl.h.

◆ BTRFS_BALANCE_OPTS_ENABLED

#define BTRFS_BALANCE_OPTS_ENABLED   0x001

Definition at line 128 of file btrfsioctl.h.

◆ BTRFS_BALANCE_OPTS_LIMIT

#define BTRFS_BALANCE_OPTS_LIMIT   0x020

Definition at line 133 of file btrfsioctl.h.

◆ BTRFS_BALANCE_OPTS_PROFILES

#define BTRFS_BALANCE_OPTS_PROFILES   0x002

Definition at line 129 of file btrfsioctl.h.

◆ BTRFS_BALANCE_OPTS_SOFT

#define BTRFS_BALANCE_OPTS_SOFT   0x200

Definition at line 137 of file btrfsioctl.h.

◆ BTRFS_BALANCE_OPTS_STRIPES

#define BTRFS_BALANCE_OPTS_STRIPES   0x040

Definition at line 134 of file btrfsioctl.h.

◆ BTRFS_BALANCE_OPTS_USAGE

#define BTRFS_BALANCE_OPTS_USAGE   0x080

Definition at line 135 of file btrfsioctl.h.

◆ BTRFS_BALANCE_OPTS_VRANGE

#define BTRFS_BALANCE_OPTS_VRANGE   0x010

Definition at line 132 of file btrfsioctl.h.

◆ BTRFS_BALANCE_PAUSED

#define BTRFS_BALANCE_PAUSED   2

Definition at line 160 of file btrfsioctl.h.

◆ BTRFS_BALANCE_REMOVAL

#define BTRFS_BALANCE_REMOVAL   4

Definition at line 161 of file btrfsioctl.h.

◆ BTRFS_BALANCE_RUNNING

#define BTRFS_BALANCE_RUNNING   1

Definition at line 159 of file btrfsioctl.h.

◆ BTRFS_BALANCE_SHRINKING

#define BTRFS_BALANCE_SHRINKING   16

Definition at line 163 of file btrfsioctl.h.

◆ BTRFS_BALANCE_STOPPED

#define BTRFS_BALANCE_STOPPED   0

Definition at line 158 of file btrfsioctl.h.

◆ BTRFS_COMPRESSION_ANY

#define BTRFS_COMPRESSION_ANY   0

Definition at line 62 of file btrfsioctl.h.

◆ BTRFS_COMPRESSION_LZO

#define BTRFS_COMPRESSION_LZO   2

Definition at line 64 of file btrfsioctl.h.

◆ BTRFS_COMPRESSION_ZLIB

#define BTRFS_COMPRESSION_ZLIB   1

Definition at line 63 of file btrfsioctl.h.

◆ BTRFS_COMPRESSION_ZSTD

#define BTRFS_COMPRESSION_ZSTD   3

Definition at line 65 of file btrfsioctl.h.

◆ BTRFS_SCRUB_PAUSED

#define BTRFS_SCRUB_PAUSED   2

Definition at line 195 of file btrfsioctl.h.

◆ BTRFS_SCRUB_RUNNING

#define BTRFS_SCRUB_RUNNING   1

Definition at line 194 of file btrfsioctl.h.

◆ BTRFS_SCRUB_STOPPED

#define BTRFS_SCRUB_STOPPED   0

Definition at line 193 of file btrfsioctl.h.

◆ FSCTL_BTRFS_ADD_DEVICE

#define FSCTL_BTRFS_ADD_DEVICE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x835, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 19 of file btrfsioctl.h.

◆ FSCTL_BTRFS_CREATE_SNAPSHOT

#define FSCTL_BTRFS_CREATE_SNAPSHOT   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82b, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 9 of file btrfsioctl.h.

◆ FSCTL_BTRFS_CREATE_SUBVOL

#define FSCTL_BTRFS_CREATE_SUBVOL   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82a, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 8 of file btrfsioctl.h.

◆ FSCTL_BTRFS_FIND_SUBVOL

#define FSCTL_BTRFS_FIND_SUBVOL   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x845, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 35 of file btrfsioctl.h.

◆ FSCTL_BTRFS_GET_DEVICES

#define FSCTL_BTRFS_GET_DEVICES   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82e, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 12 of file btrfsioctl.h.

◆ FSCTL_BTRFS_GET_FILE_IDS

#define FSCTL_BTRFS_GET_FILE_IDS   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x829, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 7 of file btrfsioctl.h.

◆ FSCTL_BTRFS_GET_INODE_INFO

#define FSCTL_BTRFS_GET_INODE_INFO   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82c, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 10 of file btrfsioctl.h.

◆ FSCTL_BTRFS_GET_USAGE

#define FSCTL_BTRFS_GET_USAGE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82f, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 13 of file btrfsioctl.h.

◆ FSCTL_BTRFS_GET_UUID

#define FSCTL_BTRFS_GET_UUID   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x838, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 22 of file btrfsioctl.h.

◆ FSCTL_BTRFS_GET_XATTRS

#define FSCTL_BTRFS_GET_XATTRS   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x842, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 32 of file btrfsioctl.h.

◆ FSCTL_BTRFS_MKNOD

#define FSCTL_BTRFS_MKNOD   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x840, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 30 of file btrfsioctl.h.

◆ FSCTL_BTRFS_PAUSE_BALANCE

#define FSCTL_BTRFS_PAUSE_BALANCE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x832, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 16 of file btrfsioctl.h.

◆ FSCTL_BTRFS_PAUSE_SCRUB

#define FSCTL_BTRFS_PAUSE_SCRUB   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83b, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 25 of file btrfsioctl.h.

◆ FSCTL_BTRFS_QUERY_BALANCE

#define FSCTL_BTRFS_QUERY_BALANCE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x831, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 15 of file btrfsioctl.h.

◆ FSCTL_BTRFS_QUERY_SCRUB

#define FSCTL_BTRFS_QUERY_SCRUB   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83a, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 24 of file btrfsioctl.h.

◆ FSCTL_BTRFS_READ_SEND_BUFFER

#define FSCTL_BTRFS_READ_SEND_BUFFER   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x847, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 37 of file btrfsioctl.h.

◆ FSCTL_BTRFS_RECEIVED_SUBVOL

#define FSCTL_BTRFS_RECEIVED_SUBVOL   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x841, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 31 of file btrfsioctl.h.

◆ FSCTL_BTRFS_REMOVE_DEVICE

#define FSCTL_BTRFS_REMOVE_DEVICE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x836, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 20 of file btrfsioctl.h.

◆ FSCTL_BTRFS_RESERVE_SUBVOL

#define FSCTL_BTRFS_RESERVE_SUBVOL   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x844, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 34 of file btrfsioctl.h.

◆ FSCTL_BTRFS_RESET_STATS

#define FSCTL_BTRFS_RESET_STATS   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83f, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 29 of file btrfsioctl.h.

◆ FSCTL_BTRFS_RESIZE

#define FSCTL_BTRFS_RESIZE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x848, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 38 of file btrfsioctl.h.

◆ FSCTL_BTRFS_RESUME_BALANCE

#define FSCTL_BTRFS_RESUME_BALANCE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x833, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 17 of file btrfsioctl.h.

◆ FSCTL_BTRFS_RESUME_SCRUB

#define FSCTL_BTRFS_RESUME_SCRUB   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83c, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 26 of file btrfsioctl.h.

◆ FSCTL_BTRFS_SEND_SUBVOL

#define FSCTL_BTRFS_SEND_SUBVOL   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x846, METHOD_BUFFERED, FILE_ANY_ACCESS)

Definition at line 36 of file btrfsioctl.h.

◆ FSCTL_BTRFS_SET_INODE_INFO

#define FSCTL_BTRFS_SET_INODE_INFO   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x82d, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 11 of file btrfsioctl.h.

◆ FSCTL_BTRFS_SET_XATTR

#define FSCTL_BTRFS_SET_XATTR   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x843, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 33 of file btrfsioctl.h.

◆ FSCTL_BTRFS_START_BALANCE

#define FSCTL_BTRFS_START_BALANCE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x830, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 14 of file btrfsioctl.h.

◆ FSCTL_BTRFS_START_SCRUB

#define FSCTL_BTRFS_START_SCRUB   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x839, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 23 of file btrfsioctl.h.

◆ FSCTL_BTRFS_STOP_BALANCE

#define FSCTL_BTRFS_STOP_BALANCE   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x834, METHOD_IN_DIRECT, FILE_ANY_ACCESS)

Definition at line 18 of file btrfsioctl.h.

◆ FSCTL_BTRFS_STOP_SCRUB

#define FSCTL_BTRFS_STOP_SCRUB   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83d, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 27 of file btrfsioctl.h.

◆ IOCTL_BTRFS_PROBE_VOLUME

#define IOCTL_BTRFS_PROBE_VOLUME   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x83e, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 28 of file btrfsioctl.h.

◆ IOCTL_BTRFS_QUERY_FILESYSTEMS

#define IOCTL_BTRFS_QUERY_FILESYSTEMS   CTL_CODE(FILE_DEVICE_UNKNOWN, 0x837, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)

Definition at line 21 of file btrfsioctl.h.