ReactOS 0.4.16-dev-533-gc7d1aa3
|
#include "btrfs_drv.h"
#include "xxhash.h"
#include "crc32c.h"
#include <cpuid.h>
#include <ntddscsi.h>
#include "btrfs.h"
#include <ata.h>
#include <initguid.h>
#include <ntddstor.h>
#include <ntdddisk.h>
#include <ntddvol.h>
#include <ntstrsafe.h>
Go to the source code of this file.
Classes | |
struct | read_context |
struct | notification_fcb |
Macros | |
#define | INCOMPAT_SUPPORTED |
#define | COMPAT_RO_SUPPORTED |
#define | INIT_UNICODE_STRING(var, val) UNICODE_STRING us##var; us##var.Buffer = (WCHAR*)val; us##var.Length = us##var.MaximumLength = sizeof(val) - sizeof(WCHAR); |
#define COMPAT_RO_SUPPORTED |
#define INCOMPAT_SUPPORTED |
_Dispatch_type_ | ( | IRP_MJ_CLEANUP | ) |
Definition at line 2438 of file btrfs.c.
_Dispatch_type_ | ( | IRP_MJ_CLOSE | ) |
Definition at line 503 of file btrfs.c.
_Dispatch_type_ | ( | IRP_MJ_FILE_SYSTEM_CONTROL | ) |
Definition at line 5264 of file btrfs.c.
_Dispatch_type_ | ( | IRP_MJ_FLUSH_BUFFERS | ) |
Definition at line 551 of file btrfs.c.
_Dispatch_type_ | ( | IRP_MJ_LOCK_CONTROL | ) |
Definition at line 5345 of file btrfs.c.
_Dispatch_type_ | ( | IRP_MJ_POWER | ) |
Definition at line 5654 of file btrfs.c.
_Dispatch_type_ | ( | IRP_MJ_QUERY_VOLUME_INFORMATION | ) |
Definition at line 997 of file btrfs.c.
_Dispatch_type_ | ( | IRP_MJ_SET_VOLUME_INFORMATION | ) |
Definition at line 1447 of file btrfs.c.
_Dispatch_type_ | ( | IRP_MJ_SHUTDOWN | ) |
Definition at line 5510 of file btrfs.c.
_Dispatch_type_ | ( | IRP_MJ_SYSTEM_CONTROL | ) |
Definition at line 5748 of file btrfs.c.
_Function_class_ | ( | DRIVER_ADD_DEVICE | ) |
Definition at line 6133 of file btrfs.c.
_Function_class_ | ( | DRIVER_INITIALIZE | ) |
Definition at line 6276 of file btrfs.c.
_Function_class_ | ( | DRIVER_UNLOAD | ) |
Definition at line 330 of file btrfs.c.
_Function_class_ | ( | IO_COMPLETION_ROUTINE | ) |
_Function_class_ | ( | IO_WORKITEM_ROUTINE | ) |
Definition at line 1648 of file btrfs.c.
_Function_class_ | ( | KSTART_ROUTINE | ) |
Definition at line 6110 of file btrfs.c.
_Requires_exclusive_lock_held_ | ( | Vcb-> | tree_lock | ) |
_Success_ | ( | return >= | 0 | ) |
_Success_ | ( | return | ) |
Definition at line 427 of file btrfs.c.
|
static |
Definition at line 3279 of file btrfs.c.
Referenced by find_device_from_uuid(), and load_chunk_root().
|
static |
|
static |
Definition at line 619 of file btrfs.c.
Referenced by _Dispatch_type_().
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_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 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().
|
static |
Definition at line 1925 of file btrfs.c.
|
static |
Definition at line 650 of file btrfs.c.
Referenced by lie_about_fs_type().
|
static |
Definition at line 4094 of file btrfs.c.
Referenced by mount_vol().
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().
DEFINE_GUID | ( | BtrfsBusInterface | , |
0x4d414874 | , | ||
0x6865 | , | ||
0x6761 | , | ||
0x6d | , | ||
0x65 | , | ||
0x83 | , | ||
0x69 | , | ||
0x17 | , | ||
0x9a | , | ||
0x7d | , | ||
0x1d | |||
) |
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().
|
static |
Definition at line 2214 of file btrfs.c.
Referenced by _Dispatch_type_(), and delete_fileref().
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().
Definition at line 5546 of file btrfs.c.
Definition at line 5392 of file btrfs.c.
Referenced by _Dispatch_type_(), and ioctl_unload().
Definition at line 287 of file btrfs.c.
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.