35 EXT4_EXTENT_HEADER *eh;
54 _len =
Mcb->Fcb->Header.AllocationSize.QuadPart;
73 if (max_blocks > *
Number) {
90 DEBUG(
DL_ERR, (
"Block insufficient resources, err: %d\n", rc));
114 EXT4_EXTENT_HEADER *eh;
133 DEBUG(
DL_ERR, (
"Expand Block insufficient resources, Number: %u,"
134 " err: %d\n", *
Number, rc));
216 End =
Vcb->max_data_blocks;
220 Extra = End - Wanted;
PVOID Alloc(IN DWORD dwFlags, IN SIZE_T dwBytes)
#define NT_SUCCESS(StatCode)
#define ClearFlag(_F, _SF)
NTSTATUS Ext2WinntError(int rc)
BOOLEAN Ext2SaveInode(IN PEXT2_IRP_CONTEXT IrpContext, IN PEXT2_VCB Vcb, IN struct inode *Inode)
BOOLEAN Ext2RemoveBlockExtent(IN PEXT2_VCB Vcb, IN PEXT2_MCB Mcb, IN ULONG Start, IN ULONG Number)
#define IsMcbDirectory(Mcb)
BOOLEAN Ext2AddBlockExtent(IN PEXT2_VCB Vcb, IN PEXT2_MCB Mcb, IN ULONG Start, IN ULONG Block, IN ULONG Number)
VOID Ext2ClearAllExtents(PLARGE_MCB Zone)
#define IsZoneInited(Mcb)
#define EXT4_GET_BLOCKS_IO_CREATE_EXT
#define EXT4_GET_BLOCKS_IO_CONVERT_EXT
int ext4_ext_tree_init(void *icb, handle_t *handle, struct inode *inode)
#define get_ext4_header(i)
#define EXT_UNWRITTEN_MAX_LEN
int ext4_ext_truncate(void *icb, struct inode *inode, unsigned long start)
int ext4_ext_get_blocks(void *icb, handle_t *handle, struct inode *inode, ext4_fsblk_t iblock, unsigned long max_blocks, struct buffer_head *bh_result, int create, int flags)
NTSTATUS Ext2TruncateExtent(PEXT2_IRP_CONTEXT IrpContext, PEXT2_VCB Vcb, PEXT2_MCB Mcb, PLARGE_INTEGER Size)
NTSTATUS Ext2ExpandExtent(PEXT2_IRP_CONTEXT IrpContext, PEXT2_VCB Vcb, PEXT2_MCB Mcb, ULONG Start, ULONG End, PLARGE_INTEGER Size)
NTSTATUS Ext2MapExtent(IN PEXT2_IRP_CONTEXT IrpContext, IN PEXT2_VCB Vcb, IN PEXT2_MCB Mcb, IN ULONG Index, IN BOOLEAN Alloc, OUT PULONG Block, OUT PULONG Number)
NTSTATUS Ext2DoExtentExpand(IN PEXT2_IRP_CONTEXT IrpContext, IN PEXT2_VCB Vcb, IN PEXT2_MCB Mcb, IN ULONG Index, IN OUT PULONG Block, IN OUT PULONG Number)
IN PVCB IN ULONG IN OUT PULONG IN BOOLEAN OUT PLARGE_MCB Mcb
_In_opt_ PENTER_STATE_SYSTEM_HANDLER _In_opt_ PVOID _In_ LONG _In_opt_ LONG volatile * Number
#define STATUS_INSUFFICIENT_RESOURCES
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size