Lines Matching full:inode
132 * Inode Functions::
254 calls @code{ext2fs_allocate_tables} to allocate space for the inode
255 table, and the inode and block bitmaps. In addition, @code{mke2fs} must
256 also initialize the inode tables by clearing them with zeros, create the
273 inode table or the root directory. This must be done by the calling
290 and creating one inode for every 4096 bytes.
353 Allocate space for the inode table and the block and inode bitmaps. The
354 inode tables and block and inode bitmaps aren't actually initialized;
395 These flags indicate whether or not the inode or block bitmaps have been
402 @node File I/O Functions, Inode Functions, Filesystem-level functions, EXT2FS Library Functions
425 opened via inode numbers instead of via pathnames. To resolve a
426 pathname to an inode number, use the function @code{ext2fs_namei} or to
429 @deftypefun errcode_t ext2fs_file_open2 (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, struct ext2_inode *@var{inode}, int @var{flags}, ext2_file_t *@var{ret})
432 Opens a file identified by inode number @var{ino} in filesystem @var{fs}
433 and returns a file handle in @var{ret}. If an inode structure is
434 provided in @var{inode}, then it is used instead of reading the inode
524 @node Inode Functions, Directory functions, File I/O Functions, EXT2FS Library Functions
526 @section Inode Functions
531 * Iterating over blocks in an inode::
532 * Inode Convenience Functions::
537 @node Reading and writing inodes, Iterating over inodes in a filesystem, Inode Functions, Inode Functions
541 @deftypefun errcode_t ext2fs_read_inode (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, struct ext2_inode *@var{inode})
542 Read the inode number @var{ino} into @var{inode}.
545 @deftypefun errcode_t ext2fs_write_inode (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, struct ext2_inode *@var{inode})
546 Write @var{inode} to inode @var{ino}.
552 @node Iterating over inodes in a filesystem, Iterating over blocks in an inode, Reading and writing inodes, Inode Functions
562 controls how many blocks of the inode table are read in at a time. A
572 @deftypefun errcode_t ext2fs_get_next_inode (ext2_inode_scan @var{scan}, ext2_ino_t *@var{ino}, struct ext2_inode *@var{inode})
574 This function returns the next inode from the filesystem; the inode
575 number of the inode is stored in @var{ino}, and the inode is stored in
576 @var{inode}.
578 If the inode is located in a block that has been marked as bad,
584 Start the inode scan at a particular ext2 blockgroup, @var{group}.
602 When a block group is missing an inode table, skip it. If this flag is
612 @node Iterating over blocks in an inode, Inode Convenience Functions, Iterating over inodes in a filesystem, Inode Functions
614 @subsection Iterating over blocks in an inode
618 Iterate over all of the blocks in inode number @var{ino} in filesystem
620 inode. The @var{block_buf} parameter should either be NULL, or if the
634 such as ext2fs_expand_dir() to add a new block to an inode.
641 inode.
656 number of a data block in the inode. If @var{blockcnt} is less than
660 pointer to the inode or indirect block entry listing physical block
700 @node Inode Convenience Functions, , Iterating over blocks in an inode, Inode Functions
708 inode structure.
715 @deftypefun int ext2fs_inode_has_valid_blocks (struct ext2_inode *@var{inode})
717 Returns 1 if the inode's block entries actually valid block entries, and
724 @node Directory functions, Bitmap Functions, Inode Functions, EXT2FS Library Functions
734 * Translating inode numbers to filenames::
800 new inode will be allocated; otherwise, the directory will be created in
801 the inode specified by @var{inum}. If @var{name} specifies the name of
823 with @var{name} and @var{ino} specifying the name and inode number in
827 inode: (No other flags are currently defined.)
872 non-zero, the directory entry's inode number must match @var{ino}.
880 @node Looking up filenames, Translating inode numbers to filenames, Creating and removing directory entries, Directory functions
884 @deftypefun errcode_t ext2fs_lookup (ext2_filsys @var{fs}, ext2_ino_t @var{dir}, const char *@var{name}, int @var{namelen}, char *@var{buf}, ext2_ino_t *@var{inode})
887 @deftypefun errcode_t ext2fs_namei (ext2_filsys @var{fs}, ext2_ino_t @var{root}, ext2_ino_t @var{cwd}, const char *@var{name}, ext2_ino_t *@var{inode})
890 @deftypefun errcode_t ext2fs_namei_follow (ext2_filsys @var{fs}, ext2_ino_t @var{root}, ext2_ino_t @var{cwd}, const char *@var{name}, ext2_ino_t *@var{inode})
893 @deftypefun errcode_t ext2fs_follow_link (ext2_filsys @var{fs}, ext2_ino_t @var{root}, ext2_ino_t @var{cwd}, ext2_ino_t @var{inode}, ext2_ino_t *@var{res}_inode)
898 @node Translating inode numbers to filenames, , Looking up filenames, Directory functions
900 @subsection Translating inode numbers to filenames
995 @deftypefun void ext2fs_mark_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{inode})
997 @deftypefunx void ext2fs_unmark_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{inode})
999 @deftypefunx int ext2fs_test_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{inode})
1001 These functions set, clear, and test bits in an inode bitmap @var{bitmap}.
1010 @deftypefunx void ext2fs_fast_mark_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{inode})
1012 @deftypefunx void ext2fs_fast_unmark_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{inode})
1014 @deftypefunx int ext2fs_fast_test_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{inode})
1018 checks on the inode number or block number; they are assumed to be
1020 the inode or block number has already been validated by other means.
1025 Return the first inode or block which is stored in the bitmap.
1031 Return the last inode or block which is stored in the bitmap.
1084 This function sets all of the bits in the inode bitmap @var{bitmap} to
1108 * Inode count functions::
1151 @node Directory-block list management, Inode count functions, Badblocks list management, EXT2 data abstractions
1159 trying to turn an inode number into a pathname.
1174 that block number @var{blockcnt} of directory inode @var{ino} is stored
1201 @node Inode count functions, , Directory-block list management, EXT2 data abstractions
1203 @subsection Inode count functions
1206 to store how many times a particular inode is referenced by the
1208 that the inode is reference; and once to store the claimed number of times
1209 the inode is referenced according to the inode structure.
1213 inode counts, namely (1) inode counts are very often zero (because
1214 the inode is currrently not in use), and (2) many files have a inode
1222 indicates that icount structure should be able to increment inode counts
1240 Returns in @var{ret} fetches the count for a particular inode @var{ino}.
1245 Increments the ref count for inode @var{ino}.
1250 Decrements the ref count for inode @var{ino}.
1255 Sets the reference count for inode @var{ino} to be @var{count}.
1357 This function returns the block group which contains the inode @var{ino}.