Home
last modified time | relevance | path

Searched refs:i_size (Results 1 – 19 of 19) sorted by relevance

/reactos/sdk/lib/fslib/ext2lib/
H A DInode.c408 if (offset >= ext2_inode->i_size) in ext2_build_bdl()
602 if (size + offset > inode.i_size) in ext2_write_inode()
604 inode.i_size = size + offset; in ext2_write_inode()
637 buf = (char *)RtlAllocateHeap(RtlGetProcessHeap(), 0, parent_inode.i_size); in ext2_add_entry()
639 if (!ext2_read_inode(Ext2Sys, parent, 0, buf, parent_inode.i_size, &dwRet)) in ext2_add_entry()
646 while ((char *)dir < buf + parent_inode.i_size) in ext2_add_entry()
675 return ext2_write_inode(Ext2Sys, parent, 0, buf, parent_inode.i_size, &dwRet); in ext2_add_entry()
H A DMke2fs.c304 inode.i_size = fs->blocksize; in ext2_mkdir()
431 lpf_size = inode.i_size; in create_lost_and_found()
460 inode.i_size = lpf_size; in create_lost_and_found()
462 ASSERT( (inode.i_size/Ext2Sys->blocksize) == in create_lost_and_found()
466 Ext2TotalBlocks(Ext2Sys, inode.i_size/Ext2Sys->blocksize)); in create_lost_and_found()
H A DBadblock.c38 inode.i_size = 0; in create_bad_block_inode()
H A Dext2_fs.h243 __u32 i_size; /* Size in bytes */ member
/reactos/drivers/filesystems/ext2/src/ext4/
H A Dextents.c52 LONGLONG _len = _len = Mcb->Inode.i_size; in Ext2MapExtent()
237 if (Mcb->Inode.i_size > (loff_t)(Size->QuadPart)) in Ext2TruncateExtent()
238 Mcb->Inode.i_size = (loff_t)(Size->QuadPart); in Ext2TruncateExtent()
/reactos/drivers/filesystems/ext2/src/
H A Dfileinfo.c777 Mcb->Inode.i_size = AllocationSize.QuadPart; in Ext2SetFileInformation()
779 Fcb->Header.FileSize.QuadPart = Mcb->Inode.i_size; in Ext2SetFileInformation()
807 Mcb->Inode.i_size, Status)); in Ext2SetFileInformation()
898 ASSERT((loff_t)NewSize.QuadPart >= Mcb->Inode.i_size); in Ext2SetFileInformation()
900 Fcb->Header.FileSize.QuadPart = Mcb->Inode.i_size; in Ext2SetFileInformation()
938 Mcb->Inode.i_size, Status)); in Ext2SetFileInformation()
1163 Start = (ULONG)((Mcb->Inode.i_size + BLOCK_SIZE - 1) >> BLOCK_BITS); in Ext2ExpandFile()
2027 if (Mcb->Inode.i_size > EXT2_LINKLEN_IN_INODE) { in Ext2DeleteFile()
2045 Fcb->Mcb->Inode.i_size = Size.QuadPart; in Ext2DeleteFile()
2052 if (Mcb->Inode.i_size > (loff_t)Size.QuadPart) { in Ext2DeleteFile()
[all …]
H A Ddirctl.c153 Inode.i_size = 0; in Ext2ProcessEntry()
168 FileSize = Target->Inode.i_size; in Ext2ProcessEntry()
178 FileSize = Mcb->Inode.i_size; in Ext2ProcessEntry()
191 FileSize = Inode.i_size; in Ext2ProcessEntry()
782 ((Mcb->Inode.i_size >> BLOCK_BITS) == 1)) ) { in Ext2QueryDirectory()
796 if (Mcb->Inode.i_size <= Ccb->filp.f_pos) { in Ext2QueryDirectory()
819 while ((ByteOffset < Mcb->Inode.i_size) && in Ext2QueryDirectory()
H A Dcleanup.c260 (ULONGLONG)Fcb->Mcb->Inode.i_size, in Ext2Cleanup()
266 Fcb->Header.FileSize.QuadPart = Mcb->Inode.i_size; in Ext2Cleanup()
H A Dcreate.c100 OemName.Length = (USHORT)Mcb->Inode.i_size; in Ext2FollowLink()
105 OemName.Length = (USHORT)Mcb->Inode.i_size; in Ext2FollowLink()
122 (ULONG)(Mcb->Inode.i_size), in Ext2FollowLink()
2168 if ((loff_t)Size.QuadPart > Fcb->Inode->i_size) { in Ext2SupersedeOrOverWriteFile()
2183 Fcb->Inode->i_size = 0; in Ext2SupersedeOrOverWriteFile()
H A Dfsctl.c1444 OemNameLength = (ULONG)Mcb->Inode.i_size; in Ext2GetReparsePoint()
1560 Mcb->Inode.i_size = Size; in Ext2WriteSymlink()
1760 ULONG len = (ULONG)Mcb->Inode.i_size; in Ext2TruncateSymlink()
1766 Mcb->Inode.i_size = Size; in Ext2TruncateSymlink()
H A Dwrite.c1076 Fcb->Header.FileSize.QuadPart = Fcb->Inode->i_size = ByteOffset.QuadPart + Length; in Ext2WriteFile()
1315 Fcb->Inode->i_size, Status)); in Ext2WriteFile()
H A Dmemory.c182 Fcb->Header.FileSize.QuadPart = Mcb->Inode.i_size; in Ext2AllocateFcb()
183 Fcb->Header.ValidDataLength.QuadPart = Mcb->Inode.i_size; in Ext2AllocateFcb()
1138 End = (ULONG)((Mcb->Inode.i_size + BLOCK_SIZE - 1) >> BLOCK_BITS); in Ext2InitializeZone()
1242 if (End > (ULONG)((Mcb->Inode.i_size + BLOCK_SIZE - 1) >> BLOCK_BITS) ) { in Ext2BuildExtents()
1243 End = (ULONG)((Mcb->Inode.i_size + BLOCK_SIZE - 1) >> BLOCK_BITS); in Ext2BuildExtents()
/reactos/drivers/filesystems/ext2/inc/linux/
H A Dfs.h80 loff_t i_size; /* size */ member
H A Dext2_fs.h227 __u32 i_size; /* Size in bytes */ member
H A Dext3_fs.h348 __le32 i_size; /* Size in bytes */ member
/reactos/drivers/filesystems/ext2/src/ext3/
H A Dhtree.c290 *block = (ext3_lblk_t)(inode->i_size >> inode->i_sb->s_blocksize_bits); in ext3_append()
297 mcb->Inode.i_size = dcb->Header.AllocationSize.QuadPart; in ext3_append()
1975 blocks = (ext3_lblk_t)(dir->i_size >> sb->s_blocksize_bits); in ext3_add_entry()
2047 if (inode->i_size < EXT3_DIR_REC_LEN(1) + EXT3_DIR_REC_LEN(2) || in ext3_is_dir_empty()
2074 while (offset < inode->i_size) { in ext3_is_dir_empty()
2203 nblocks = (ext3_lblk_t)(dir->i_size >> EXT3_BLOCK_SIZE_BITS(sb)); in ext3_find_entry()
2261 nblocks = (ext3_lblk_t)(dir->i_size >> EXT3_BLOCK_SIZE_BITS(sb)); in ext3_find_entry()
H A Dindirect.c1088 Mcb->Inode.i_size = 0;
1182 if (Mcb->Inode.i_size > (loff_t)(Size->QuadPart))
1183 Mcb->Inode.i_size = (loff_t)(Size->QuadPart);
H A Dgeneric.c460 dst->i_size = src->i_size; in Ext2DecodeInode()
462 dst->i_size |= (loff_t)src->i_size_high << 32; in Ext2DecodeInode()
487 dst->i_size = (__u32)src->i_size; in Ext2EncodeInode()
489 dst->i_size_high = (__u32)(src->i_size >> 32); in Ext2EncodeInode()
563 Inode->i_ino, Inode->i_mode, Inode->i_size)); in Ext2SaveInode()
636 Inode->i_ino, Inode->i_mode, Inode->i_size)); in Ext2SaveInodeXattr()
/reactos/drivers/filesystems/ext2/src/jbd/
H A Dreplay.c608 (s64) inode->i_size, in journal_init_inode()
611 journal->j_maxlen = (unsigned int)(inode->i_size >> inode->i_sb->s_blocksize_bits); in journal_init_inode()