Lines Matching refs:var
173 …open (const char *@var{name}, int @var{flags}, int @var{superblock}, int @var{block_size}, io_mana…
175 Opens a filesystem named @var{name}, using the the io_manager
176 @var{manager} to define the input/output routines needed to read and
178 @var{name} is interpreted as the Unix filename of the filesystem image.
181 The @var{superblock} parameter specifies the block number of the
183 If @var{superblock} is zero, @code{ext2fs_open} will use the primary
187 The @var{block_size} parameter specifies the block size used by the
189 filesystem uperblock. If @var{block_size} is non-zero, it must match
192 @var{block_size} parameter is also used to help fund the superblock when
193 @var{superblock} is non-zero.
195 The @var{flags} argument contains a bitmask of flags which control how
216 @deftypefun errcode_t ext2fs_flush (ext2_filsys @var{fs})
219 @var{fs} filesystem. The following data structures will be written out:
229 @deftypefun void ext2fs_free (ext2_filsys @var{fs})
231 Close the io_manager abstraction for @var{fs} and release all memory
235 @deftypefun errcode_t ext2fs_close (ext2_filsys @var{fs})
259 …tialize (const char *@var{name}, int @var{flags}, struct ext2_super_block *@var{param}, io_manager…
263 handle which is returned in @var{ret_fs} that has been properly setup
264 for a filesystem to be located in @var{name}, using the io_manager
265 @var{manager}. The prototype superblock in @var{param} is used to
276 The following values may be set in the @var{param} prototype superblock;
352 @deftypefun errcode_t ext2fs_allocate_tables (ext2_filsys @var{fs})
369 @deftypefun void ext2fs_mark_changed (ext2_filsys @var{fs})
370 @deftypefunx int ext2fs_test_changed (ext2_filsys @var{fs})
375 @deftypefun void ext2fs_mark_super_dirty (ext2_filsys @var{fs})
376 Mark the filesystem @var{fs} as being dirty; this will cause
383 @deftypefun void ext2fs_mark_valid (ext2_filsys @var{fs})
384 @deftypefunx void ext2fs_unmark_valid (ext2_filsys @var{fs})
385 @deftypefunx int ext2fs_test_valid (ext2_filsys @var{fs})
391 @deftypefun void ext2fs_mark_ib_dirty (ext2_filsys @var{fs})
392 @deftypefunx void ext2fs_mark_bb_dirty (ext2_filsys @var{fs})
393 @deftypefunx int ext2fs_test_ib_dirty (ext2_filsys @var{fs})
394 @deftypefunx int ext2fs_test_bb_dirty (ext2_filsys @var{fs})
429 …fs_file_open2 (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, struct ext2_inode *@var{inode}, int @va…
430 …nx errcode_t ext2fs_file_open (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, int @var{flags}, ext2_f…
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
437 The @var{flags} argument contains a bitmask of flags which control how
451 @deftypefun ext2_filsys ext2fs_file_get_fs (ext2_file_t @var{file})
452 Return the filesystem handle where the open file @var{file} was opened.
455 @deftypefun errcode_t ext2fs_file_close (ext2_file_t @var{file})
456 Close the file handle @var{file}.
459 @deftypefun errcode_t ext2fs_file_flush (ext2_file_t @var{file})
469 …rrcode_t ext2fs_file_read (ext2_file_t @var{file}, void *@var{buf}, unsigned int @var{wanted}, uns…
470 Read @var{wanted} bytes of data from @var{file} store it in the buffer
471 @var{buf}. The number of bytes that was actually read is returned
472 via @var{got}.
475 …de_t ext2fs_file_write (ext2_file_t @var{file}, const void *@var{buf}, unsigned int @var{nbytes}, …
476 Write @var{wanted} bytes of data from the buffer @var{buf} to the
477 current file position of @var{file}. The number of bytes that was
478 actually written is returned via @var{got}.
487 …un errcode_t ext2fs_file_llseek (ext2_file_t @var{file}, __u64 @var{offset}, int @var{whence}, __u…
488 …rrcode_t ext2fs_file_lseek (ext2_file_t @var{file}, ext2_off_t @var{offset}, int @var{whence}, ext…
489 Change the current file position of @var{file} according to the
490 directive @var{whence} as follows:
494 The file position is set to @var{offset} bytes from the beginning of the
498 The file position set to its current location plus @var{offset} bytes.
501 The file position is set to the size of the file plus @var{offset}
505 The current offset is returned via @var{ret_pos}.
514 @deftypefun errcode_t ext2fs_file_get_lsize (ext2_file_t @var{file}, __u64 *@var{ret_size})
515 Return the size of the file @var{file} in @var{ret_size}.
518 @deftypefun ext2_off_t ext2fs_file_get_size (ext2_file_t @var{file})
519 Return the size of the file @var{file}.
541 …ypefun errcode_t ext2fs_read_inode (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, struct ext2_inode …
542 Read the inode number @var{ino} into @var{inode}.
545 …pefun errcode_t ext2fs_write_inode (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, struct ext2_inode …
546 Write @var{inode} to inode @var{ino}.
559 …n errcode_t ext2fs_open_inode_scan (ext2_filsys @var{fs}, int @var{buffer_blocks}, ext2_inode_scan…
560 Initialize the iteration variable @var{scan}. This variable is used by
561 @code{ext2fs_get_next_inode}. The @var{buffer_blocks} parameter
564 seeking and reading from the disk. If @var{buffer_blocks} is zero, a
568 @deftypefun void ext2fs_close_inode_scan (ext2_inode_scan @var{scan})
569 Release the memory associated with @var{scan} and invalidate it.
572 …rcode_t ext2fs_get_next_inode (ext2_inode_scan @var{scan}, ext2_ino_t *@var{ino}, struct ext2_inod…
575 number of the inode is stored in @var{ino}, and the inode is stored in
576 @var{inode}.
583 @deftypefun errcode_t ext2fs_inode_scan_goto_blockgroup (ext2_inode_scan @var{scan}, int @var{group…
584 Start the inode scan at a particular ext2 blockgroup, @var{group}.
585 This function may be safely called at any time while @var{scan} is valid.
588 …_scan @var{scan}, errcode_t (*done_group)(ext2_filsys @var{fs}, ext2_inode_scan @var{scan}, dgrp_t…
594 @deftypefun int ext2fs_inode_scan_flags (ext2_inode_scan @var{scan}, int @var{set_flags}, int @var{…
596 Set the scan_flags @var{set_flags} and clear the scan_flags @var{clear_flags}.
616 …var{fs}, ext2_ino_t @var{ino}, int @var{flags}, char *block_buf, int (*func)(ext2_filsys @var{fs},…
618 Iterate over all of the blocks in inode number @var{ino} in filesystem
619 @var{fs}, by calling the function @var{func} for each block in the
620 inode. The @var{block_buf} parameter should either be NULL, or if the
626 The @var{flags} parameter controls how the iterator will function:
649 The callback function @var{func} is called with a number of parameters;
650 the @var{fs} and @var{private} parameters are self-explanatory, and
652 @code{ext2fs_block_iterate}. (The @var{private} data structure is
655 @var{blockcnt} parameter, if non-negative, indicates the logical block
656 number of a data block in the inode. If @var{blockcnt} is less than
657 zero, then @var{func} was called on a metadata block, and @var{blockcnt}
659 BLOCK_COUNT_TIND, or BLOCK_COUNT_TRANSLATOR. The @var{blocknr} is a
662 it returns the @var{BLOCK_CHANGED} flag.
665 The callback function @var{func} returns a result code which is composed of
673 block number pointed to by @var{blocknr}.
684 …var{fs}, ext2_ino_t @var{ino}, int @var{flags}, char *@var{block}_buf, int (*func)(ext2_filsys @va…
687 @var{blockcnt} type is a 64-bit signed quantity, to support larger
688 files, and the addition of the @var{ref_blk} and @var{ref_offset}
690 of the physical block pointed to by pointer @var{blocknr}. If
691 @var{ref_blk} is zero, then @var{ref_offset} contains the offset into
692 the @code{i_blocks} array. If @var{ref_blk} is non-zero, then the physical
694 @var{ref_offset} contains the offset into the indirect block.
704 @deftypefun errcode_t ext2fs_get_blocks (ext2_filsys @var{fs}, ext2_ino_t @var{ino}, blk_t *@var{bl…
711 @deftypefun errcode_t ext2fs_check_directory (ext2_filsys @var{fs}, ext2_ino_t @var{ino})
712 Returns 0 if @var{ino} is a directory, and @code{ENOTDIR} if it is not.
715 @deftypefun int ext2fs_inode_has_valid_blocks (struct ext2_inode *@var{inode})
743 @deftypefun errcode_t ext2fs_read_dir_block (ext2_filsys @var{fs}, blk_t @var{block}, void *@var{bu…
749 @deftypefun errcode_t ext2fs_write_dir_block (ext2_filsys @var{fs}, blk_t @var{block}, void *@var{b…
755 …e_t ext2fs_new_dir_block (ext2_filsys @var{fs}, ext2_ino_t @var{dir_ino}, ext2_ino_t @var{parent_i…
757 This function creates a new directory block in @var{block}. If
758 @var{dir_ino} is non-zero, then @var{dir_info} and @var{parent_ino} is used
768 …var{fs}, ext2_ino_t @var{dir}, int @var{flags}, char *@var{block_buf}, int (*@var{func})(struct ex…
771 directory @var{dir}, calling the callback function @var{func} for each
772 directory entry in the directory. The @var{block_buf} parameter should
778 The @var{flags} parameter controls how the iterator will function:
797 …un errcode_t ext2fs_mkdir (ext2_filsys @var{fs}, ext2_ino_t @var{parent}, ext2_ino_t @var{inum}, c…
799 This function creates a new directory. If @var{inum} is zero, then a
801 the inode specified by @var{inum}. If @var{name} specifies the name of
803 linked into the parent directory @var{parent}.
806 @deftypefun errcode_t ext2fs_expand_dir (ext2_filsys @var{fs}, ext2_ino_t @var{dir})
809 the directory @var{dir}. This allows functions such as
820 …efun errcode_t ext2fs_link (ext2_filsys @var{fs}, ext2_ino_t @var{dir}, const char *@var{name}, ex…
822 This function adds a new directory entry to the directory @var{dir},
823 with @var{name} and @var{ino} specifying the name and inode number in
866 …ode_t ext2fs_unlink (ext2_filsys @var{fs}, ext2_ino_t @var{dir}, const char *@var{name}, ext2_ino_…
868 This function removes a directory entry from @var{dir}.
870 matched by @var{name} and @var{ino}. If @var{name} is non-NULL,
871 the directory entry's name must match @var{name}. If @var{ino} is
872 non-zero, the directory entry's inode number must match @var{ino}.
884 …s_lookup (ext2_filsys @var{fs}, ext2_ino_t @var{dir}, const char *@var{name}, int @var{namelen}, c…
887 …t ext2fs_namei (ext2_filsys @var{fs}, ext2_ino_t @var{root}, ext2_ino_t @var{cwd}, const char *@va…
890 …s_namei_follow (ext2_filsys @var{fs}, ext2_ino_t @var{root}, ext2_ino_t @var{cwd}, const char *@va…
893 …fs_follow_link (ext2_filsys @var{fs}, ext2_ino_t @var{root}, ext2_ino_t @var{cwd}, ext2_ino_t @var…
902 …errcode_t ext2fs_get_pathname (ext2_filsys @var{fs}, ext2_ino_t @var{dir}, ext2_ino_t @var{ino}, c…
929 @deftypefun errcode_t ext2fs_write_inode_bitmap (ext2_filsys @var{fs})
932 @deftypefun errcode_t ext2fs_write_block_bitmap (ext2_filsys @var{fs})
935 @deftypefun errcode_t ext2fs_read_inode_bitmap (ext2_filsys @var{fs})
938 @deftypefun errcode_t ext2fs_read_block_bitmap (ext2_filsys @var{fs})
941 @deftypefun errcode_t ext2fs_read_bitmaps (ext2_filsys @var{fs})
944 @deftypefun errcode_t ext2fs_write_bitmaps (ext2_filsys @var{fs})
953 …e_generic_bitmap (__u32 @var{start}, __u32 @var{end}, _u32 @var{real_end}, const char *@var{descr}…
956 …e_t ext2fs_allocate_block_bitmap (ext2_filsys @var{fs}, const char *@var{descr}, ext2fs_block_bitm…
959 …e_t ext2fs_allocate_inode_bitmap (ext2_filsys @var{fs}, const char *@var{descr}, ext2fs_inode_bitm…
969 @deftypefun void ext2fs_free_generic_bitmap (ext2fs_inode_bitmap @var{bitmap})
972 @deftypefun void ext2fs_free_block_bitmap (ext2fs_block_bitmap @var{bitmap})
975 @deftypefun void ext2fs_free_inode_bitmap (ext2fs_inode_bitmap @var{bitmap})
985 @deftypefun void ext2fs_mark_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{block})
987 @deftypefunx void ext2fs_unmark_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{block})
989 @deftypefunx int ext2fs_test_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{block})
991 These functions set, clear, and test bits in a block bitmap @var{bitmap}.
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{ino…
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}.
1004 @deftypefun void ext2fs_fast_mark_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{block})
1006 @deftypefunx void ext2fs_fast_unmark_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{blo…
1008 @deftypefunx int ext2fs_fast_test_block_bitmap (ext2fs_block_bitmap @var{bitmap}, blk_t @var{block})
1010 @deftypefunx void ext2fs_fast_mark_inode_bitmap (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{…
1012 …unx 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{i…
1023 @deftypefun blk_t ext2fs_get_block_bitmap_start (ext2fs_block_bitmap @var{bitmap})
1024 @deftypefunx ext2_ino_t ext2fs_get_inode_bitmap_start (ext2fs_inode_bitmap @var{bitmap})
1028 @deftypefun blk_t ext2fs_get_block_bitmap_end (ext2fs_block_bitmap @var{bitmap})
1029 @deftypefunx ext2_ino_t ext2fs_get_inode_bitmap_end (ext2fs_inode_bitmap @var{bitmap})
1041 …rrcode_t ext2fs_compare_block_bitmap (ext2fs_block_bitmap @var{bm1}, ext2fs_block_bitmap @var{bm2})
1044 …rrcode_t ext2fs_compare_inode_bitmap (ext2fs_inode_bitmap @var{bm1}, ext2fs_inode_bitmap @var{bm2})
1054 …xt2fs_fudge_inode_bitmap_end (ext2fs_inode_bitmap @var{bitmap}, ext2_ino_t @var{end}, ext2_ino_t *…
1057 …e_t ext2fs_fudge_block_bitmap_end (ext2fs_block_bitmap @var{bitmap}, blk_t @var{end}, blk_t *@var{…
1066 …ode_t ext2fs_resize_generic_bitmap (__u32 @var{new_end}, __u32 @var{new_real_end}, ext2fs_generic_…
1069 …rrcode_t ext2fs_resize_inode_bitmap (__u32 @var{new_end}, __u32 @var{new_real_end}, ext2fs_inode_b…
1072 …rrcode_t ext2fs_resize_block_bitmap (__u32 @var{new_end}, __u32 @var{new_real_end}, ext2fs_block_b…
1082 @deftypefun void ext2fs_clear_inode_bitmap (ext2fs_inode_bitmap @var{bitmap})
1084 This function sets all of the bits in the inode bitmap @var{bitmap} to
1089 @deftypefun void ext2fs_clear_block_bitmap (ext2fs_block_bitmap @var{bitmap})
1091 This function sets all of the bits in the block bitmap @var{bitmap} to
1118 @deftypefun errcode_t ext2fs_badblocks_list_create (ext2_badblocks_list *@var{ret}, int @var{size})
1121 @deftypefun void ext2fs_badblocks_list_free (ext2_badblocks_list @var{bb})
1124 @deftypefun errcode_t ext2fs_badblocks_list_add (ext2_badblocks_list @var{bb}, blk_t @var{blk})
1127 @deftypefun int ext2fs_badblocks_list_test (ext2_badblocks_list @var{bb}, blk_t @var{blk})
1130 …ext2fs_badblocks_list_iterate_begin (ext2_badblocks_list @var{bb}, ext2_badblocks_iterate *@var{re…
1133 @deftypefun int ext2fs_badblocks_list_iterate (ext2_badblocks_iterate iter, blk_t *@var{blk})
1136 @deftypefun void ext2fs_badblocks_list_iterate_end (ext2_badblocks_iterate @var{iter})
1139 @deftypefun errcode_t ext2fs_update_bb_inode (ext2_filsys @var{fs}, ext2_badblocks_list @var{bb_lis…
1142 @deftypefun errcode_t ext2fs_read_bb_inode (ext2_filsys @var{fs}, ext2_badblocks_list *@var{bb_list…
1145 …ad_bb_FILE (ext2_filsys @var{fs}, FILE *f, ext2_badblocks_list *@var{bb_list}, void (*invalid)(ext…
1161 @deftypefun errcode_t ext2fs_init_dblist (ext2_filsys @var{fs}, ext2_dblist *@var{ret_dblist})
1163 Creates a dblist data structure and return it in @var{ret_dblist}.
1166 @deftypefun void ext2fs_free_dblist (ext2_dblist @var{dblist})
1171 … errcode_t ext2fs_add_dir_block (ext2_dblist @var{dblist}, ext2_ino_t @var{ino}, blk_t @var{blk}, …
1174 that block number @var{blockcnt} of directory inode @var{ino} is stored
1175 in block @var{blk}.
1178 … errcode_t ext2fs_set_dir_block (ext2_dblist @var{dblist}, ext2_ino_t @var{ino}, blk_t @var{blk}, …
1181 of block number @var{blockcnt} of directory indoe @var{ino} to be block
1182 @var{blk}.
1185 …ate (ext2_dblist @var{dblist}, int (*func)(ext2_filsys @var{fs}, struct ext2_db_entry *@var{db_inf…
1187 This iterator calls @var{func} for every entry in the dblist data structure.
1190 …var{dblist}, int flags, char *@var{block_buf}, int (*func)(ext2_ino_t @var{dir}, int @var{entry},…
1193 dblist entry, and calls @var{func} for each directory entry in each
1194 directory block. If @var{dblist} contains all the directory blocks in a
1217 …2fs_create_icount2 (ext2_filsys @var{fs}, int @var{flags}, int @var{size}, ext2_icount_t @var{hint…
1219 Creates an icount stucture for a filesystem @var{fs}, with initial space
1220 for @var{size} inodes whose count is greater than 1. The @var{flags}
1223 quickly. The icount structure is returned in @var{ret}. The returned
1226 The @var{hint} parameter allows the caller to optionally pass in another
1233 @deftypefun void ext2fs_free_icount (ext2_icount_t @var{icount})
1238 …ypefun errcode_t ext2fs_icount_fetch (ext2_icount_t @var{icount}, ext2_ino_t @var{ino}, __u16 *@va…
1240 Returns in @var{ret} fetches the count for a particular inode @var{ino}.
1243 …un errcode_t ext2fs_icount_increment (ext2_icount_t @var{icount}, ext2_ino_t @var{ino}, __u16 *@va…
1245 Increments the ref count for inode @var{ino}.
1248 …un errcode_t ext2fs_icount_decrement (ext2_icount_t @var{icount}, ext2_ino_t @var{ino}, __u16 *@va…
1250 Decrements the ref count for inode @var{ino}.
1253 …typefun errcode_t ext2fs_icount_store (ext2_icount_t @var{icount}, ext2_ino_t @var{ino}, __u16 @va…
1255 Sets the reference count for inode @var{ino} to be @var{count}.
1258 @deftypefun ext2_ino_t ext2fs_get_icount_size (ext2_icount_t @var{icount})
1260 Returns the current number of inodes in @var{icount} which has a count
1264 @deftypefun errcode_t ext2fs_icount_validate (ext2_icount_t @var{icount}, FILE *@var{f})
1266 Validates the internal rep invariant of @var{icount}; if there are any
1267 problems, print out debugging information to @var{f}. This function is
1278 @deftypefun void ext2fs_swap_super (struct ext2_super_block * @var{super})
1281 @deftypefun void ext2fs_swap_group_desc (struct ext2_group_desc *@var{gdp})
1284 … void ext2fs_swap_inode (ext2_filsys @var{fs}, struct ext2_inode *@var{to}, struct ext2_inode *@va…
1298 …t2fs_new_inode (ext2_filsys @var{fs}, ext2_ino_t @var{dir}, int @var{mode}, ext2fs_inode_bitmap @v…
1301 … errcode_t ext2fs_new_block (ext2_filsys @var{fs}, blk_t @var{goal}, ext2fs_block_bitmap @var{map}…
1304 …ee_blocks (ext2_filsys @var{fs}, blk_t @var{start}, blk_t @var{finish}, int @var{num}, ext2fs_bloc…
1308 @deftypefun errcode_t ext2fs_check_desc (ext2_filsys @var{fs})
1311 @deftypefun errcode_t ext2fs_get_num_dirs (ext2_filsys @var{fs}, ext2_ino_t *@var{ret_num_dirs})
1316 …typefun errcode_t ext2fs_get_device_size (const char *@var{file}, int @var{blocksize}, blk_t *@var…
1321 @deftypefun errcode_t ext2fs_check_if_mounted (const char *@var{file}, int *@var{mount_flags})
1326 @deftypefun int ext2fs_get_library_version (const char **@var{ver_string}, const char **@var{date_s…
1334 If @var{ver_string} and/or @var{date_string} are non-NULL, they will be
1339 @deftypefun int ext2fs_parse_version_string (const char *@var{ver_string})
1349 @deftypefun int ext2fs_group_of_blk (ext2_filsys @var{fs}, blk_t @var{blk})
1351 This function returns the block group which contains the block @var{blk}.
1355 @deftypefun int ext2fs_group_of_ino (ext2_filsys @var{fs}, ext2_ino_t @var{ino})
1357 This function returns the block group which contains the inode @var{ino}.