ReactOS 0.4.16-dev-927-g467dec4
|
#include <ntifs.h>
#include <ntddk.h>
#include <mountmgr.h>
#include <windef.h>
#include <wdm.h>
#include <stdio.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "btrfs.h"
#include "btrfsioctl.h"
Go to the source code of this file.
#define __attribute__ | ( | x | ) |
Definition at line 1197 of file btrfs_drv.h.
#define __drv_aliasesMem |
Definition at line 203 of file btrfs_drv.h.
#define __S_IFBLK 0060000 /* Block device. */ |
Definition at line 1756 of file btrfs_drv.h.
#define __S_IFCHR 0020000 /* Character device. */ |
Definition at line 1755 of file btrfs_drv.h.
#define __S_IFDIR 0040000 /* Directory. */ |
Definition at line 1754 of file btrfs_drv.h.
#define __S_IFIFO 0010000 /* FIFO. */ |
Definition at line 1758 of file btrfs_drv.h.
#define __S_IFLNK 0120000 /* Symbolic link. */ |
Definition at line 1759 of file btrfs_drv.h.
Definition at line 1753 of file btrfs_drv.h.
#define __S_IFREG 0100000 /* Regular file. */ |
Definition at line 1757 of file btrfs_drv.h.
#define __S_IFSOCK 0140000 /* Socket. */ |
Definition at line 1760 of file btrfs_drv.h.
Definition at line 1761 of file btrfs_drv.h.
#define _CRT_SECURE_NO_WARNINGS |
Definition at line 26 of file btrfs_drv.h.
Definition at line 204 of file btrfs_drv.h.
Definition at line 205 of file btrfs_drv.h.
#define _NO_CRT_STDIO_INLINE |
Definition at line 27 of file btrfs_drv.h.
#define _WIN32_WINNT 0x0601 |
Definition at line 24 of file btrfs_drv.h.
Definition at line 1139 of file btrfs_drv.h.
#define ALLOC_TAG 0x7442484D |
Definition at line 87 of file btrfs_drv.h.
#define ALLOC_TAG_ZLIB 0x7A42484D |
Definition at line 88 of file btrfs_drv.h.
#define BALANCE_OPTS_DATA 0 |
Definition at line 693 of file btrfs_drv.h.
#define BALANCE_OPTS_METADATA 1 |
Definition at line 694 of file btrfs_drv.h.
#define BALANCE_OPTS_SYSTEM 2 |
Definition at line 695 of file btrfs_drv.h.
#define BLAKE2_HASH_SIZE 32 |
Definition at line 1252 of file btrfs_drv.h.
#define BTRFS_NODE_TYPE_CCB 0x2295 |
Definition at line 84 of file btrfs_drv.h.
#define BTRFS_NODE_TYPE_FCB 0x2296 |
Definition at line 85 of file btrfs_drv.h.
#define BTRFS_VOLUME_PREFIX L"\\Device\\Btrfs{" |
Definition at line 127 of file btrfs_drv.h.
#define CC_ENABLE_DISK_IO_ACCOUNTING 0x00000010 |
Definition at line 1845 of file btrfs_drv.h.
#define COMPRESSED_EXTENT_SIZE 0x20000 |
Definition at line 112 of file btrfs_drv.h.
#define EA_CASE_SENSITIVE "user.casesensitive" |
Definition at line 105 of file btrfs_drv.h.
#define EA_CASE_SENSITIVE_HASH 0x1a9d97d4 |
Definition at line 106 of file btrfs_drv.h.
#define EA_DOSATTRIB "user.DOSATTRIB" |
Definition at line 96 of file btrfs_drv.h.
#define EA_DOSATTRIB_HASH 0x914f9939 |
Definition at line 97 of file btrfs_drv.h.
#define EA_EA "user.EA" |
Definition at line 102 of file btrfs_drv.h.
#define EA_EA_HASH 0x8270dd43 |
Definition at line 103 of file btrfs_drv.h.
#define EA_NTACL "security.NTACL" |
Definition at line 93 of file btrfs_drv.h.
#define EA_NTACL_HASH 0x45922146 |
Definition at line 94 of file btrfs_drv.h.
#define EA_PROP_COMPRESSION "btrfs.compression" |
Definition at line 108 of file btrfs_drv.h.
#define EA_PROP_COMPRESSION_HASH 0x20ccdf69 |
Definition at line 109 of file btrfs_drv.h.
#define EA_REPARSE "user.reparse" |
Definition at line 99 of file btrfs_drv.h.
#define EA_REPARSE_HASH 0xfabad1fe |
Definition at line 100 of file btrfs_drv.h.
Definition at line 1234 of file btrfs_drv.h.
#define FILE_CS_FLAG_CASE_SENSITIVE_DIR 1 |
Definition at line 165 of file btrfs_drv.h.
#define FILE_DEVICE_ALLOW_APPCONTAINER_TRAVERSAL 0x00020000 |
Definition at line 156 of file btrfs_drv.h.
#define FILE_SUPPORTS_BLOCK_REFCOUNTING 0x08000000 |
Definition at line 148 of file btrfs_drv.h.
#define FILE_SUPPORTS_POSIX_UNLINK_RENAME 0x00000400 |
Definition at line 152 of file btrfs_drv.h.
Definition at line 137 of file btrfs_drv.h.
Definition at line 1233 of file btrfs_drv.h.
#define FSCTL_DUPLICATE_EXTENTS_TO_FILE CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 209, METHOD_BUFFERED, FILE_WRITE_ACCESS) |
Definition at line 182 of file btrfs_drv.h.
#define FSCTL_GET_INTEGRITY_INFORMATION CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 159, METHOD_BUFFERED, FILE_ANY_ACCESS) |
Definition at line 198 of file btrfs_drv.h.
#define FSCTL_SET_INTEGRITY_INFORMATION CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 160, METHOD_BUFFERED, FILE_READ_DATA | FILE_WRITE_DATA) |
Definition at line 199 of file btrfs_drv.h.
#define FSRTL_FCB_HEADER_V2 2 |
Definition at line 1655 of file btrfs_drv.h.
#define funcname __func__ |
Definition at line 1176 of file btrfs_drv.h.
#define GID_NOBODY 65534 |
Definition at line 91 of file btrfs_drv.h.
Definition at line 1748 of file btrfs_drv.h.
#define increase_fileref_refcount | ( | fileref | ) | InterlockedIncrement(&fileref->refcount) |
Definition at line 1739 of file btrfs_drv.h.
Definition at line 1745 of file btrfs_drv.h.
Definition at line 143 of file btrfs_drv.h.
#define IO_REPARSE_TAG_AF_UNIX 0x80000023 |
Definition at line 120 of file btrfs_drv.h.
#define IO_REPARSE_TAG_LX_BLK 0x80000026 |
Definition at line 123 of file btrfs_drv.h.
#define IO_REPARSE_TAG_LX_CHR 0x80000025 |
Definition at line 122 of file btrfs_drv.h.
#define IO_REPARSE_TAG_LX_FIFO 0x80000024 |
Definition at line 121 of file btrfs_drv.h.
#define IO_REPARSE_TAG_LX_SYMLINK 0xa000001d |
Definition at line 118 of file btrfs_drv.h.
Definition at line 1016 of file btrfs_drv.h.
#define leave |
Definition at line 138 of file btrfs_drv.h.
Definition at line 1821 of file btrfs_drv.h.
#define makedev | ( | major, | |
minor | |||
) | (((minor) & 0xFF) | (((major) & 0xFFF) << 8) | (((uint64_t)((minor) & ~0xFF)) << 12) | (((uint64_t)((major) & ~0xFFF)) << 32)) |
Definition at line 1637 of file btrfs_drv.h.
#define MAX_EXTENT_SIZE 0x8000000 |
Definition at line 111 of file btrfs_drv.h.
#define MAX_HASH_SIZE 32 |
Definition at line 213 of file btrfs_drv.h.
Definition at line 1822 of file btrfs_drv.h.
#define NTDDI_VERSION 0x06020000 |
Definition at line 25 of file btrfs_drv.h.
#define READ_AHEAD_GRANULARITY COMPRESSED_EXTENT_SIZE |
Definition at line 114 of file btrfs_drv.h.
Definition at line 1140 of file btrfs_drv.h.
Definition at line 1785 of file btrfs_drv.h.
Definition at line 1797 of file btrfs_drv.h.
#define S_IRUSR 0000400 |
Definition at line 1768 of file btrfs_drv.h.
#define S_ISDIR | ( | mode | ) | __S_ISTYPE((mode), __S_IFDIR) |
Definition at line 1764 of file btrfs_drv.h.
#define S_ISGID 0002000 |
Definition at line 1813 of file btrfs_drv.h.
#define S_ISUID 0004000 |
Definition at line 1809 of file btrfs_drv.h.
#define S_ISVTX 0001000 |
Definition at line 1817 of file btrfs_drv.h.
Definition at line 1789 of file btrfs_drv.h.
Definition at line 1801 of file btrfs_drv.h.
#define S_IWUSR 0000200 |
Definition at line 1772 of file btrfs_drv.h.
Definition at line 1793 of file btrfs_drv.h.
Definition at line 1805 of file btrfs_drv.h.
#define S_IXUSR 0000100 |
Definition at line 1776 of file btrfs_drv.h.
#define SHA256_HASH_SIZE 32 |
Definition at line 1248 of file btrfs_drv.h.
Definition at line 135 of file btrfs_drv.h.
#define UID_NOBODY 65534 |
Definition at line 90 of file btrfs_drv.h.
#define VCB_TYPE_BUS 5 |
Definition at line 691 of file btrfs_drv.h.
#define VCB_TYPE_CONTROL 2 |
Definition at line 688 of file btrfs_drv.h.
#define VCB_TYPE_FS 1 |
Definition at line 687 of file btrfs_drv.h.
#define VCB_TYPE_PDO 4 |
Definition at line 690 of file btrfs_drv.h.
#define VCB_TYPE_VOLUME 3 |
Definition at line 689 of file btrfs_drv.h.
typedef struct _device_extension device_extension |
Definition at line 1364 of file btrfs_drv.h.
typedef struct _fcb_nonpaged fcb_nonpaged |
typedef struct _FILE_ID_128 FILE_ID_128 |
typedef struct _PEB_LDR_DATA PEB_LDR_DATA |
typedef struct _FILE_ID_128 * PFILE_ID_128 |
typedef struct _PEB_LDR_DATA* PPEB_LDR_DATA |
Definition at line 1905 of file btrfs_drv.h.
typedef struct _root_cache root_cache |
typedef BOOLEAN(__stdcall * tCcCopyReadEx) (PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset, ULONG Length, BOOLEAN Wait, PVOID Buffer, PIO_STATUS_BLOCK IoStatus, PETHREAD IoIssuerThread) |
Definition at line 1841 of file btrfs_drv.h.
typedef BOOLEAN(__stdcall * tCcCopyWriteEx) (PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset, ULONG Length, BOOLEAN Wait, PVOID Buffer, PETHREAD IoIssuerThread) |
Definition at line 1838 of file btrfs_drv.h.
typedef VOID(__stdcall * tCcSetAdditionalCacheAttributesEx) (PFILE_OBJECT FileObject, ULONG Flags) |
Definition at line 1853 of file btrfs_drv.h.
typedef BOOLEAN(__stdcall * tFsRtlAreThereCurrentOrInProgressFileLocks) (PFILE_LOCK FileLock) |
Definition at line 1868 of file btrfs_drv.h.
typedef BOOLEAN(__stdcall * tFsRtlCheckLockForOplockRequest) (PFILE_LOCK FileLock, PLARGE_INTEGER AllocationSize) |
Definition at line 1866 of file btrfs_drv.h.
Definition at line 1859 of file btrfs_drv.h.
typedef NTSTATUS(__stdcall * tFsRtlGetNextExtraCreateParameter) (PECP_LIST EcpList, PVOID CurrentEcpContext, LPGUID NextEcpType, PVOID *NextEcpContext, ULONG *NextEcpContextSize) |
Definition at line 1861 of file btrfs_drv.h.
Definition at line 1855 of file btrfs_drv.h.
typedef NTSTATUS(__stdcall * tFsRtlValidateReparsePointBuffer) (ULONG BufferLength, PREPARSE_DATA_BUFFER ReparseBuffer) |
Definition at line 1864 of file btrfs_drv.h.
typedef NTSTATUS(__stdcall * tIoUnregisterPlugPlayNotificationEx) (PVOID NotificationEntry) |
Definition at line 1857 of file btrfs_drv.h.
Definition at line 1833 of file btrfs_drv.h.
typedef VOID(__stdcall * tPsUpdateDiskCounters) (PEPROCESS Process, ULONG64 BytesRead, ULONG64 BytesWritten, ULONG ReadOperationCount, ULONG WriteOperationCount, ULONG FlushOperationCount) |
Definition at line 1835 of file btrfs_drv.h.
typedef struct _tree_data tree_data |
Definition at line 1131 of file btrfs_drv.h.
Definition at line 470 of file btrfs_drv.h.
Definition at line 627 of file btrfs_drv.h.
Enumerator | |
---|---|
PropCompression_None | |
PropCompression_Zlib | |
PropCompression_LZO | |
PropCompression_ZSTD |
Definition at line 267 of file btrfs_drv.h.
Enumerator | |
---|---|
ROLLBACK_INSERT_EXTENT | |
ROLLBACK_DELETE_EXTENT | |
ROLLBACK_ADD_SPACE | |
ROLLBACK_SUBTRACT_SPACE |
Definition at line 1267 of file btrfs_drv.h.
Enumerator | |
---|---|
WriteDataStatus_Pending | |
WriteDataStatus_Success | |
WriteDataStatus_Error | |
WriteDataStatus_Cancelling | |
WriteDataStatus_Cancelled | |
WriteDataStatus_Ignore |
Definition at line 914 of file btrfs_drv.h.
IN PIRP Irp __attribute__ | ( | (nonnull(1, 2)) | ) |
Definition at line 2730 of file read.c.
_In_ fcb _In_ chunk _In_ uint64_t _In_ uint64_t _In_ bool _In_opt_ void _In_opt_ PIRP _In_ LIST_ENTRY _In_ uint8_t _In_ uint64_t _In_ bool _In_ uint64_t irp_offset __attribute__ | ( | (nonnull(1, 2, 3, 9)) | ) |
_Create_lock_level_ | ( | tree_lock | ) |
_Dispatch_type_ | ( | IRP_MJ_CREATE | ) |
_Dispatch_type_ | ( | IRP_MJ_DEVICE_CONTROL | ) |
Definition at line 1385 of file isapnp.c.
_Dispatch_type_ | ( | IRP_MJ_PNP | ) |
Definition at line 377 of file isapnp.c.
_Dispatch_type_ | ( | IRP_MJ_QUERY_EA | ) |
_Dispatch_type_ | ( | IRP_MJ_QUERY_INFORMATION | ) |
_Dispatch_type_ | ( | IRP_MJ_QUERY_SECURITY | ) |
_Dispatch_type_ | ( | IRP_MJ_READ | ) |
_Dispatch_type_ | ( | IRP_MJ_SET_EA | ) |
_Dispatch_type_ | ( | IRP_MJ_SET_INFORMATION | ) |
_Dispatch_type_ | ( | IRP_MJ_SET_SECURITY | ) |
_Dispatch_type_ | ( | IRP_MJ_WRITE | ) |
_Function_class_ | ( | DRIVER_ADD_DEVICE | ) |
_Function_class_ | ( | DRIVER_NOTIFICATION_CALLBACK_ROUTINE | ) |
_Function_class_ | ( | KSTART_ROUTINE | ) |
Definition at line 3047 of file balance.c.
_Post_satisfies_ | ( | return >= | n | ) |
_Releases_lock_ | ( | c-> | lock | ) |
|
pure virtual |
_Requires_lock_held_ | ( | Vcb-> | fcb_lock | ) | -> fcb_lock) static __inline void release_fcb_lock(device_extension* Vcb) |
Definition at line 971 of file btrfs_drv.h.
_Requires_lock_not_held_ | ( | Vcb-> | fcb_lock | ) | -> fcb_lock) static __inline void acquire_fcb_lock_shared(device_extension* Vcb) |
Definition at line 959 of file btrfs_drv.h.
_Success_ | ( | return | ) |
Definition at line 57 of file firmware.c.
NTSTATUS add_calc_job_comp | ( | device_extension * | Vcb, |
uint8_t | compression, | ||
void * | in, | ||
unsigned int | inlen, | ||
void * | out, | ||
unsigned int | outlen, | ||
calc_job ** | pcj | ||
) |
Definition at line 237 of file calcthread.c.
Referenced by write_compressed().
NTSTATUS add_calc_job_decomp | ( | device_extension * | Vcb, |
uint8_t | compression, | ||
void * | in, | ||
unsigned int | inlen, | ||
void * | out, | ||
unsigned int | outlen, | ||
unsigned int | off, | ||
calc_job ** | pcj | ||
) |
Definition at line 183 of file calcthread.c.
void add_changed_extent_ref | ( | chunk * | c, |
uint64_t | address, | ||
uint64_t | size, | ||
uint64_t | root, | ||
uint64_t | objid, | ||
uint64_t | offset, | ||
uint32_t | count, | ||
bool | no_csum | ||
) |
Definition at line 2076 of file extent-tree.c.
Referenced by insert_extent_chunk(), rationalize_extents(), and write_compressed().
void add_checksum_entry | ( | device_extension * | Vcb, |
uint64_t | address, | ||
ULONG | length, | ||
void * | csum, | ||
PIRP | Irp | ||
) |
Definition at line 2602 of file flushthread.c.
Referenced by balance_data_chunk(), decrease_extent_refcount(), flush_fcb(), and rationalize_extents().
NTSTATUS add_dir_child | ( | fcb * | fcb, |
uint64_t | inode, | ||
bool | subvol, | ||
PANSI_STRING | utf8, | ||
PUNICODE_STRING | name, | ||
uint8_t | type, | ||
dir_child ** | pdc | ||
) |
Definition at line 1871 of file create.c.
Referenced by create_subvol(), do_create_snapshot(), file_create2(), mknod(), and set_link_information().
NTSTATUS bool void NTSTATUS void add_extent | ( | _In_ fcb * | fcb, |
_In_ LIST_ENTRY * | prevextle, | ||
_In_ __drv_aliasesMem extent * | newext | ||
) |
Referenced by __attribute__(), and duplicate_extents().
NTSTATUS bool void NTSTATUS add_extent_to_fcb | ( | _In_ fcb * | fcb, |
_In_ uint64_t | offset, | ||
_In_reads_bytes_(edsize) EXTENT_DATA * | ed, | ||
_In_ uint16_t | edsize, | ||
_In_ bool | unique, | ||
_In_opt_ _When_(return >=0, __drv_aliasesMem) void * | csum, | ||
_In_ LIST_ENTRY * | rollback | ||
) |
Referenced by __attribute__(), duplicate_extents(), insert_extent_chunk(), rename_stream_to_file(), write_compressed(), and zero_data().
void add_fcb_to_subvol | ( | _In_ _Requires_exclusive_lock_held_(_Curr_->Vcb->fcb_lock) fcb * | fcb | ) |
Definition at line 888 of file fileinfo.c.
Referenced by allocate_cache_chunk(), create_directory_fcb(), create_subvol(), mknod(), move_across_subvols(), rename_stream(), and rename_stream_to_file().
Definition at line 145 of file security.c.
Referenced by read_group_mappings().
void void void add_rollback | ( | _In_ LIST_ENTRY * | rollback, |
_In_ enum rollback_type | type, | ||
_In_ __drv_aliasesMem void * | ptr | ||
) |
Referenced by add_rollback_space().
NTSTATUS add_space_entry | ( | LIST_ENTRY * | list, |
LIST_ENTRY * | list_size, | ||
uint64_t | offset, | ||
uint64_t | size | ||
) |
Definition at line 190 of file free-space.c.
Referenced by add_device(), find_disk_holes(), load_free_space_bitmap(), load_stored_free_space_cache(), and load_stored_free_space_tree().
bool add_thread_job | ( | device_extension * | Vcb, |
PIRP | Irp | ||
) |
Definition at line 109 of file worker-thread.c.
Referenced by _Dispatch_type_().
void add_trim_entry_avoid_sb | ( | device_extension * | Vcb, |
device * | dev, | ||
uint64_t | address, | ||
uint64_t | size | ||
) |
Definition at line 5507 of file flushthread.c.
Referenced by drop_chunk(), and trim_unalloc_space().
Definition at line 56 of file security.c.
Referenced by read_mappings().
void add_volume_device | ( | superblock * | sb, |
PUNICODE_STRING | devpath, | ||
uint64_t | length, | ||
ULONG | disk_num, | ||
ULONG | part_num | ||
) |
Definition at line 1077 of file volume.c.
Referenced by test_vol().
NTSTATUS alloc_chunk | ( | device_extension * | Vcb, |
uint64_t | flags, | ||
chunk ** | pc, | ||
bool | full_size | ||
) |
NTSTATUS allocate_cache | ( | device_extension * | Vcb, |
bool * | changed, | ||
PIRP | Irp, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 1382 of file free-space.c.
Referenced by do_write2().
Definition at line 237 of file blake2b-ref.c.
void boot_add_device | ( | DEVICE_OBJECT * | pdo | ) |
Definition at line 318 of file boot.c.
Referenced by add_volume_device(), and check_system_root().
Definition at line 126 of file sha256.c.
Referenced by calc_superblock_checksum(), calc_thread_main(), calc_tree_checksum(), check_sector_csum(), check_superblock_checksum(), check_tree_checksum(), get_sector_csum(), and get_tree_checksum().
void calc_thread_main | ( | device_extension * | Vcb, |
calc_job * | cj | ||
) |
Definition at line 22 of file calcthread.c.
Referenced by _Function_class_(), do_calc_job(), and write_compressed().
void calc_tree_checksum | ( | device_extension * | Vcb, |
tree_header * | th | ||
) |
Definition at line 1806 of file flushthread.c.
Referenced by snapshot_tree_copy(), write_metadata_items(), and write_trees().
NTSTATUS check_csum | ( | device_extension * | Vcb, |
uint8_t * | data, | ||
uint32_t | sectors, | ||
void * | csum | ||
) |
Definition at line 87 of file read.c.
Referenced by read_data_dup(), read_data_raid0(), read_data_raid10(), read_data_raid5(), and read_data_raid6().
Definition at line 5797 of file btrfs.c.
Referenced by create_snapshot(), create_stream(), create_subvol(), file_create(), find_file_in_dir(), rename_file_to_stream(), rename_stream(), set_link_information(), and set_rename_information().
bool check_sector_csum | ( | device_extension * | Vcb, |
void * | buf, | ||
void * | csum | ||
) |
Definition at line 202 of file read.c.
Referenced by read_data_dup(), read_data_raid0(), read_data_raid10(), read_data_raid5(), read_data_raid6(), scrub_extent_raid0(), scrub_extent_raid10(), scrub_raid5_stripe(), and scrub_raid6_stripe().
bool check_superblock_checksum | ( | superblock * | sb | ) |
Definition at line 2825 of file btrfs.c.
Referenced by device_still_valid(), is_device_part_of_mounted_btrfs_raid(), read_superblock(), still_has_superblock(), test_vol(), and verify_device().
void check_system_root | ( | ) |
Definition at line 336 of file boot.c.
Referenced by _Function_class_().
bool check_tree_checksum | ( | device_extension * | Vcb, |
tree_header * | th | ||
) |
Definition at line 128 of file read.c.
Referenced by read_data_dup(), read_data_raid0(), read_data_raid10(), read_data_raid5(), read_data_raid6(), scrub_extent_dup(), scrub_extent_raid0(), scrub_extent_raid10(), scrub_raid5_stripe(), and scrub_raid6_stripe().
void chunk_lock_range | ( | _In_ device_extension * | Vcb, |
_In_ chunk * | c, | ||
_In_ uint64_t | start, | ||
_In_ uint64_t | length | ||
) |
Definition at line 5844 of file btrfs.c.
Referenced by read_data(), and scrub_chunk_raid56_stripe_run().
void chunk_unlock_range | ( | _In_ device_extension * | Vcb, |
_In_ chunk * | c, | ||
_In_ uint64_t | start, | ||
_In_ uint64_t | length | ||
) |
Definition at line 5891 of file btrfs.c.
Referenced by read_data(), and scrub_chunk_raid56_stripe_run().
void void void NTSTATUS void clear_batch_list | ( | device_extension * | Vcb, |
LIST_ENTRY * | batchlist | ||
) |
Referenced by allocate_cache(), do_write2(), mount_vol(), update_chunk_caches(), and update_chunk_usage().
NTSTATUS clear_free_space_cache | ( | device_extension * | Vcb, |
LIST_ENTRY * | batchlist, | ||
PIRP | Irp | ||
) |
Definition at line 59 of file free-space.c.
Referenced by mount_vol().
NTSTATUS NTSTATUS void clear_rollback | ( | LIST_ENTRY * | rollback | ) |
Referenced by _Dispatch_type_(), balance_data_chunk(), balance_metadata_chunk(), check_for_orphans_root(), clear_free_space_cache(), delete_reparse_point(), do_create_snapshot(), do_write(), duplicate_extents(), load_stored_free_space_cache(), oplock_complete(), set_end_of_file_information(), set_link_information(), set_rename_information(), set_reparse_point(), set_valid_data_length_information(), and set_zero_data().
void void void NTSTATUS commit_batch_list | ( | _Requires_exclusive_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
LIST_ENTRY * | batchlist, | ||
PIRP | Irp | ||
) |
Referenced by allocate_cache(), do_write2(), mount_vol(), update_chunk_caches(), and update_chunk_usage().
NTSTATUS __stdcall compat_FsRtlValidateReparsePointBuffer | ( | IN ULONG | BufferLength, |
IN PREPARSE_DATA_BUFFER | ReparseBuffer | ||
) |
Definition at line 32 of file fsrtl.c.
Referenced by _Function_class_().
fcb * create_fcb | ( | device_extension * | Vcb, |
POOL_TYPE | pool_type | ||
) |
Definition at line 91 of file create.c.
Referenced by allocate_cache_chunk(), create_directory_fcb(), create_stream(), create_subvol(), duplicate_fcb(), file_create2(), mknod(), mount_vol(), open_fcb(), open_fcb_stream(), rename_stream(), and rename_stream_to_file().
file_ref * create_fileref | ( | device_extension * | Vcb | ) |
Definition at line 160 of file create.c.
Referenced by create_stream(), create_subvol(), do_create_snapshot(), file_create2(), mknod(), mount_vol(), move_across_subvols(), open_fileref_child(), rename_file_to_stream(), set_link_information(), and set_rename_information().
NTSTATUS create_root | ( | _In_ _Requires_exclusive_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
_In_ uint64_t | id, | ||
_Out_ root ** | rootptr, | ||
_In_ bool | no_tree, | ||
_In_ uint64_t | offset, | ||
_In_opt_ PIRP | Irp | ||
) |
Definition at line 1271 of file btrfs.c.
Referenced by create_subvol(), do_create_snapshot(), flush_subvol(), and look_for_roots().
NTSTATUS decrease_extent_refcount | ( | device_extension * | Vcb, |
uint64_t | address, | ||
uint64_t | size, | ||
uint8_t | type, | ||
void * | data, | ||
KEY * | firstitem, | ||
uint8_t | level, | ||
uint64_t | parent, | ||
bool | superseded, | ||
PIRP | Irp | ||
) |
Definition at line 903 of file extent-tree.c.
Referenced by add_metadata_reloc_extent_item(), decrease_extent_refcount(), decrease_extent_refcount_data(), decrease_extent_refcount_tree(), and update_tree_extents().
NTSTATUS decrease_extent_refcount_data | ( | device_extension * | Vcb, |
uint64_t | address, | ||
uint64_t | size, | ||
uint64_t | root, | ||
uint64_t | inode, | ||
uint64_t | offset, | ||
uint32_t | refcount, | ||
bool | superseded, | ||
PIRP | Irp | ||
) |
Definition at line 1548 of file extent-tree.c.
Referenced by flush_changed_extent().
NTSTATUS decrease_extent_refcount_tree | ( | device_extension * | Vcb, |
uint64_t | address, | ||
uint64_t | size, | ||
uint64_t | root, | ||
uint8_t | level, | ||
PIRP | Irp | ||
) |
Definition at line 1560 of file extent-tree.c.
Referenced by reduce_tree_extent().
NTSTATUS delete_fileref | ( | _In_ file_ref * | fileref, |
_In_opt_ PFILE_OBJECT | FileObject, | ||
_In_ bool | make_orphan, | ||
_In_opt_ PIRP | Irp, | ||
_In_ LIST_ENTRY * | rollback | ||
) |
Definition at line 2270 of file btrfs.c.
Referenced by _Dispatch_type_(), move_across_subvols(), open_file3(), rename_file_to_stream(), rename_stream(), set_link_information(), and set_rename_information().
Definition at line 482 of file reparse.c.
Referenced by fsctl_request().
NTSTATUS NTSTATUS delete_tree_item | ( | _In_ _Requires_exclusive_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
_Inout_ traverse_ptr * | tp | ||
) |
Referenced by add_balance_item(), add_checksum_entry(), add_data_reloc(), add_device(), add_metadata_reloc(), add_parents(), add_root_item_to_cache(), add_root_ref(), allocate_cache_chunk(), check_for_orphans_root(), clear_free_space_cache(), convert_old_extent(), create_root(), decrease_extent_refcount(), delete_root_ref(), drop_chunk(), drop_root(), finish_removing_device(), flush_changed_dev_stats(), flush_changed_extent(), flush_fcb(), flush_subvol(), increase_extent_refcount(), load_stored_free_space_cache(), remove_balance_item(), update_chunk_cache_tree(), update_chunk_usage(), update_dev_item(), update_extent_level(), update_root_backref(), and write_metadata_items().
NTSTATUS dev_ioctl | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_In_ ULONG | ControlCode, | ||
_In_reads_bytes_opt_(InputBufferSize) PVOID | InputBuffer, | ||
_In_ ULONG | InputBufferSize, | ||
_Out_writes_bytes_opt_(OutputBufferSize) PVOID | OutputBuffer, | ||
_In_ ULONG | OutputBufferSize, | ||
_In_ bool | Override, | ||
_Out_opt_ IO_STATUS_BLOCK * | iosb | ||
) |
Definition at line 2954 of file btrfs.c.
Referenced by _Function_class_(), add_device(), disk_arrival(), finish_removing_device(), get_device_change_count(), get_devices(), init_device(), is_btrfs_volume(), is_device_removable(), is_volume_mounted(), mount_vol(), mountmgr_add_drive_letter(), mountmgr_notification(), mountmgr_process_drive(), probe_volume(), query_filesystems(), remove_drive_letter(), remove_volume_child(), resize_device(), test_vol(), trim_unalloc_space(), trim_whole_device(), verify_device(), verify_vcb(), vol_check_verify(), vol_get_disk_extents(), vol_is_writable(), and volume_arrival().
void disk_arrival | ( | PUNICODE_STRING | devpath | ) |
Definition at line 460 of file search.c.
Referenced by probe_volume().
NTSTATUS dismount_volume | ( | device_extension * | Vcb, |
bool | shutdown, | ||
PIRP | Irp | ||
) |
Definition at line 2584 of file fsctl.c.
Referenced by do_shutdown(), and fsctl_request().
void do_calc_job | ( | device_extension * | Vcb, |
uint8_t * | data, | ||
uint32_t | sectors, | ||
void * | csum | ||
) |
Definition at line 141 of file calcthread.c.
Referenced by __attribute__(), check_csum(), insert_extent_chunk(), scrub_extent_dup(), scrub_extent_raid10(), and write_compressed().
NTSTATUS NTSTATUS do_load_tree | ( | device_extension * | Vcb, |
tree_holder * | th, | ||
root * | r, | ||
tree * | t, | ||
tree_data * | td, | ||
PIRP | Irp | ||
) |
Referenced by try_tree_amalgamate().
Definition at line 3328 of file read.c.
Referenced by _Dispatch_type_(), and do_read_job().
Definition at line 26 of file worker-thread.c.
Referenced by _Dispatch_type_(), and _Function_class_().
void do_rollback | ( | device_extension * | Vcb, |
LIST_ENTRY * | rollback | ||
) |
Referenced by _Dispatch_type_(), balance_data_chunk(), balance_metadata_chunk(), check_for_orphans_root(), clear_free_space_cache(), delete_reparse_point(), do_create_snapshot(), do_write(), duplicate_extents(), load_stored_free_space_cache(), oplock_complete(), set_end_of_file_information(), set_link_information(), set_rename_information(), set_reparse_point(), set_valid_data_length_information(), and set_zero_data().
Definition at line 5392 of file btrfs.c.
Referenced by _Dispatch_type_(), and ioctl_unload().
NTSTATUS do_tree_writes | ( | device_extension * | Vcb, |
LIST_ENTRY * | tree_writes, | ||
bool | no_free | ||
) |
Definition at line 1620 of file flushthread.c.
Referenced by write_metadata_items(), and write_trees().
void do_unlock_volume | ( | device_extension * | Vcb | ) |
Definition at line 2326 of file fsctl.c.
Referenced by _Dispatch_type_(), and unlock_volume().
NTSTATUS do_write | ( | device_extension * | Vcb, |
PIRP | Irp | ||
) |
Definition at line 7877 of file flushthread.c.
Referenced by _Dispatch_type_(), _Function_class_(), add_balance_item(), add_device(), balance_data_chunk(), balance_metadata_chunk(), dismount_volume(), do_create_snapshot(), do_flush(), finish_removing_device(), invalidate_volumes(), lock_volume(), pnp_query_remove_device(), remove_balance_item(), and try_consolidation().
NTSTATUS do_write_file | ( | fcb * | fcb, |
uint64_t | start_data, | ||
uint64_t | end_data, | ||
void * | data, | ||
PIRP | Irp, | ||
bool | file_write, | ||
uint32_t | irp_offset, | ||
LIST_ENTRY * | rollback | ||
) |
Referenced by __attribute__(), duplicate_extents(), rename_stream_to_file(), update_chunk_cache(), and zero_data().
NTSTATUS do_write_job | ( | device_extension * | Vcb, |
PIRP | Irp | ||
) |
Definition at line 68 of file worker-thread.c.
Referenced by _Dispatch_type_(), and _Function_class_().
NTSTATUS NTSTATUS NTSTATUS NTSTATUS extend_file | ( | fcb * | fcb, |
file_ref * | fileref, | ||
uint64_t | end, | ||
bool | prealloc, | ||
PIRP | Irp, | ||
LIST_ENTRY * | rollback | ||
) |
Referenced by __attribute__(), file_create2(), open_file3(), and set_end_of_file_information().
|
static |
Definition at line 1684 of file btrfs_drv.h.
Referenced by _Dispatch_type_(), _Function_class_(), allocate_cache_chunk(), create_directory_fcb(), create_stream(), create_subvol(), duplicate_fcb(), file_create2(), fsctl_oplock(), mknod(), and open_fcb_stream().
Definition at line 1824 of file btrfs_drv.h.
Referenced by _Function_class_(), fill_in_file_network_open_information(), fill_in_file_standard_information(), fill_in_file_stat_information(), fill_in_file_stat_lx_information(), and fill_in_file_stream_information().
NTSTATUS fcb_get_new_sd | ( | fcb * | fcb, |
file_ref * | parfileref, | ||
ACCESS_STATE * | as | ||
) |
Definition at line 988 of file security.c.
Referenced by file_create2().
Definition at line 511 of file security.c.
Referenced by fsctl_set_xattr(), and mount_vol().
Definition at line 3246 of file fsctl.c.
Referenced by __attribute__(), duplicate_extents(), and zero_data().
Definition at line 1677 of file btrfs_drv.h.
Referenced by _Dispatch_type_(), create_fcb(), fast_io_possible(), fsctl_oplock(), fsctl_request(), open_file2(), and reap_fcb().
NTSTATUS fileref_get_filename | ( | file_ref * | fileref, |
PUNICODE_STRING | fn, | ||
USHORT * | name_offset, | ||
ULONG * | preqlen | ||
) |
Definition at line 4245 of file fileinfo.c.
Referenced by fill_in_file_name_information(), get_subvol_path(), notify_change_directory(), send_notification_fcb(), send_notification_fileref(), and set_rename_information().
NTSTATUS find_chunk_usage | ( | _In_ _Requires_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
_In_opt_ PIRP | Irp | ||
) |
Definition at line 3876 of file btrfs.c.
Referenced by get_usage(), and mount_vol().
NTSTATUS bool find_data_address_in_chunk | ( | device_extension * | Vcb, |
chunk * | c, | ||
uint64_t | length, | ||
uint64_t * | address | ||
) |
Referenced by balance_data_chunk(), insert_extent_chunk(), and write_compressed().
_Ret_maybenull_ root * find_default_subvol | ( | _In_ _Requires_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
_In_opt_ PIRP | Irp | ||
) |
Definition at line 3981 of file btrfs.c.
Referenced by load_dir_children(), and mount_vol().
_Ret_maybenull_ device * find_device_from_uuid | ( | _In_ device_extension * | Vcb, |
_In_ BTRFS_UUID * | uuid | ||
) |
Definition at line 3299 of file btrfs.c.
Referenced by load_chunk_root(), and read_data().
uint32_t find_extent_shared_data_refcount | ( | device_extension * | Vcb, |
uint64_t | address, | ||
uint64_t | parent, | ||
PIRP | Irp | ||
) |
Definition at line 2220 of file extent-tree.c.
Referenced by add_metadata_reloc_extent_item(), and update_tree_extents().
uint64_t find_extent_shared_tree_refcount | ( | device_extension * | Vcb, |
uint64_t | address, | ||
uint64_t | parent, | ||
PIRP | Irp | ||
) |
Definition at line 2119 of file extent-tree.c.
Referenced by add_metadata_reloc_extent_item(), and update_tree_extents().
NTSTATUS find_file_in_dir | ( | PUNICODE_STRING | filename, |
fcb * | fcb, | ||
root ** | subvol, | ||
uint64_t * | inode, | ||
dir_child ** | pdc, | ||
bool | case_sensitive | ||
) |
Definition at line 182 of file create.c.
Referenced by mknod(), and open_fileref_child().
Definition at line 924 of file security.c.
Referenced by create_directory_fcb(), create_subvol(), fcb_get_new_sd(), and mknod().
NTSTATUS find_item | ( | _In_ _Requires_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
_In_ root * | r, | ||
_Out_ traverse_ptr * | tp, | ||
_In_ const KEY * | searchkey, | ||
_In_ bool | ignore, | ||
_In_opt_ PIRP | Irp | ||
) |
NTSTATUS NTSTATUS find_item_to_level | ( | device_extension * | Vcb, |
root * | r, | ||
traverse_ptr * | tp, | ||
const KEY * | searchkey, | ||
bool | ignore, | ||
uint8_t | level, | ||
PIRP | Irp | ||
) |
Referenced by write_metadata_items().
bool find_metadata_address_in_chunk | ( | device_extension * | Vcb, |
chunk * | c, | ||
uint64_t * | address | ||
) |
Definition at line 744 of file flushthread.c.
Referenced by insert_tree_extent(), and write_metadata_items().
NTSTATUS NTSTATUS bool find_next_item | ( | _Requires_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
const traverse_ptr * | tp, | ||
traverse_ptr * | next_tp, | ||
bool | ignore, | ||
PIRP | Irp | ||
) |
Referenced by _Function_class_(), add_checksum_entry(), add_data_reloc(), add_metadata_reloc(), balance_data_chunk(), balance_metadata_chunk(), check_for_orphans_root(), clear_free_space_cache(), convert_old_extent(), data_reloc_add_tree_edr(), find_disk_holes(), get_dir_last_child(), is_extent_unique(), load_chunk_root(), load_csum(), load_dir_children(), load_free_space_cache(), load_stored_free_space_tree(), log_unrecoverable_error(), look_for_roots(), open_fcb(), open_fileref_by_inode(), scrub_chunk(), scrub_chunk_raid56(), scrub_chunk_raid56_stripe_run(), trim_unalloc_space(), try_clone(), try_clone_edr(), and update_chunk_cache_tree().
NTSTATUS NTSTATUS bool bool find_prev_item | ( | _Requires_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
const traverse_ptr * | tp, | ||
traverse_ptr * | prev_tp, | ||
PIRP | Irp | ||
) |
Referenced by get_last_inode().
NTSTATUS flush_fcb | ( | fcb * | fcb, |
bool | cache, | ||
LIST_ENTRY * | batchlist, | ||
PIRP | Irp | ||
) |
Definition at line 4924 of file flushthread.c.
Referenced by allocate_cache_chunk(), do_write2(), drop_chunk(), remove_free_space_inode(), update_chunk_cache(), and update_chunk_usage().
NTSTATUS flush_partial_stripe | ( | device_extension * | Vcb, |
chunk * | c, | ||
partial_stripe * | ps | ||
) |
Definition at line 5958 of file flushthread.c.
Referenced by __attribute__(), do_tree_writes(), update_chunk_caches(), and update_chunks().
Definition at line 243 of file fsctl.c.
Referenced by _Function_class_(), and do_create_snapshot().
Definition at line 1734 of file btrfs.c.
Referenced by allocate_cache_chunk(), check_for_orphans_root(), close_file(), create_stream(), do_write2(), drop_chunk(), duplicate_fcb(), file_create2(), get_reparse_tag(), load_stored_free_space_cache(), mount_vol(), move_across_subvols(), open_fileref_by_inode(), open_fileref_child(), reap_fileref(), remove_free_space_inode(), rename_stream(), rename_stream_to_file(), and update_chunk_usage().
Definition at line 1856 of file btrfs.c.
Referenced by _Function_class_(), close_file(), create_snapshot(), create_stream(), create_subvol(), do_create_snapshot(), do_write2(), file_create(), fill_in_hard_link_full_id_information(), fill_in_hard_link_information(), get_subvol_path(), mknod(), mount_vol(), move_across_subvols(), open_file(), open_file2(), open_fileref(), open_fileref_by_inode(), oplock_complete(), reap_fileref(), rename_file_to_stream(), rename_stream(), rename_stream_to_file(), send_notification_fcb(), set_link_information(), and set_rename_information().
Referenced by do_splits(), tree_concat(), and try_tree_amalgamate().
Referenced by _Dispatch_type_(), _Function_class_(), add_balance_item(), add_device(), balance_data_chunk(), balance_metadata_chunk(), dismount_volume(), do_create_snapshot(), do_flush(), finish_removing_device(), invalidate_volumes(), lock_volume(), pnp_query_remove_device(), remove_balance_item(), and try_consolidation().
void void free_trees_root | ( | device_extension * | Vcb, |
root * | r | ||
) |
Referenced by drop_root().
void free_vol | ( | volume_device_extension * | vde | ) |
Definition at line 50 of file volume.c.
Referenced by do_shutdown(), and vol_close().
NTSTATUS NTSTATUS NTSTATUS void free_write_data_stripes | ( | write_data_context * | wtc | ) |
Referenced by __attribute__(), do_tree_writes(), and snapshot_tree_copy().
NTSTATUS fsctl_request | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP * | Pirp, | ||
uint32_t | type | ||
) |
Definition at line 5345 of file fsctl.c.
Referenced by _Dispatch_type_().
Definition at line 55 of file galois.c.
Referenced by raid6_recover2(), and scrub_raid6_stripe().
Definition at line 109 of file galois.c.
Referenced by flush_partial_stripe(), raid6_recover2(), and scrub_raid6_stripe().
Definition at line 80 of file galois.c.
Referenced by raid6_recover2(), and scrub_raid6_stripe().
NTSTATUS NTSTATUS NTSTATUS NTSTATUS NTSTATUS chunk * get_chunk_from_address | ( | device_extension * | Vcb, |
uint64_t | address | ||
) |
Referenced by __attribute__(), add_data_reloc(), add_metadata_reloc(), add_metadata_reloc_extent_item(), allocate_cache_chunk(), allocate_tree_extents(), do_tree_writes(), duplicate_extents(), flush_fcb(), get_tree_new_address(), move_across_subvols(), rationalize_extents(), read_data(), reduce_tree_extent(), snapshot_tree_copy(), and update_tree_extents().
NTSTATUS get_device_pnp_name | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_Out_ PUNICODE_STRING | pnp_name, | ||
_Out_ const GUID ** | guid | ||
) |
Definition at line 4233 of file btrfs.c.
Referenced by add_device(), and probe_volume().
Definition at line 1043 of file btrfs_drv.h.
Referenced by construct_extent_item(), decrease_extent_refcount(), find_extent_data_refcount(), find_extent_shared_data_refcount(), find_extent_shared_tree_refcount(), increase_extent_refcount(), is_extent_unique(), and try_clone().
Definition at line 35 of file extent-tree.c.
Referenced by find_extent_data_refcount(), get_extent_data_ref_hash(), and sort_data_reloc_refs().
Definition at line 1065 of file btrfs_drv.h.
Referenced by construct_extent_item(), decrease_extent_refcount(), find_extent_data_refcount(), find_extent_shared_data_refcount(), find_extent_shared_tree_refcount(), increase_extent_refcount(), is_extent_unique(), and try_clone().
uint64_t get_extent_flags | ( | device_extension * | Vcb, |
uint64_t | address, | ||
PIRP | Irp | ||
) |
Definition at line 1835 of file extent-tree.c.
Referenced by update_tree_extents().
uint64_t get_extent_refcount | ( | device_extension * | Vcb, |
uint64_t | address, | ||
uint64_t | size, | ||
PIRP | Irp | ||
) |
Definition at line 1651 of file extent-tree.c.
Referenced by is_extent_unique(), reduce_tree_extent(), and update_tree_extents().
ULONG get_file_attributes | ( | _In_ _Requires_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
_In_ root * | r, | ||
_In_ uint64_t | inode, | ||
_In_ uint8_t | type, | ||
_In_ bool | dotfile, | ||
_In_ bool | ignore_xa, | ||
_In_opt_ PIRP | Irp | ||
) |
Definition at line 2664 of file btrfs.c.
Referenced by create_directory_fcb(), create_subvol(), fsctl_set_xattr(), mount_vol(), move_across_subvols(), open_file3(), query_dir_item(), set_basic_information(), and set_sparse().
uint32_t get_num_of_processors | ( | ) |
Definition at line 4080 of file btrfs.c.
Referenced by create_calc_threads().
|
static |
Definition at line 997 of file btrfs_drv.h.
Referenced by __attribute__(), clean_space_cache_chunk(), flush_partial_stripe(), protect_superblocks(), read_data(), read_data_raid0(), read_data_raid10(), read_data_raid5(), read_data_raid6(), and scrub_extent().
NTSTATUS bool void get_raid56_lock_range | ( | chunk * | c, |
uint64_t | address, | ||
uint64_t | length, | ||
uint64_t * | lockaddr, | ||
uint64_t * | locklen | ||
) |
Referenced by read_data().
NTSTATUS get_reparse_point | ( | PFILE_OBJECT | FileObject, |
void * | buffer, | ||
DWORD | buflen, | ||
ULONG_PTR * | retlen | ||
) |
Definition at line 27 of file reparse.c.
Referenced by fsctl_request().
ULONG get_reparse_tag | ( | device_extension * | Vcb, |
root * | subvol, | ||
uint64_t | inode, | ||
uint8_t | type, | ||
ULONG | atts, | ||
bool | lxss, | ||
PIRP | Irp | ||
) |
Definition at line 107 of file dirctrl.c.
Referenced by query_dir_item().
Definition at line 83 of file dirctrl.c.
Referenced by fill_in_file_attribute_information(), fill_in_file_stat_information(), fill_in_file_stat_lx_information(), and get_reparse_tag().
void get_sector_csum | ( | device_extension * | Vcb, |
void * | buf, | ||
void * | csum | ||
) |
Definition at line 182 of file read.c.
Referenced by add_csum_sparse_extents(), scrub_raid5_stripe(), and scrub_raid6_stripe().
void get_tree_checksum | ( | device_extension * | Vcb, |
tree_header * | th, | ||
void * | csum | ||
) |
Definition at line 108 of file read.c.
Referenced by scrub_extent_dup(), scrub_extent_raid10(), and scrub_raid6_stripe().
NTSTATUS get_tree_new_address | ( | device_extension * | Vcb, |
tree * | t, | ||
PIRP | Irp, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 878 of file flushthread.c.
Referenced by allocate_tree_extents(), and snapshot_tree_copy().
Definition at line 69 of file galois.c.
Referenced by raid6_recover2(), and scrub_raid6_stripe().
Definition at line 442 of file fileinfo.c.
Referenced by has_open_children(), lock_volume(), pnp_query_remove_device(), set_link_information(), and set_rename_information().
NTSTATUS increase_extent_refcount | ( | device_extension * | Vcb, |
uint64_t | address, | ||
uint64_t | size, | ||
uint8_t | type, | ||
void * | data, | ||
KEY * | firstitem, | ||
uint8_t | level, | ||
PIRP | Irp | ||
) |
Definition at line 454 of file extent-tree.c.
Referenced by add_metadata_reloc_extent_item(), increase_extent_refcount(), increase_extent_refcount_data(), snapshot_tree_copy(), and update_tree_extents().
NTSTATUS increase_extent_refcount_data | ( | device_extension * | Vcb, |
uint64_t | address, | ||
uint64_t | size, | ||
uint64_t | root, | ||
uint64_t | inode, | ||
uint64_t | offset, | ||
uint32_t | refcount, | ||
PIRP | Irp | ||
) |
Definition at line 892 of file extent-tree.c.
Referenced by flush_changed_extent(), and snapshot_tree_copy().
Definition at line 1948 of file create.c.
Referenced by create_directory_fcb(), create_subvol(), file_create2(), and mknod().
void init_cache | ( | ) |
Definition at line 85 of file cache.c.
Referenced by _Function_class_().
Definition at line 3416 of file btrfs.c.
Referenced by add_device(), add_volume_device(), load_chunk_root(), and mount_vol().
void init_fast_io_dispatch | ( | FAST_IO_DISPATCH ** | fiod | ) |
Definition at line 535 of file fastio.c.
Referenced by _Function_class_().
void init_file_cache | ( | _In_ PFILE_OBJECT | FileObject, |
_In_ CC_FILE_SIZES * | ccfs | ||
) |
Definition at line 4069 of file btrfs.c.
Referenced by __attribute__(), and do_read().
Definition at line 1470 of file fileinfo.c.
Referenced by add_dir_child(), load_dir_children(), move_across_subvols(), and set_rename_information().
NTSTATUS insert_tree_item | ( | _In_ _Requires_exclusive_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
_In_ root * | r, | ||
_In_ uint64_t | obj_id, | ||
_In_ uint8_t | obj_type, | ||
_In_ uint64_t | offset, | ||
_In_reads_bytes_opt_(size) _When_(return >=0, __drv_aliasesMem) void * | data, | ||
_In_ uint16_t | size, | ||
_Out_opt_ traverse_ptr * | ptp, | ||
_In_opt_ PIRP | Irp | ||
) |
Referenced by add_balance_item(), add_checksum_entry(), add_data_reloc_extent_item(), add_device(), add_metadata_reloc_extent_item(), add_parents(), add_root_item_to_cache(), add_root_ref(), allocate_cache_chunk(), construct_extent_item(), create_chunk(), create_root(), create_subvol(), decrease_extent_refcount(), delete_root_ref(), do_create_snapshot(), drop_chunk(), drop_root(), flush_changed_dev_stats(), flush_changed_extent(), flush_fcb(), flush_subvol(), increase_extent_refcount(), insert_tree_extent(), insert_tree_extent_skinny(), look_for_roots(), update_chunk_cache_tree(), update_chunk_usage(), update_dev_item(), update_extent_level(), update_root_backref(), and write_metadata_items().
bool is_extent_unique | ( | device_extension * | Vcb, |
uint64_t | address, | ||
uint64_t | size, | ||
PIRP | Irp | ||
) |
Definition at line 1697 of file extent-tree.c.
Definition at line 1033 of file btrfs_drv.h.
Referenced by _Dispatch_type_(), _Function_class_(), create_snapshot(), create_subvol(), duplicate_extents(), file_create(), fsctl_set_xattr(), mknod(), open_file2(), set_basic_information(), set_file_security(), set_inode_info(), and set_rename_information().
Definition at line 278 of file btrfs.c.
Referenced by _Dispatch_type_(), do_read_job(), and do_write_job().
bool is_tree_unique | ( | device_extension * | Vcb, |
tree * | t, | ||
PIRP | Irp | ||
) |
Definition at line 3243 of file flushthread.c.
Referenced by do_splits(), is_tree_unique(), and try_tree_amalgamate().
NTSTATUS load_cache_chunk | ( | device_extension * | Vcb, |
chunk * | c, | ||
PIRP | Irp | ||
) |
Definition at line 980 of file free-space.c.
Referenced by __attribute__(), _Function_class_(), allocate_tree_extents(), clear_free_space_cache(), find_metadata_address_in_chunk(), rationalize_extents(), reduce_tree_extent(), and update_chunk_usage().
NTSTATUS load_csum | ( | _Requires_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
void * | csum, | ||
uint64_t | start, | ||
uint64_t | length, | ||
PIRP | Irp | ||
) |
Definition at line 453 of file create.c.
Referenced by fcb_load_csums(), and flush_extents().
NTSTATUS load_dir_children | ( | _Requires_lock_held_(_Curr_->tree_lock) device_extension * | Vcb, |
fcb * | fcb, | ||
bool | ignore_size, | ||
PIRP | Irp | ||
) |
Definition at line 510 of file create.c.
Referenced by mount_vol().
NTSTATUS load_stored_free_space_cache | ( | device_extension * | Vcb, |
chunk * | c, | ||
bool | load_only, | ||
PIRP | Irp | ||
) |
Definition at line 466 of file free-space.c.
Referenced by drop_chunk(), and load_free_space_cache().
Referenced by __attribute__(), and remove_root_extents().
Definition at line 5914 of file btrfs.c.
Referenced by do_tree_writes(), read_data_dup(), read_data_raid0(), read_data_raid10(), read_data_raid5(), read_data_raid6(), scrub_chunk_raid56_stripe_run(), scrub_extent(), scrub_extent_dup(), scrub_extent_raid0(), scrub_extent_raid10(), scrub_raid5_stripe(), scrub_raid6_stripe(), snapshot_tree_copy(), and write_superblocks().
NTSTATUS look_for_balance_item | ( | _Requires_lock_held_(_Curr_->tree_lock) device_extension * | Vcb | ) |
Definition at line 3628 of file balance.c.
Referenced by mount_vol().
NTSTATUS lzo_compress | ( | uint8_t * | inbuf, |
uint32_t | inlen, | ||
uint8_t * | outbuf, | ||
uint32_t | outlen, | ||
unsigned int * | space_left | ||
) |
Definition at line 727 of file compress.c.
Referenced by calc_thread_main().
NTSTATUS lzo_decompress | ( | uint8_t * | inbuf, |
uint32_t | inlen, | ||
uint8_t * | outbuf, | ||
uint32_t | outlen, | ||
uint32_t | inpageoff | ||
) |
Definition at line 278 of file compress.c.
Referenced by calc_thread_main(), and flush_extents().
Definition at line 1012 of file btrfs_drv.h.
Referenced by fill_in_file_internal_information(), fill_in_file_stat_information(), fill_in_file_stat_lx_information(), and query_dir_item().
Definition at line 977 of file btrfs_drv.h.
Referenced by _Dispatch_type_(), control_ioctl(), do_read(), fsctl_request(), and query_directory().
Definition at line 1695 of file btrfs.c.
Referenced by __attribute__(), _Dispatch_type_(), check_for_orphans_root(), create_directory_fcb(), create_stream(), create_subvol(), delete_fileref(), delete_fileref_fcb(), delete_reparse_point(), do_create_snapshot(), duplicate_extents(), file_create2(), fsctl_set_xattr(), insert_extent_chunk(), load_stored_free_space_cache(), mknod(), move_across_subvols(), open_file3(), remove_free_space_inode(), rename_file_to_stream(), rename_stream(), rename_stream_to_file(), set_basic_information(), set_case_sensitive_information(), set_end_of_file_information(), set_file_security(), set_inode_info(), set_link_information(), set_rename_information(), set_reparse_point2(), set_sparse(), set_symlink(), set_valid_data_length_information(), set_zero_data(), stream_set_end_of_file_information(), and write_compressed().
Definition at line 1717 of file btrfs.c.
Referenced by __attribute__(), create_stream(), create_subvol(), delete_fileref(), delete_reparse_point(), do_create_snapshot(), file_create2(), mknod(), move_across_subvols(), rename_file_to_stream(), rename_stream_to_file(), set_link_information(), set_rename_information(), and set_symlink().
NTSTATUS mountmgr_add_drive_letter | ( | PDEVICE_OBJECT | mountmgr, |
PUNICODE_STRING | devpath | ||
) |
Definition at line 832 of file volume.c.
Referenced by finish_removing_device(), and remove_volume_child().
NTSTATUS open_fcb | ( | _Requires_lock_held_(_Curr_->tree_lock) _Requires_exclusive_lock_held_(_Curr_->fcb_lock) device_extension * | Vcb, |
root * | subvol, | ||
uint64_t | inode, | ||
uint8_t | type, | ||
PANSI_STRING | utf8, | ||
bool | always_add_hl, | ||
fcb * | parent, | ||
fcb ** | pfcb, | ||
POOL_TYPE | pooltype, | ||
PIRP | Irp | ||
) |
Definition at line 706 of file create.c.
Referenced by check_for_orphans_root(), do_create_snapshot(), get_reparse_tag(), load_stored_free_space_cache(), open_fileref_by_inode(), open_fileref_child(), and remove_free_space_inode().
NTSTATUS open_fileref | ( | _Requires_lock_held_(_Curr_->tree_lock) _Requires_exclusive_lock_held_(_Curr_->fcb_lock) _In_ device_extension * | Vcb, |
_Out_ file_ref ** | pfr, | ||
_In_ PUNICODE_STRING | fnus, | ||
_In_opt_ file_ref * | related, | ||
_In_ bool | parent, | ||
_Out_opt_ USHORT * | parsed, | ||
_Out_opt_ ULONG * | fn_offset, | ||
_In_ POOL_TYPE | pooltype, | ||
_In_ bool | case_sensitive, | ||
_In_opt_ PIRP | Irp | ||
) |
Definition at line 1690 of file create.c.
Referenced by create_snapshot(), create_stream(), create_subvol(), file_create(), open_file(), set_link_information(), and set_rename_information().
NTSTATUS open_fileref_by_inode | ( | _Requires_exclusive_lock_held_(_Curr_->fcb_lock) device_extension * | Vcb, |
root * | subvol, | ||
uint64_t | inode, | ||
file_ref ** | pfr, | ||
PIRP | Irp | ||
) |
Definition at line 4136 of file create.c.
Referenced by fill_in_hard_link_full_id_information(), fill_in_hard_link_information(), get_subvol_path(), open_file(), open_fileref_by_inode(), and send_notification_fcb().
NTSTATUS open_fileref_child | ( | _Requires_lock_held_(_Curr_->tree_lock) _Requires_exclusive_lock_held_(_Curr_->fcb_lock) _In_ device_extension * | Vcb, |
_In_ file_ref * | sf, | ||
_In_ PUNICODE_STRING | name, | ||
_In_ bool | case_sensitive, | ||
_In_ bool | lastpart, | ||
_In_ bool | streampart, | ||
_In_ POOL_TYPE | pooltype, | ||
_Out_ file_ref ** | psf2, | ||
_In_opt_ PIRP | Irp | ||
) |
Definition at line 1459 of file create.c.
Referenced by add_children_to_move_list(), open_file3(), open_fileref(), open_fileref_by_inode(), rename_file_to_stream(), and rename_stream().
NTSTATUS pause_balance | ( | device_extension * | Vcb, |
KPROCESSOR_MODE | processor_mode | ||
) |
Definition at line 3749 of file balance.c.
Referenced by fsctl_request().
NTSTATUS pause_scrub | ( | device_extension * | Vcb, |
KPROCESSOR_MODE | processor_mode | ||
) |
Definition at line 3401 of file scrub.c.
Referenced by fsctl_request().
NTSTATUS pnp_query_remove_device | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Definition at line 23 of file pnp.c.
Referenced by _Dispatch_type_(), and _Function_class_().
NTSTATUS pnp_surprise_removal | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp | ||
) |
Definition at line 77 of file pnp.c.
Referenced by _Dispatch_type_(), and remove_volume_child().
|
static |
Definition at line 1694 of file btrfs_drv.h.
Definition at line 3777 of file btrfs.c.
Referenced by __attribute__(), and load_cache_chunk().
Referenced by _Requires_lock_held_(), do_read(), FatPagingFileIo(), FatUpdateDiskStats(), GetProcessLuid(), and UserInitiateShutdown().
NTSTATUS query_balance | ( | device_extension * | Vcb, |
void * | data, | ||
ULONG | length | ||
) |
Definition at line 3711 of file balance.c.
Referenced by fsctl_request().
NTSTATUS query_scrub | ( | device_extension * | Vcb, |
KPROCESSOR_MODE | processor_mode, | ||
void * | data, | ||
ULONG | length | ||
) |
Definition at line 3301 of file scrub.c.
Referenced by fsctl_request().
void queue_notification_fcb | ( | _In_ file_ref * | fileref, |
_In_ ULONG | filter_match, | ||
_In_ ULONG | action, | ||
_In_opt_ PUNICODE_STRING | stream | ||
) |
Definition at line 1667 of file btrfs.c.
Referenced by __attribute__(), create_stream(), delete_reparse_point(), duplicate_extents(), file_create(), mknod(), open_file3(), set_basic_information(), set_end_of_file_information(), set_file_security(), set_reparse_point(), set_sparse(), set_valid_data_length_information(), and set_zero_data().
void raid6_recover2 | ( | uint8_t * | sectors, |
uint16_t | num_stripes, | ||
ULONG | sector_size, | ||
uint16_t | missing1, | ||
uint16_t | missing2, | ||
uint8_t * | out | ||
) |
Definition at line 918 of file read.c.
Referenced by partial_stripe_read(), and read_data_raid6().
NTSTATUS read_data | ( | _In_ device_extension * | Vcb, |
_In_ uint64_t | addr, | ||
_In_ uint32_t | length, | ||
_In_reads_bytes_opt_(length *sizeof(uint32_t)/Vcb->superblock.sector_size) void * | csum, | ||
_In_ bool | is_tree, | ||
_Out_writes_bytes_(length) uint8_t * | buf, | ||
_In_opt_ chunk * | c, | ||
_Out_opt_ chunk ** | pc, | ||
_In_opt_ PIRP | Irp, | ||
_In_ uint64_t | generation, | ||
_In_ bool | file_read, | ||
_In_ ULONG | priority | ||
) |
Definition at line 1478 of file read.c.
void read_registry | ( | PUNICODE_STRING | regpath, |
bool | refresh | ||
) |
Definition at line 777 of file registry.c.
Referenced by _Function_class_().
NTSTATUS read_send_buffer | ( | device_extension * | Vcb, |
PFILE_OBJECT | FileObject, | ||
void * | data, | ||
ULONG | datalen, | ||
ULONG_PTR * | retlen, | ||
KPROCESSOR_MODE | processor_mode | ||
) |
NTSTATUS NTSTATUS read_stream | ( | fcb * | fcb, |
uint8_t * | data, | ||
uint64_t | start, | ||
ULONG | length, | ||
ULONG * | pbr | ||
) |
Definition at line 1743 of file btrfs.c.
Referenced by allocate_cache_chunk(), clear_free_space_cache(), create_directory_fcb(), create_stream(), create_subvol(), drop_chunk(), mknod(), mount_vol(), open_fcb(), open_fcb_stream(), open_fileref_child(), reap_fcbs(), rename_file_to_stream(), rename_stream_to_file(), uninit(), and update_chunk_usage().
void reap_fcbs | ( | device_extension * | Vcb | ) |
Definition at line 1841 of file btrfs.c.
void reap_fileref | ( | device_extension * | Vcb, |
file_ref * | fr | ||
) |
Definition at line 1875 of file btrfs.c.
Referenced by create_stream(), file_create2(), open_fileref_child(), reap_filerefs(), and rename_file_to_stream().
void reap_filerefs | ( | device_extension * | Vcb, |
file_ref * | fr | ||
) |
Definition at line 1906 of file btrfs.c.
Referenced by reap_filerefs().
NTSTATUS registry_load_volume_options | ( | device_extension * | Vcb | ) |
Definition at line 36 of file registry.c.
Referenced by mount_vol().
NTSTATUS registry_mark_volume_mounted | ( | BTRFS_UUID * | uuid | ) |
Definition at line 242 of file registry.c.
Referenced by mount_vol().
NTSTATUS registry_mark_volume_unmounted | ( | BTRFS_UUID * | uuid | ) |
Definition at line 385 of file registry.c.
Referenced by uninit().
NTSTATUS remove_device | ( | device_extension * | Vcb, |
void * | data, | ||
ULONG | length, | ||
KPROCESSOR_MODE | processor_mode | ||
) |
Definition at line 3799 of file balance.c.
Referenced by fsctl_request().
Definition at line 744 of file fileinfo.c.
Referenced by delete_fileref(), move_across_subvols(), and set_rename_information().
void void void NTSTATUS void NTSTATUS NTSTATUS remove_drive_letter | ( | PDEVICE_OBJECT | mountmgr, |
PUNICODE_STRING | devpath | ||
) |
Definition at line 407 of file search.c.
Referenced by add_device(), do_shutdown(), drive_letter_callback2(), and mountmgr_process_drive().
void remove_fcb_from_subvol | ( | _In_ _Requires_exclusive_lock_held_(_Curr_->Vcb->fcb_lock) fcb * | fcb | ) |
Definition at line 937 of file fileinfo.c.
Referenced by move_across_subvols().
void remove_volume_child | ( | _Inout_ _Requires_exclusive_lock_held_(_Curr_->child_lock) _Releases_exclusive_lock_(_Curr_->child_lock) _In_ volume_device_extension * | vde, |
_In_ volume_child * | vc, | ||
_In_ bool | skip_dev | ||
) |
Definition at line 531 of file search.c.
Referenced by mount_vol(), verify_device(), volume_arrival(), and volume_removal().
NTSTATUS resume_balance | ( | device_extension * | Vcb, |
KPROCESSOR_MODE | processor_mode | ||
) |
Definition at line 3765 of file balance.c.
Referenced by fsctl_request().
NTSTATUS resume_scrub | ( | device_extension * | Vcb, |
KPROCESSOR_MODE | processor_mode | ||
) |
Definition at line 3422 of file scrub.c.
Referenced by fsctl_request().
void send_notification_fileref | ( | _In_ file_ref * | fileref, |
_In_ ULONG | filter_match, | ||
_In_ ULONG | action, | ||
_In_opt_ PUNICODE_STRING | stream | ||
) |
Definition at line 1517 of file btrfs.c.
Referenced by _Dispatch_type_(), create_snapshot(), create_stream(), create_subvol(), do_create_snapshot(), file_create(), mknod(), move_across_subvols(), send_notification_fcb(), set_link_information(), and set_rename_information().
NTSTATUS send_subvol | ( | device_extension * | Vcb, |
void * | data, | ||
ULONG | datalen, | ||
PFILE_OBJECT | FileObject, | ||
PIRP | Irp | ||
) |
Definition at line 3593 of file send.c.
Definition at line 409 of file reparse.c.
Referenced by fsctl_request().
NTSTATUS set_reparse_point2 | ( | fcb * | fcb, |
REPARSE_DATA_BUFFER * | rdb, | ||
ULONG | buflen, | ||
ccb * | ccb, | ||
file_ref * | fileref, | ||
PIRP | Irp, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 307 of file reparse.c.
Referenced by file_create(), and set_reparse_point().
Definition at line 310 of file security.c.
Referenced by create_directory_fcb(), create_subvol(), fcb_get_new_sd(), and mknod().
void void void NTSTATUS void NTSTATUS skip_to_difference | ( | device_extension * | Vcb, |
traverse_ptr * | tp, | ||
traverse_ptr * | tp2, | ||
bool * | ended1, | ||
bool * | ended2 | ||
) |
Referenced by _Function_class_().
void space_list_add | ( | chunk * | c, |
uint64_t | address, | ||
uint64_t | length, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 2146 of file free-space.c.
Referenced by add_data_reloc(), add_metadata_reloc(), flush_changed_extent(), rationalize_extents(), and reduce_tree_extent().
void space_list_add2 | ( | LIST_ENTRY * | list, |
LIST_ENTRY * | list_size, | ||
uint64_t | address, | ||
uint64_t | length, | ||
chunk * | c, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 1446 of file free-space.c.
Referenced by drop_chunk(), regenerate_space_list(), resize_device(), space_list_add(), and space_list_merge().
void space_list_merge | ( | LIST_ENTRY * | spacelist, |
LIST_ENTRY * | spacelist_size, | ||
LIST_ENTRY * | deleting | ||
) |
Definition at line 1657 of file free-space.c.
Referenced by clean_space_cache(), update_chunk_cache(), and update_chunk_cache_tree().
void space_list_subtract | ( | chunk * | c, |
uint64_t | address, | ||
uint64_t | length, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 2234 of file free-space.c.
Referenced by balance_data_chunk(), insert_extent_chunk(), insert_tree_extent(), insert_tree_extent_skinny(), protect_superblocks(), write_compressed(), and write_metadata_items().
void space_list_subtract2 | ( | LIST_ENTRY * | list, |
LIST_ENTRY * | list_size, | ||
uint64_t | address, | ||
uint64_t | length, | ||
chunk * | c, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 2155 of file free-space.c.
Referenced by __attribute__(), find_disk_holes(), regenerate_space_list(), resize_device(), and space_list_subtract().
NTSTATUS start_balance | ( | device_extension * | Vcb, |
void * | data, | ||
ULONG | length, | ||
KPROCESSOR_MODE | processor_mode | ||
) |
Definition at line 3511 of file balance.c.
Referenced by fsctl_request().
NTSTATUS start_scrub | ( | device_extension * | Vcb, |
KPROCESSOR_MODE | processor_mode | ||
) |
Definition at line 3260 of file scrub.c.
Referenced by fsctl_request().
NTSTATUS stop_balance | ( | device_extension * | Vcb, |
KPROCESSOR_MODE | processor_mode | ||
) |
Definition at line 3784 of file balance.c.
Referenced by fsctl_request().
NTSTATUS stop_scrub | ( | device_extension * | Vcb, |
KPROCESSOR_MODE | processor_mode | ||
) |
NTSTATUS stream_set_end_of_file_information | ( | device_extension * | Vcb, |
uint16_t | end, | ||
fcb * | fcb, | ||
file_ref * | fileref, | ||
bool | advance_only | ||
) |
Definition at line 3170 of file fileinfo.c.
Referenced by __attribute__(), open_file3(), and set_end_of_file_information().
NTSTATUS sync_read_phys | ( | _In_ PDEVICE_OBJECT | DeviceObject, |
_In_ PFILE_OBJECT | FileObject, | ||
_In_ uint64_t | StartingOffset, | ||
_In_ ULONG | Length, | ||
_Out_writes_bytes_(Length) PUCHAR | Buffer, | ||
_In_ bool | override | ||
) |
Definition at line 2732 of file btrfs.c.
Referenced by device_still_valid(), is_device_part_of_mounted_btrfs_raid(), partial_stripe_read(), read_data_dup(), read_data_raid10(), read_data_raid5(), read_data_raid6(), read_superblock(), still_has_superblock(), test_vol(), and verify_device().
Definition at line 2716 of file fsctl.c.
Referenced by add_device(), and finish_removing_device().
NTSTATUS NTSTATUS NTSTATUS truncate_file | ( | fcb * | fcb, |
uint64_t | end, | ||
PIRP | Irp, | ||
LIST_ENTRY * | rollback | ||
) |
Referenced by delete_reparse_point(), open_file3(), set_end_of_file_information(), set_reparse_point2(), and set_symlink().
Definition at line 229 of file security.c.
Referenced by fcb_get_sd(), and get_top_level_sd().
void uninit | ( | _In_ device_extension * | Vcb | ) |
Definition at line 2001 of file btrfs.c.
Referenced by close_file(), dismount_volume(), invalidate_volumes(), pnp_remove_device(), pnp_surprise_removal(), test_validtypes(), and verify_volume().
|
static |
Definition at line 985 of file btrfs_drv.h.
NTSTATUS update_changed_extent_ref | ( | device_extension * | Vcb, |
chunk * | c, | ||
uint64_t | address, | ||
uint64_t | size, | ||
uint64_t | root, | ||
uint64_t | objid, | ||
uint64_t | offset, | ||
int32_t | count, | ||
bool | no_csum, | ||
bool | superseded, | ||
PIRP | Irp | ||
) |
Definition at line 1951 of file extent-tree.c.
Referenced by __attribute__(), duplicate_extents(), flush_fcb(), move_across_subvols(), and rationalize_extents().
NTSTATUS update_chunk_caches | ( | device_extension * | Vcb, |
PIRP | Irp, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 2043 of file free-space.c.
Referenced by update_root_root().
NTSTATUS update_chunk_caches_tree | ( | device_extension * | Vcb, |
PIRP | Irp | ||
) |
Definition at line 2113 of file free-space.c.
Referenced by do_write2().
NTSTATUS update_dev_item | ( | device_extension * | Vcb, |
device * | device, | ||
PIRP | Irp | ||
) |
Definition at line 4093 of file flushthread.c.
Referenced by _Function_class_(), create_chunk(), and resize_device().
void update_extent_flags | ( | device_extension * | Vcb, |
uint64_t | address, | ||
uint64_t | flags, | ||
PIRP | Irp | ||
) |
Definition at line 1876 of file extent-tree.c.
Referenced by update_tree_extents().
NTSTATUS utf16_to_utf8 | ( | char * | dest, |
ULONG | dest_max, | ||
ULONG * | dest_len, | ||
WCHAR * | src, | ||
ULONG | src_len | ||
) |
Definition at line 894 of file btrfs.c.
Referenced by check_file_name_valid(), and set_label().
NTSTATUS utf8_to_utf16 | ( | WCHAR * | dest, |
ULONG | dest_max, | ||
ULONG * | dest_len, | ||
char * | src, | ||
ULONG | src_len | ||
) |
Definition at line 811 of file btrfs.c.
Referenced by _Dispatch_type_().
NTSTATUS vol_close | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp | ||
) |
Definition at line 95 of file volume.c.
Referenced by _Dispatch_type_().
NTSTATUS vol_create | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp | ||
) |
NTSTATUS vol_device_control | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp | ||
) |
Definition at line 755 of file volume.c.
Referenced by _Dispatch_type_().
NTSTATUS vol_read | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp | ||
) |
Definition at line 144 of file volume.c.
Referenced by _Dispatch_type_().
NTSTATUS vol_write | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIRP | Irp | ||
) |
Definition at line 225 of file volume.c.
Referenced by _Dispatch_type_().
bool volume_arrival | ( | PUNICODE_STRING | devpath, |
bool | fve_callback | ||
) |
Definition at line 693 of file search.c.
Referenced by _Function_class_(), probe_volume(), and volume_arrival2().
void volume_removal | ( | PUNICODE_STRING | devpath | ) |
Definition at line 795 of file search.c.
Referenced by _Function_class_(), add_device(), and probe_volume().
Definition at line 1036 of file registry.c.
Referenced by _Function_class_().
|
static |
Definition at line 989 of file btrfs_drv.h.
Referenced by __attribute__(), create_directory_fcb(), create_stream(), create_subvol(), delete_fileref(), delete_reparse_point(), do_create_snapshot(), duplicate_extents(), file_create2(), look_for_roots(), mknod(), move_across_subvols(), open_file3(), query_dir_item(), recvd_subvol(), set_basic_information(), set_end_of_file_information(), set_file_security(), set_link_information(), set_rename_information(), set_reparse_point2(), set_symlink(), set_valid_data_length_information(), set_zero_data(), stream_set_end_of_file_information(), and update_chunk_caches().
NTSTATUS write_compressed | ( | fcb * | fcb, |
uint64_t | start_data, | ||
uint64_t | end_data, | ||
void * | data, | ||
PIRP | Irp, | ||
LIST_ENTRY * | rollback | ||
) |
Definition at line 875 of file compress.c.
Referenced by __attribute__(), and zero_data().
NTSTATUS NTSTATUS write_data | ( | _In_ device_extension * | Vcb, |
_In_ uint64_t | address, | ||
_In_reads_bytes_(length) void * | data, | ||
_In_ uint32_t | length, | ||
_In_ write_data_context * | wtc, | ||
_In_opt_ PIRP | Irp, | ||
_In_opt_ chunk * | c, | ||
_In_ bool | file_write, | ||
_In_ uint64_t | irp_offset, | ||
_In_ ULONG | priority | ||
) |
NTSTATUS NTSTATUS NTSTATUS write_data_complete | ( | device_extension * | Vcb, |
uint64_t | address, | ||
void * | data, | ||
uint32_t | length, | ||
PIRP | Irp, | ||
chunk * | c, | ||
bool | file_write, | ||
uint64_t | irp_offset, | ||
ULONG | priority | ||
) |
Referenced by __attribute__(), balance_data_chunk(), insert_extent_chunk(), and write_compressed().
NTSTATUS write_data_phys | ( | _In_ PDEVICE_OBJECT | device, |
_In_ PFILE_OBJECT | fileobj, | ||
_In_ uint64_t | address, | ||
_In_reads_bytes_(length) void * | data, | ||
_In_ uint32_t | length | ||
) |
Definition at line 70 of file flushthread.c.
Referenced by add_device(), flush_partial_stripe(), read_data_dup(), read_data_raid10(), read_data_raid5(), read_data_raid6(), remove_superblocks(), scrub_chunk_raid56_stripe_run(), scrub_extent_dup(), and scrub_extent_raid10().
Definition at line 1706 of file btrfs_drv.h.
Referenced by __attribute__(), file_create2(), and zero_data().
NTSTATUS write_file | ( | device_extension * | Vcb, |
PIRP | Irp, | ||
bool | wait, | ||
bool | deferred_write | ||
) |
NTSTATUS NTSTATUS write_file2 | ( | device_extension * | Vcb, |
PIRP | Irp, | ||
LARGE_INTEGER | offset, | ||
void * | buf, | ||
ULONG * | length, | ||
bool | paging_io, | ||
bool | no_cache, | ||
bool | wait, | ||
bool | deferred_write, | ||
bool | write_irp, | ||
LIST_ENTRY * | rollback | ||
) |
Referenced by set_reparse_point2(), and set_symlink().
NTSTATUS zlib_compress | ( | uint8_t * | inbuf, |
uint32_t | inlen, | ||
uint8_t * | outbuf, | ||
uint32_t | outlen, | ||
unsigned int | level, | ||
unsigned int * | space_left | ||
) |
Definition at line 336 of file compress.c.
Referenced by calc_thread_main().
Definition at line 377 of file compress.c.
Referenced by calc_thread_main(), and flush_extents().
NTSTATUS zstd_compress | ( | uint8_t * | inbuf, |
uint32_t | inlen, | ||
uint8_t * | outbuf, | ||
uint32_t | outlen, | ||
uint32_t | level, | ||
unsigned int * | space_left | ||
) |
Definition at line 805 of file compress.c.
Referenced by calc_thread_main().
Definition at line 676 of file compress.c.
Referenced by calc_thread_main(), and flush_extents().
Definition at line 1026 of file btrfs_drv.h.
Definition at line 1107 of file btrfs_drv.h.
Referenced by flush_fcb(), fsctl_set_xattr(), get_reparse_tag(), is_mounted_multi_device(), MXAttributes_addAttributeFromIndex(), MXAttributes_setAttributes(), query_dir_item(), set_disposition_information(), startElementDebug(), xmlCtxtGrowAttrs(), and xmlParseStartTag2().
|
extern |
Definition at line 33 of file boot.c.
Referenced by _Function_class_(), add_volume_device(), check_system_root(), get_system_root(), and mount_vol().
|
extern |
Definition at line 20 of file cache.c.
Referenced by init_cache(), init_file_cache(), and mount_vol().
_In_ fcb _In_ chunk _In_ uint64_t _In_ uint64_t _In_ bool _In_opt_ void _In_opt_ PIRP _In_ LIST_ENTRY _In_ uint8_t compression |
Definition at line 1365 of file btrfs_drv.h.
Referenced by _WriteAsType(), add_calc_job_comp(), add_calc_job_decomp(), check_bitmap_header_(), check_png_format(), get_compression(), GreCreateDIBitmapInternal(), insert_extent_chunk(), IntCreateDIBitmap(), NtGdiDdDDICreateDCFromMemory(), set_compression(), and xsltSaveResultToFilename().
Definition at line 1326 of file btrfs_drv.h.
Referenced by oplock_complete().
Definition at line 1365 of file btrfs_drv.h.
_In_ fcb _In_ chunk _In_ uint64_t _In_ uint64_t _In_ bool _In_opt_ void _In_opt_ PIRP _In_ LIST_ENTRY _In_ uint8_t _In_ uint64_t decoded_size |
Definition at line 1365 of file btrfs_drv.h.
Referenced by add_func_desc(), encode_type(), encode_var(), insert_extent_chunk(), test_decodeOctets(), and test_encodeOctets().
|
extern |
Definition at line 127 of file btrfs.c.
Referenced by __attribute__(), flush_partial_stripe(), partial_stripe_read(), raid6_recover2(), read_data_raid5(), read_data_raid6(), scrub_raid5_stripe(), and scrub_raid6_stripe().
_In_ fcb _In_ chunk _In_ uint64_t _In_ uint64_t _In_ bool _In_opt_ void _In_opt_ PIRP _In_ LIST_ENTRY _In_ uint8_t _In_ uint64_t _In_ bool file_write |
Definition at line 1366 of file btrfs_drv.h.
Referenced by __attribute__(), and insert_extent_chunk().
|
extern |
Definition at line 63 of file search.c.
Referenced by _Function_class_(), event_notification(), and register_fve_callback().
Definition at line 1365 of file btrfs_drv.h.
Definition at line 1107 of file btrfs_drv.h.
Definition at line 1290 of file btrfs_drv.h.
Referenced by file_create_parse_ea().
Definition at line 1288 of file btrfs_drv.h.
Referenced by file_create_parse_ea().
Definition at line 1289 of file btrfs_drv.h.
Referenced by file_create_parse_ea().
Definition at line 1287 of file btrfs_drv.h.
Referenced by file_create_parse_ea().
|
extern |
Definition at line 83 of file btrfs.c.
Referenced by allow_degraded_mount(), read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 82 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 72 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 73 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 74 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 77 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 78 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 80 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 85 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 81 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 86 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 84 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 79 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 75 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
|
extern |
Definition at line 76 of file btrfs.c.
Referenced by read_registry(), and registry_load_volume_options().
Definition at line 1030 of file btrfs_drv.h.
|
extern |
Definition at line 87 of file btrfs.c.
Referenced by add_volume_device(), bus_pnp(), free_vol(), read_registry(), and remove_volume_child().
PDEVICE_OBJECT PhysicalDeviceObject |
Definition at line 1157 of file btrfs_drv.h.
Referenced by _Function_class_(), AddDevice(), Bus_AddDevice(), ClassAddDevice(), CODE_SEG(), DiskAddDevice(), DiskCreateFdo(), DriverEntry(), FreeBT_AddDevice(), HDA_AddDevice(), HidClassAddDevice(), i8042Pnp(), InPortAddDevice(), IntVideoPortAddDevice(), IntVideoPortCreateAdapterDeviceObject(), IoGetDeviceInterfaces(), IoGetDmaAdapter(), IopSetDeviceSecurityDescriptors(), IoRegisterDeviceInterface(), IoReportTargetDeviceChange(), IoReportTargetDeviceChangeAsynchronous(), IoRequestDeviceEject(), IoSetDeviceInterfaceState(), KbdHid_AddDevice(), KMix_AddDevice(), KopAddDevice(), KsAddDevice(), KsCreateBusEnumObject(), KsCreateDevice(), KsInitializeDevice(), KsMapModuleName(), KspRegisterDeviceInterfaces(), MouHid_AddDevice(), Mx::MxRegisterDeviceInterface(), NdisIAddDevice(), NdisMGetDeviceProperty(), PartMgrAddDevice(), PcAddAdapterDevice(), PciAddDevice(), PciAssignSlotResources(), PciCacheLegacyDeviceRouting(), PciGetBiosConfig(), PciIdeXAddDevice(), PciInitializeFdoExtensionCommonFields(), PciProcessBus(), PciSaveBiosConfig(), PcmciaAddDevice(), PipAllocateDeviceNode(), PnpRootCreateDevice(), PortAddDevice(), RamdiskAddDevice(), ScsiPortAddDevice(), StorPortGetDeviceObjects(), StreamClassAddDevice(), SwAddDevice(), SysAudio_AddDevice(), USBCCGP_AddDevice(), USBD_GetPdoRegistryParameter(), USBPORT_AddDevice(), USBSTOR_AddDevice(), WdmaudAddDevice(), and WdmAudRegisterDeviceInterface().
Definition at line 1364 of file btrfs_drv.h.
Referenced by __attribute__(), flush_fcb(), insert_extent_chunk(), and set_end_of_file_information().
_In_ fcb _In_ chunk _In_ uint64_t _In_ uint64_t _In_ bool _In_opt_ void _In_opt_ PIRP _In_ LIST_ENTRY* rollback |
Definition at line 1365 of file btrfs_drv.h.
Referenced by __attribute__(), _Dispatch_type_(), add_data_reloc(), add_metadata_reloc(), add_metadata_reloc_parent(), add_rollback_space(), allocate_cache(), allocate_cache_chunk(), allocate_tree_extents(), balance_data_chunk(), balance_metadata_chunk(), check_for_orphans_root(), clear_free_space_cache(), create_stream(), data_reloc_add_tree_edr(), delete_fileref(), delete_fileref_fcb(), delete_reparse_point(), do_create_snapshot(), do_splits(), do_write(), do_write2(), drop_chunk(), drop_root(), drop_roots(), duplicate_extents(), file_create(), file_create2(), flush_changed_extent(), get_tree_new_address(), insert_cache_extent(), insert_extent_chunk(), insert_tree_extent(), insert_tree_extent_skinny(), load_stored_free_space_cache(), move_across_subvols(), open_file(), open_file2(), open_file3(), oplock_complete(), reduce_tree_extent(), remove_free_space_inode(), remove_root_extents(), rename_file_to_stream(), rename_stream(), rename_stream_to_file(), set_end_of_file_information(), set_link_information(), set_rename_information(), set_reparse_point(), set_reparse_point2(), set_symlink(), set_valid_data_length_information(), set_zero_data(), shared_tree_is_unique(), snapshot_tree_copy(), space_list_add(), space_list_add2(), space_list_subtract(), space_list_subtract2(), try_tree_amalgamate(), update_chunk_cache(), update_chunk_caches(), update_chunk_usage(), update_chunks(), update_root_root(), update_tree_extents(), update_tree_extents_recursive(), write_compressed(), write_metadata_items(), xsltTestCompMatch(), and zero_data().
Definition at line 1364 of file btrfs_drv.h.
Referenced by __attribute__(), dwarf2_get_cie(), insert_extent_chunk(), write_compressed(), and zero_data().