ReactOS 0.4.15-dev-5853-gcb454ef
|
Go to the source code of this file.
Macros | |
#define | SIZE_256K 0x40000 |
#define | MAX_LFS_FILESIZE 0x7fffffffffffffff |
#define | ext4_set_bit(n, p) set_bit((int)(n), (unsigned long *)(p)) |
Variables | |
PEXT2_GLOBAL | Ext2Global |
__u16 const | crc16_table [256] |
Definition at line 2538 of file generic.c.
Referenced by ext4_group_desc_csum().
ext3_fsblk_t descriptor_loc | ( | struct super_block * | sb, |
ext3_fsblk_t | logical_sb_block, | ||
unsigned int | nr | ||
) |
Definition at line 2662 of file generic.c.
Referenced by Ext2LoadGroup().
NTSTATUS Ext2AddEntry | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN PEXT2_FCB | Dcb, | ||
IN struct inode * | Inode, | ||
IN PUNICODE_STRING | FileName, | ||
struct dentry ** | Dentry | ||
) |
Definition at line 1805 of file generic.c.
Definition at line 526 of file generic.c.
Referenced by Ext2CreateInode().
void Ext2DecodeInode | ( | struct inode * | dst, |
struct ext3_inode * | src | ||
) |
Definition at line 448 of file generic.c.
Referenced by Ext2LoadInode().
Definition at line 262 of file generic.c.
Referenced by Ext2DestroyVcb(), Ext2FlushVcb(), and Ext2PurgeVolume().
Definition at line 128 of file generic.c.
Referenced by Ext2DropBH(), and Ext2PutGroup().
void Ext2EncodeInode | ( | struct ext3_inode * | dst, |
struct inode * | src | ||
) |
Definition at line 475 of file generic.c.
Referenced by Ext2LoadInodeXattr(), and Ext2SaveInode().
VOID Ext2FlushRange | ( | IN PEXT2_VCB | Vcb, |
LARGE_INTEGER | s, | ||
LARGE_INTEGER | e | ||
) |
Definition at line 299 of file generic.c.
Referenced by Ext2FlushVcb().
Definition at line 319 of file generic.c.
Referenced by Ext2FloppyFlush(), and Ext2FlushVolume().
NTSTATUS Ext2FreeBlock | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | Block, | ||
IN ULONG | Number | ||
) |
Definition at line 1143 of file generic.c.
Referenced by Ext2ExpandLast(), Ext2TruncateBlock(), Ext2TruncateIndirectFast(), and ext4_free_blocks().
NTSTATUS Ext2FreeInode | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | Inode, | ||
IN ULONG | Type | ||
) |
Definition at line 1692 of file generic.c.
Referenced by Ext2CreateInode(), and Ext2DeleteFile().
Definition at line 414 of file generic.c.
Referenced by Ext2ClearInode(), Ext2LoadInode(), Ext2LoadInodeXattr(), Ext2SaveInode(), and Ext2SaveInodeXattr().
Definition at line 655 of file generic.c.
BOOLEAN Ext2LoadBuffer | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN LONGLONG | offset, | ||
IN ULONG | size, | ||
IN PVOID | buf | ||
) |
Definition at line 729 of file generic.c.
Referenced by Ext2LoadInode(), and Ext2SaveInode().
Definition at line 203 of file generic.c.
Referenced by Ext2InitializeVcb(), and ext4_get_group_desc().
Definition at line 166 of file generic.c.
Referenced by Ext2LoadGroup(), and ext4_get_group_desc().
Definition at line 504 of file generic.c.
Referenced by Ext2InitializeVcb(), Ext2LoadInternalJournal(), Ext2LookupFile(), Ext2ProcessEntry(), and Ext2RefreshSuper().
Definition at line 586 of file generic.c.
Referenced by ext4_fs_get_xattr_ref().
Definition at line 25 of file generic.c.
Referenced by Ext2MountVolume(), and Ext2VerifyVolume().
NTSTATUS Ext2NewBlock | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | GroupHint, | ||
IN ULONG | BlockHint, | ||
OUT PULONG | Block, | ||
IN OUT PULONG | Number | ||
) |
Definition at line 934 of file generic.c.
Referenced by Ext2ExpandLast(), and ext4_new_meta_blocks().
NTSTATUS Ext2NewInode | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | GroupHint, | ||
IN ULONG | Type, | ||
OUT PULONG | Inode | ||
) |
Definition at line 1292 of file generic.c.
Referenced by Ext2CreateInode().
Definition at line 146 of file generic.c.
Referenced by Ext2InitializeVcb(), and Ext2LoadGroup().
BOOLEAN Ext2RefreshGroup | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb | ||
) |
Definition at line 405 of file generic.c.
Referenced by Ext2RecoverJournal().
BOOLEAN Ext2RefreshSuper | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb | ||
) |
Definition at line 88 of file generic.c.
Referenced by Ext2RecoverJournal().
NTSTATUS Ext2RemoveEntry | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN PEXT2_FCB | Dcb, | ||
IN PEXT2_MCB | Mcb | ||
) |
Definition at line 1947 of file generic.c.
Referenced by Ext2DeleteFile(), and Ext2SetRenameInfo().
BOOLEAN Ext2SaveBlock | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | Index, | ||
IN PVOID | Buf | ||
) |
Definition at line 694 of file generic.c.
Referenced by Ext2ExpandBlock(), and Ext2ExpandLast().
BOOLEAN Ext2SaveBuffer | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN LONGLONG | Offset, | ||
IN ULONG | Size, | ||
IN PVOID | Buf | ||
) |
Definition at line 864 of file generic.c.
Referenced by Ext2SaveInode(), Ext2SaveInodeXattr(), Ext2SaveSuper(), and Ext2WriteInode().
Definition at line 382 of file generic.c.
Referenced by Ext2FreeBlock(), Ext2FreeInode(), Ext2NewBlock(), Ext2NewInode(), and Ext2UpdateGroupDirStat().
BOOLEAN Ext2SaveInode | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN struct inode * | Inode | ||
) |
Definition at line 548 of file generic.c.
Referenced by Ext2Cleanup(), Ext2CreateInode(), Ext2DeleteFile(), Ext2DoExtentExpand(), Ext2ExpandExtent(), Ext2ExpandIndirect(), Ext2FlushFile(), Ext2GetBlock(), Ext2MapExtent(), Ext2MapIndirect(), Ext2SetFileInformation(), Ext2SetReparsePoint(), Ext2SupersedeOrOverWriteFile(), Ext2TruncateExtent(), Ext2TruncateIndirect(), Ext2TruncateSymlink(), Ext2WriteFile(), Ext2WriteSymlink(), ext3_append(), ext3_mark_inode_dirty(), and ext4_fs_put_xattr_ref().
BOOLEAN Ext2SaveInodeXattr | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN struct inode * | Inode, | ||
IN PEXT2_INODE | InodeXattr | ||
) |
Definition at line 617 of file generic.c.
Referenced by ext4_fs_put_xattr_ref().
BOOLEAN Ext2SaveSuper | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb | ||
) |
Definition at line 63 of file generic.c.
Referenced by Ext2RecoverJournal(), Ext2SetFileInformation(), Ext2SetVolumeInformation(), Ext2ShutDown(), Ext2UpdateVcbStat(), Ext2WriteFile(), and ext3_inode_blocks_set().
NTSTATUS Ext2SetFileType | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN PEXT2_FCB | Dcb, | ||
IN PEXT2_MCB | Mcb, | ||
IN umode_t | mode | ||
) |
Definition at line 1877 of file generic.c.
Referenced by Ext2SetReparsePoint().
NTSTATUS Ext2SetParentEntry | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN PEXT2_FCB | Dcb, | ||
IN ULONG | OldParent, | ||
IN ULONG | NewParent | ||
) |
Definition at line 2024 of file generic.c.
Referenced by Ext2SetRenameInfo().
NTSTATUS Ext2UpdateGroupDirStat | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN ULONG | group | ||
) |
Definition at line 1654 of file generic.c.
Referenced by Ext2SetReparsePoint().
VOID Ext2UpdateVcbStat | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb | ||
) |
Definition at line 923 of file generic.c.
Referenced by Ext2FreeBlock(), Ext2FreeInode(), Ext2NewBlock(), Ext2NewInode(), and Ext2UpdateGroupDirStat().
BOOLEAN Ext2ZeroBuffer | ( | IN PEXT2_IRP_CONTEXT | IrpContext, |
IN PEXT2_VCB | Vcb, | ||
IN LONGLONG | offset, | ||
IN ULONG | size | ||
) |
Definition at line 791 of file generic.c.
Referenced by Ext2ClearInode().
int ext3_bg_has_super | ( | struct super_block * | sb, |
ext3_group_t | group | ||
) |
ext4_bg_has_super - number of blocks used by the superblock in group @sb: superblock for filesystem @group: group number to check
Return the number of blocks used by the superblock (primary or backup) in this group. Currently this will be only 0 or 1.
Definition at line 2612 of file generic.c.
Referenced by descriptor_loc(), ext4_bg_num_gdb_nometa(), and ext4_init_block_bitmap().
int ext3_check_dir_entry | ( | const char * | function, |
struct inode * | dir, | ||
struct ext3_dir_entry_2 * | de, | ||
struct buffer_head * | bh, | ||
unsigned long | offset | ||
) |
Definition at line 2135 of file generic.c.
Referenced by add_dirent_to_buf(), ext3_delete_entry(), ext3_is_dir_empty(), and search_dirblock().
|
static |
Definition at line 2594 of file generic.c.
Referenced by ext3_bg_has_super().
blkcnt_t ext3_inode_blocks | ( | struct ext3_inode * | raw_inode, |
struct inode * | inode | ||
) |
Definition at line 2321 of file generic.c.
Referenced by Ext2DecodeInode().
int ext3_inode_blocks_set | ( | struct ext3_inode * | raw_inode, |
struct inode * | inode | ||
) |
Definition at line 2344 of file generic.c.
Referenced by Ext2EncodeInode().
Definition at line 2263 of file generic.c.
Referenced by Ext2InitializeVcb().
Definition at line 2227 of file generic.c.
Referenced by Ext2InitializeVcb().
struct ext3_dir_entry_2 * ext3_next_entry | ( | struct ext3_dir_entry_2 * | p | ) |
Definition at line 2170 of file generic.c.
Referenced by ext3_delete_entry(), and ext3_is_dir_empty().
unsigned long ext4_bg_num_gdb | ( | struct super_block * | sb, |
ext4_group_t | group | ||
) |
ext4_bg_num_gdb - number of blocks used by the group table in group @sb: superblock for filesystem @group: group number to check
Return the number of blocks used by the group descriptor table (primary or backup) in this group. In the future there may be a different number of descriptor blocks in each group.
Definition at line 2648 of file generic.c.
Referenced by ext4_init_block_bitmap().
|
static |
Definition at line 2621 of file generic.c.
Referenced by ext4_bg_num_gdb().
|
static |
Definition at line 2633 of file generic.c.
Referenced by ext4_bg_num_gdb().
ext4_fsblk_t ext4_block_bitmap | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2385 of file generic.c.
Referenced by Ext2CheckBitmapConsistency(), Ext2CheckSetBlock(), Ext2FreeBlock(), Ext2NewBlock(), Ext2NewInode(), ext4_check_descriptors(), ext4_group_used_meta_blocks(), and ext4_init_block_bitmap().
void ext4_block_bitmap_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
ext4_fsblk_t | blk | ||
) |
|
static |
Definition at line 2758 of file generic.c.
Referenced by ext4_group_used_meta_blocks(), and ext4_init_block_bitmap().
int ext4_check_descriptors | ( | struct super_block * | sb | ) |
Definition at line 3017 of file generic.c.
Referenced by Ext2LoadGroup().
unsigned long ext4_count_dirs | ( | struct super_block * | sb | ) |
ext4_fsblk_t ext4_count_free_blocks | ( | struct super_block * | sb | ) |
ext4_count_free_blocks() – count filesystem free blocks @sb: superblock
Adds up the number of free blocks from each block group.
Definition at line 2959 of file generic.c.
Referenced by Ext2UpdateVcbStat(), and ext4_check_descriptors().
unsigned long ext4_count_free_inodes | ( | struct super_block * | sb | ) |
Definition at line 2980 of file generic.c.
Referenced by Ext2UpdateVcbStat(), and ext4_check_descriptors().
__u32 ext4_free_blks_count | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2409 of file generic.c.
Referenced by Ext2NewBlock(), and ext4_count_free_blocks().
void ext4_free_blks_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
__u32 | count | ||
) |
Definition at line 2465 of file generic.c.
Referenced by Ext2FreeBlock(), Ext2NewBlock(), Ext2NewInode(), ext4_init_block_bitmap(), and ext4_init_inode_bitmap().
__u32 ext4_free_inodes_count | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2417 of file generic.c.
Referenced by Ext2NewInode(), and ext4_count_free_inodes().
void ext4_free_inodes_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
__u32 | count | ||
) |
Definition at line 2473 of file generic.c.
Referenced by Ext2FreeInode(), Ext2NewInode(), ext4_init_block_bitmap(), and ext4_init_inode_bitmap().
struct ext4_group_desc * ext4_get_group_desc | ( | struct super_block * | sb, |
ext4_group_t | block_group, | ||
struct buffer_head ** | bh | ||
) |
ext4_get_group_desc() – load group descriptor from disk @sb: super block @block_group: given block group @bh: pointer to the buffer head to store the block group descriptor
Definition at line 2902 of file generic.c.
Referenced by Ext2CheckBitmapConsistency(), Ext2CheckSetBlock(), Ext2FreeBlock(), Ext2FreeInode(), Ext2GetInodeLba(), Ext2NewBlock(), Ext2NewInode(), Ext2SaveGroup(), Ext2UpdateGroupDirStat(), ext4_check_descriptors(), ext4_count_dirs(), ext4_count_free_blocks(), ext4_count_free_inodes(), and ext4_group_used_meta_blocks().
void ext4_get_group_no_and_offset | ( | struct super_block * | sb, |
ext4_fsblk_t | blocknr, | ||
ext4_group_t * | blockgrpp, | ||
ext4_grpblk_t * | offsetp | ||
) |
Definition at line 2743 of file generic.c.
Referenced by ext4_block_in_group().
__le16 ext4_group_desc_csum | ( | struct ext3_sb_info * | sbi, |
__u32 | block_group, | ||
struct ext4_group_desc * | gdp | ||
) |
Definition at line 2545 of file generic.c.
Referenced by Ext2NewBlock(), Ext2NewInode(), Ext2SaveGroup(), ext4_check_descriptors(), and ext4_group_desc_csum_verify().
int ext4_group_desc_csum_verify | ( | struct ext3_sb_info * | sbi, |
__u32 | block_group, | ||
struct ext4_group_desc * | gdp | ||
) |
Definition at line 2574 of file generic.c.
Referenced by ext4_check_descriptors(), ext4_init_block_bitmap(), and ext4_init_inode_bitmap().
|
static |
Definition at line 2768 of file generic.c.
Referenced by ext4_init_block_bitmap().
unsigned ext4_init_block_bitmap | ( | struct super_block * | sb, |
struct buffer_head * | bh, | ||
ext4_group_t | block_group, | ||
struct ext4_group_desc * | gdp | ||
) |
Definition at line 2803 of file generic.c.
Referenced by Ext2NewBlock(), and Ext2NewInode().
unsigned ext4_init_inode_bitmap | ( | struct super_block * | sb, |
struct buffer_head * | bh, | ||
ext4_group_t | block_group, | ||
struct ext4_group_desc * | gdp | ||
) |
Definition at line 2712 of file generic.c.
Referenced by Ext2NewInode().
ext4_fsblk_t ext4_inode_bitmap | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2393 of file generic.c.
Referenced by Ext2CheckBitmapConsistency(), Ext2FreeInode(), Ext2NewBlock(), Ext2NewInode(), ext4_check_descriptors(), ext4_group_used_meta_blocks(), and ext4_init_block_bitmap().
void ext4_inode_bitmap_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
ext4_fsblk_t | blk | ||
) |
ext4_fsblk_t ext4_inode_table | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2401 of file generic.c.
Referenced by Ext2CheckBitmapConsistency(), Ext2GetInodeLba(), Ext2NewBlock(), ext4_check_descriptors(), ext4_group_used_meta_blocks(), and ext4_init_block_bitmap().
void ext4_inode_table_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
ext4_fsblk_t | blk | ||
) |
__u32 ext4_itable_unused_count | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
void ext4_itable_unused_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
__u32 | count | ||
) |
Definition at line 2489 of file generic.c.
Referenced by Ext2NewInode(), ext4_init_block_bitmap(), and ext4_init_inode_bitmap().
Definition at line 2187 of file generic.c.
__u32 ext4_used_dirs_count | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg | ||
) |
Definition at line 2425 of file generic.c.
Referenced by Ext2FreeInode(), Ext2NewInode(), Ext2UpdateGroupDirStat(), and ext4_count_dirs().
void ext4_used_dirs_set | ( | struct super_block * | sb, |
struct ext4_group_desc * | bg, | ||
__u32 | count | ||
) |
Definition at line 2481 of file generic.c.
Referenced by Ext2FreeInode(), Ext2NewInode(), and Ext2UpdateGroupDirStat().
Definition at line 2697 of file generic.c.
Referenced by ext4_init_block_bitmap(), and ext4_init_inode_bitmap().
|
inlinestatic |
CRC table for the CRC-16. The poly is 0x8005 (x16 + x15 + x2 + 1)
Definition at line 2498 of file generic.c.
Referenced by crc16_byte().
|
extern |