• Home
  • Raw
  • Download

Lines Matching refs:var

170 …open (const char *@var{name}, int @var{flags}, int @var{superblock}, int @var{block_size}, io_mana…
172 Opens a filesystem named @var{name}, using the the io_manager
173 @var{manager} to define the input/output routines needed to read and
175 @var{name} is interpreted as the Unix filename of the filesystem image.
178 The @var{superblock} parameter specifies the block number of the
180 If @var{superblock} is zero, @code{ext2fs_open} will use the primary
184 The @var{block_size} parameter specifies the block size used by the
186 filesystem uperblock. If @var{block_size} is non-zero, it must match
189 @var{block_size} parameter is also used to help fund the superblock when
190 @var{superblock} is non-zero.
192 The @var{flags} argument contains a bitmask of flags which control how
213 @deftypefun errcode_t ext2fs_flush (ext2_filsys @var{fs})
216 @var{fs} filesystem. The following data structures will be written out:
226 @deftypefun void ext2fs_free (ext2_filsys @var{fs})
228 Close the io_manager abstraction for @var{fs} and release all memory
232 @deftypefun errcode_t ext2fs_close (ext2_filsys @var{fs})
256 …tialize (const char *@var{name}, int @var{flags}, struct ext2_super_block *@var{param}, io_manager…
260 handle which is returned in @var{ret_fs} that has been properly setup
261 for a filesystem to be located in @var{name}, using the io_manager
262 @var{manager}. The prototype superblock in @var{param} is used to
273 The following values may be set in the @var{param} prototype superblock;
349 @deftypefun errcode_t ext2fs_allocate_tables (ext2_filsys @var{fs})
366 @deftypefun void ext2fs_mark_changed (ext2_filsys @var{fs})
367 @deftypefunx int ext2fs_test_changed (ext2_filsys @var{fs})
372 @deftypefun void ext2fs_mark_super_dirty (ext2_filsys @var{fs})
373 Mark the filesystem @var{fs} as being dirty; this will cause
380 @deftypefun void ext2fs_mark_valid (ext2_filsys @var{fs})
381 @deftypefunx void ext2fs_unmark_valid (ext2_filsys @var{fs})
382 @deftypefunx int ext2fs_test_valid (ext2_filsys @var{fs})
388 @deftypefun void ext2fs_mark_ib_dirty (ext2_filsys @var{fs})
389 @deftypefunx void ext2fs_mark_bb_dirty (ext2_filsys @var{fs})
390 @deftypefunx int ext2fs_test_ib_dirty (ext2_filsys @var{fs})
391 @deftypefunx int ext2fs_test_bb_dirty (ext2_filsys @var{fs})
426 …fs_file_open2 (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, struct ext2_inode *@var{inode}, int @va…
427 …nx errcode_t ext2fs_file_open (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, int @var{flags}, ext2_f…
429 Opens a file identified by inode number @var{ino} in filesystem @var{fs}
430 and returns a file handle in @var{ret}. If an inode structure is
431 provided in @var{inode}, then it is used instead of reading the inode
434 The @var{flags} argument contains a bitmask of flags which control how
448 @deftypefun ext2_filsys ext2fs_file_get_fs (ext2_file_t @var{file})
449 Return the filesystem handle where the open file @var{file} was opened.
452 @deftypefun errcode_t ext2fs_file_close (ext2_file_t @var{file})
453 Close the file handle @var{file}.
456 @deftypefun errcode_t ext2fs_file_flush (ext2_file_t @var{file})
466 …rrcode_t ext2fs_file_read (ext2_file_t @var{file}, void *@var{buf}, unsigned int @var{wanted}, uns…
467 Read @var{wanted} bytes of data from @var{file} store it in the buffer
468 @var{buf}. The number of bytes that was actually read is returned
469 via @var{got}.
472 …de_t ext2fs_file_write (ext2_file_t @var{file}, const void *@var{buf}, unsigned int @var{nbytes}, …
473 Write @var{wanted} bytes of data from the buffer @var{buf} to the
474 current file position of @var{file}. The number of bytes that was
475 actually written is returned via @var{got}.
484 …un errcode_t ext2fs_file_llseek (ext2_file_t @var{file}, __u64 @var{offset}, int @var{whence}, __u…
485 …rrcode_t ext2fs_file_lseek (ext2_file_t @var{file}, ext2_off_t @var{offset}, int @var{whence}, ext…
486 Change the current file position of @var{file} according to the
487 directive @var{whence} as follows:
491 The file position is set to @var{offset} bytes from the beginning of the
495 The file position set to its current location plus @var{offset} bytes.
498 The file position is set to the size of the file plus @var{offset}
502 The current offset is returned via @var{ret_pos}.
511 @deftypefun errcode_t ext2fs_file_get_lsize (ext2_file_t @var{file}, __u64 *@var{ret_size})
512 Return the size of the file @var{file} in @var{ret_size}.
515 @deftypefun ext2_off_t ext2fs_file_get_size (ext2_file_t @var{file})
516 Return the size of the file @var{file}.
538 …ypefun errcode_t ext2fs_read_inode (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, struct ext2_inode …
539 Read the inode number @var{ino} into @var{inode}.
542 …pefun errcode_t ext2fs_write_inode (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, struct ext2_inode …
543 Write @var{inode} to inode @var{ino}.
556 …n errcode_t ext2fs_open_inode_scan (ext2_filsys @var{fs}, int @var{buffer_blocks}, ext2_inode_scan…
557 Initialize the iteration variable @var{scan}. This variable is used by
558 @code{ext2fs_get_next_inode}. The @var{buffer_blocks} parameter
561 seeking and reading from the disk. If @var{buffer_blocks} is zero, a
565 @deftypefun void ext2fs_close_inode_scan (ext2_inode_scan @var{scan})
566 Release the memory associated with @var{scan} and invalidate it.
569 …rcode_t ext2fs_get_next_inode (ext2_inode_scan @var{scan}, ext2_ino_t *@var{ino}, struct ext2_inod…
572 number of the inode is stored in @var{ino}, and the inode is stored in
573 @var{inode}.
580 @deftypefun errcode_t ext2fs_inode_scan_goto_blockgroup (ext2_inode_scan @var{scan}, int @var{group…
581 Start the inode scan at a particular ext2 blockgroup, @var{group}.
582 This function may be safely called at any time while @var{scan} is valid.
585 …_scan @var{scan}, errcode_t (*done_group)(ext2_filsys @var{fs}, ext2_inode_scan @var{scan}, dgrp_t…
591 @deftypefun int ext2fs_inode_scan_flags (ext2_inode_scan @var{scan}, int @var{set_flags}, int @var{…
593 Set the scan_flags @var{set_flags} and clear the scan_flags @var{clear_flags}.
613var{fs}, ext2_ino_t @var{ino}, int @var{flags}, char *block_buf, int (*func)(ext2_filsys @var{fs},…
615 Iterate over all of the blocks in inode number @var{ino} in filesystem
616 @var{fs}, by calling the function @var{func} for each block in the
617 inode. The @var{block_buf} parameter should either be NULL, or if the
623 The @var{flags} parameter controls how the iterator will function:
646 The callback function @var{func} is called with a number of parameters;
647 the @var{fs} and @var{private} parameters are self-explanatory, and
649 @code{ext2fs_block_iterate}. (The @var{private} data structure is
652 @var{blockcnt} parameter, if non-negative, indicates the logical block
653 number of a data block in the inode. If @var{blockcnt} is less than
654 zero, then @var{func} was called on a metadata block, and @var{blockcnt}
656 BLOCK_COUNT_TIND, or BLOCK_COUNT_TRANSLATOR. The @var{blocknr} is a
659 it returns the @var{BLOCK_CHANGED} flag.
662 The callback function @var{func} returns a result code which is composed of
670 block number pointed to by @var{blocknr}.
681var{fs}, ext2_ino_t @var{ino}, int @var{flags}, char *@var{block}_buf, int (*func)(ext2_filsys @va…
684 @var{blockcnt} type is a 64-bit signed quantity, to support larger
685 files, and the addition of the @var{ref_blk} and @var{ref_offset}
687 of the physical block pointed to by pointer @var{blocknr}. If
688 @var{ref_blk} is zero, then @var{ref_offset} contains the offset into
689 the @code{i_blocks} array. If @var{ref_blk} is non-zero, then the physical
691 @var{ref_offset} contains the offset into the indirect block.
701 @deftypefun errcode_t ext2fs_get_blocks (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, blk_t *@var{bl…
708 @deftypefun errcode_t ext2fs_check_directory (ext2_filsys @var{fs}, ext2_ino_t @var{ino})
709 Returns 0 if @var{ino} is a directory, and @code{ENOTDIR} if it is not.
712 @deftypefun int ext2fs_inode_has_valid_blocks (struct ext2_inode *@var{inode})
740 @deftypefun errcode_t ext2fs_read_dir_block (ext2_filsys @var{fs}, blk_t @var{block}, void *@var{bu…
746 @deftypefun errcode_t ext2fs_write_dir_block (ext2_filsys @var{fs}, blk_t @var{block}, void *@var{b…
752 …e_t ext2fs_new_dir_block (ext2_filsys @var{fs}, ext2_ino_t @var{dir_ino}, ext2_ino_t @var{parent_i…
754 This function creates a new directory block in @var{block}. If
755 @var{dir_ino} is non-zero, then @var{dir_info} and @var{parent_ino} is used
765var{fs}, ext2_ino_t @var{dir}, int @var{flags}, char *@var{block_buf}, int (*@var{func})(struct ex…
768 directory @var{dir}, calling the callback function @var{func} for each
769 directory entry in the directory. The @var{block_buf} parameter should
775 The @var{flags} parameter controls how the iterator will function:
794 …un errcode_t ext2fs_mkdir (ext2_filsys @var{fs}, ext2_ino_t @var{parent}, ext2_ino_t @var{inum}, c…
796 This function creates a new directory. If @var{inum} is zero, then a
798 the inode specified by @var{inum}. If @var{name} specifies the name of
800 linked into the parent directory @var{parent}.
803 @deftypefun errcode_t ext2fs_expand_dir (ext2_filsys @var{fs}, ext2_ino_t @var{dir})
806 the directory @var{dir}. This allows functions such as
817 …efun errcode_t ext2fs_link (ext2_filsys @var{fs}, ext2_ino_t @var{dir}, const char *@var{name}, ex…
819 This function adds a new directory entry to the directory @var{dir},
820 with @var{name} and @var{ino} specifying the name and inode number in
863 …ode_t ext2fs_unlink (ext2_filsys @var{fs}, ext2_ino_t @var{dir}, const char *@var{name}, ext2_ino_…
865 This function removes a directory entry from @var{dir}.
867 matched by @var{name} and @var{ino}. If @var{name} is non-NULL,
868 the directory entry's name must match @var{name}. If @var{ino} is
869 non-zero, the directory entry's inode number must match @var{ino}.
881 …s_lookup (ext2_filsys @var{fs}, ext2_ino_t @var{dir}, const char *@var{name}, int @var{namelen}, c…
884 …t ext2fs_namei (ext2_filsys @var{fs}, ext2_ino_t @var{root}, ext2_ino_t @var{cwd}, const char *@va…
887 …s_namei_follow (ext2_filsys @var{fs}, ext2_ino_t @var{root}, ext2_ino_t @var{cwd}, const char *@va…
890 …fs_follow_link (ext2_filsys @var{fs}, ext2_ino_t @var{root}, ext2_ino_t @var{cwd}, ext2_ino_t @var
899 …errcode_t ext2fs_get_pathname (ext2_filsys @var{fs}, ext2_ino_t @var{dir}, ext2_ino_t @var{ino}, c…
926 @deftypefun errcode_t ext2fs_write_inode_bitmap (ext2_filsys @var{fs})
929 @deftypefun errcode_t ext2fs_write_block_bitmap (ext2_filsys @var{fs})
932 @deftypefun errcode_t ext2fs_read_inode_bitmap (ext2_filsys @var{fs})
935 @deftypefun errcode_t ext2fs_read_block_bitmap (ext2_filsys @var{fs})
938 @deftypefun errcode_t ext2fs_read_bitmaps (ext2_filsys @var{fs})
941 @deftypefun errcode_t ext2fs_write_bitmaps (ext2_filsys @var{fs})
950 …e_generic_bitmap (__u32 @var{start}, __u32 @var{end}, _u32 @var{real_end}, const char *@var{descr}…
953 …e_t ext2fs_allocate_block_bitmap (ext2_filsys @var{fs}, const char *@var{descr}, ext2fs_block_bitm…
956 …e_t ext2fs_allocate_inode_bitmap (ext2_filsys @var{fs}, const char *@var{descr}, ext2fs_inode_bitm…
966 @deftypefun void ext2fs_free_generic_bitmap (ext2fs_inode_bitmap @var{bitmap})
969 @deftypefun void ext2fs_free_block_bitmap (ext2fs_block_bitmap @var{bitmap})
972 @deftypefun void ext2fs_free_inode_bitmap (ext2fs_inode_bitmap @var{bitmap})
982 @deftypefun void ext2fs_mark_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{block})
984 @deftypefunx void ext2fs_unmark_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{block})
986 @deftypefunx int ext2fs_test_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{block})
988 These functions set, clear, and test bits in a block bitmap @var{bitmap}.
992 @deftypefun void ext2fs_mark_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{inode})
994 @deftypefunx void ext2fs_unmark_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{ino…
996 @deftypefunx int ext2fs_test_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{inode})
998 These functions set, clear, and test bits in an inode bitmap @var{bitmap}.
1001 @deftypefun void ext2fs_fast_mark_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{block})
1003 @deftypefunx void ext2fs_fast_unmark_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{blo…
1005 @deftypefunx int ext2fs_fast_test_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{block})
1007 @deftypefunx void ext2fs_fast_mark_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{…
1009 …unx void ext2fs_fast_unmark_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{inode})
1011 @deftypefunx int ext2fs_fast_test_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{i…
1020 @deftypefun blk_t ext2fs_get_block_bitmap_start (ext2fs_block_bitmap @var{bitmap})
1021 @deftypefunx ext2_ino_t ext2fs_get_inode_bitmap_start (ext2fs_inode_bitmap @var{bitmap})
1025 @deftypefun blk_t ext2fs_get_block_bitmap_end (ext2fs_block_bitmap @var{bitmap})
1026 @deftypefunx ext2_ino_t ext2fs_get_inode_bitmap_end (ext2fs_inode_bitmap @var{bitmap})
1038 …rrcode_t ext2fs_compare_block_bitmap (ext2fs_block_bitmap @var{bm1}, ext2fs_block_bitmap @var{bm2})
1041 …rrcode_t ext2fs_compare_inode_bitmap (ext2fs_inode_bitmap @var{bm1}, ext2fs_inode_bitmap @var{bm2})
1051 …xt2fs_fudge_inode_bitmap_end (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{end}, ext2_ino_t *…
1054 …e_t ext2fs_fudge_block_bitmap_end (ext2fs_block_bitmap @var{bitmap}, blk_t @var{end}, blk_t *@var{…
1063 …ode_t ext2fs_resize_generic_bitmap (__u32 @var{new_end}, __u32 @var{new_real_end}, ext2fs_generic_…
1066 …rrcode_t ext2fs_resize_inode_bitmap (__u32 @var{new_end}, __u32 @var{new_real_end}, ext2fs_inode_b…
1069 …rrcode_t ext2fs_resize_block_bitmap (__u32 @var{new_end}, __u32 @var{new_real_end}, ext2fs_block_b…
1079 @deftypefun void ext2fs_clear_inode_bitmap (ext2fs_inode_bitmap @var{bitmap})
1081 This function sets all of the bits in the inode bitmap @var{bitmap} to
1086 @deftypefun void ext2fs_clear_block_bitmap (ext2fs_block_bitmap @var{bitmap})
1088 This function sets all of the bits in the block bitmap @var{bitmap} to
1115 @deftypefun errcode_t ext2fs_badblocks_list_create (ext2_badblocks_list *@var{ret}, int @var{size})
1118 @deftypefun void ext2fs_badblocks_list_free (ext2_badblocks_list @var{bb})
1121 @deftypefun errcode_t ext2fs_badblocks_list_add (ext2_badblocks_list @var{bb}, blk_t @var{blk})
1124 @deftypefun int ext2fs_badblocks_list_test (ext2_badblocks_list @var{bb}, blk_t @var{blk})
1127 …ext2fs_badblocks_list_iterate_begin (ext2_badblocks_list @var{bb}, ext2_badblocks_iterate *@var{re…
1130 @deftypefun int ext2fs_badblocks_list_iterate (ext2_badblocks_iterate iter, blk_t *@var{blk})
1133 @deftypefun void ext2fs_badblocks_list_iterate_end (ext2_badblocks_iterate @var{iter})
1136 @deftypefun errcode_t ext2fs_update_bb_inode (ext2_filsys @var{fs}, ext2_badblocks_list @var{bb_lis…
1139 @deftypefun errcode_t ext2fs_read_bb_inode (ext2_filsys @var{fs}, ext2_badblocks_list *@var{bb_list…
1142 …ad_bb_FILE (ext2_filsys @var{fs}, FILE *f, ext2_badblocks_list *@var{bb_list}, void (*invalid)(ext…
1158 @deftypefun errcode_t ext2fs_init_dblist (ext2_filsys @var{fs}, ext2_dblist *@var{ret_dblist})
1160 Creates a dblist data structure and return it in @var{ret_dblist}.
1163 @deftypefun void ext2fs_free_dblist (ext2_dblist @var{dblist})
1168 … errcode_t ext2fs_add_dir_block (ext2_dblist @var{dblist}, ext2_ino_t @var{ino}, blk_t @var{blk}, …
1171 that block number @var{blockcnt} of directory inode @var{ino} is stored
1172 in block @var{blk}.
1175 … errcode_t ext2fs_set_dir_block (ext2_dblist @var{dblist}, ext2_ino_t @var{ino}, blk_t @var{blk}, …
1178 of block number @var{blockcnt} of directory indoe @var{ino} to be block
1179 @var{blk}.
1182 …ate (ext2_dblist @var{dblist}, int (*func)(ext2_filsys @var{fs}, struct ext2_db_entry *@var{db_inf…
1184 This iterator calls @var{func} for every entry in the dblist data structure.
1187var{dblist}, int flags, char *@var{block_buf}, int (*func)(ext2_ino_t @var{dir}, int @var{entry},…
1190 dblist entry, and calls @var{func} for each directory entry in each
1191 directory block. If @var{dblist} contains all the directory blocks in a
1214 …2fs_create_icount2 (ext2_filsys @var{fs}, int @var{flags}, int @var{size}, ext2_icount_t @var{hint…
1216 Creates an icount stucture for a filesystem @var{fs}, with initial space
1217 for @var{size} inodes whose count is greater than 1. The @var{flags}
1220 quickly. The icount structure is returned in @var{ret}. The returned
1223 The @var{hint} parameter allows the caller to optionally pass in another
1230 @deftypefun void ext2fs_free_icount (ext2_icount_t @var{icount})
1235 …ypefun errcode_t ext2fs_icount_fetch (ext2_icount_t @var{icount}, ext2_ino_t @var{ino}, __u16 *@va…
1237 Returns in @var{ret} fetches the count for a particular inode @var{ino}.
1240 …un errcode_t ext2fs_icount_increment (ext2_icount_t @var{icount}, ext2_ino_t @var{ino}, __u16 *@va…
1242 Increments the ref count for inode @var{ino}.
1245 …un errcode_t ext2fs_icount_decrement (ext2_icount_t @var{icount}, ext2_ino_t @var{ino}, __u16 *@va…
1247 Decrements the ref count for inode @var{ino}.
1250 …typefun errcode_t ext2fs_icount_store (ext2_icount_t @var{icount}, ext2_ino_t @var{ino}, __u16 @va…
1252 Sets the reference count for inode @var{ino} to be @var{count}.
1255 @deftypefun ext2_ino_t ext2fs_get_icount_size (ext2_icount_t @var{icount})
1257 Returns the current number of inodes in @var{icount} which has a count
1261 @deftypefun errcode_t ext2fs_icount_validate (ext2_icount_t @var{icount}, FILE *@var{f})
1263 Validates the internal rep invariant of @var{icount}; if there are any
1264 problems, print out debugging information to @var{f}. This function is
1275 @deftypefun void ext2fs_swap_super (struct ext2_super_block * @var{super})
1278 @deftypefun void ext2fs_swap_group_desc (struct ext2_group_desc *@var{gdp})
1281 … void ext2fs_swap_inode (ext2_filsys @var{fs}, struct ext2_inode *@var{to}, struct ext2_inode *@va…
1295 …t2fs_new_inode (ext2_filsys @var{fs}, ext2_ino_t @var{dir}, int @var{mode}, ext2fs_inode_bitmap @v…
1298 … errcode_t ext2fs_new_block (ext2_filsys @var{fs}, blk_t @var{goal}, ext2fs_block_bitmap @var{map}…
1301 …ee_blocks (ext2_filsys @var{fs}, blk_t @var{start}, blk_t @var{finish}, int @var{num}, ext2fs_bloc…
1305 @deftypefun errcode_t ext2fs_check_desc (ext2_filsys @var{fs})
1308 @deftypefun errcode_t ext2fs_get_num_dirs (ext2_filsys @var{fs}, ext2_ino_t *@var{ret_num_dirs})
1313 …typefun errcode_t ext2fs_get_device_size (const char *@var{file}, int @var{blocksize}, blk_t *@var
1318 @deftypefun errcode_t ext2fs_check_if_mounted (const char *@var{file}, int *@var{mount_flags})
1323 @deftypefun int ext2fs_get_library_version (const char **@var{ver_string}, const char **@var{date_s…
1331 If @var{ver_string} and/or @var{date_string} are non-NULL, they will be
1336 @deftypefun int ext2fs_parse_version_string (const char *@var{ver_string})
1346 @deftypefun int ext2fs_group_of_blk (ext2_filsys @var{fs}, blk_t @var{blk})
1348 This function returns the block group which contains the block @var{blk}.
1352 @deftypefun int ext2fs_group_of_ino (ext2_filsys @var{fs}, ext2_ino_t @var{ino})
1354 This function returns the block group which contains the inode @var{ino}.