search for: ext_n_block

Displaying 1 result from an estimated 1 matches for "ext_n_block".

Did you mean: ext_n_blocks
2006 Jun 12
0
Some questions about function usage
...libext2fs: Function: errcode_t ext2fs_get_blocks (ext2_filsys FS, ext2_ino_t INO, blk_t *BLOCKS) Returns an array of blocks corresponding to the direct, indirect, doubly indirect, and triply indirect blocks as stored in the inode structure. So I wrote some codes like following: blk_t target_blks[EXT_N_BLOCKS]; retval = ext2fs_get_blocks(fs, ino, target_blks); printf("[percentage]u [percentage]u [percentage]u", *target_blks, target_blks[1], target_blks[2]); P.S. [percentage] is "shift+5" The output of printf is strange. *target_blks is the actul block number of the first block of...