Home
last modified time | relevance | path

Searched refs:logical_block (Results 1 – 2 of 2) sorted by relevance

/external/grub/stage2/
Dfsys_ext2fs.c288 ext2fs_block_map (int logical_block) in ext2fs_block_map() argument
308 printf ("logical block %d\n", logical_block); in ext2fs_block_map()
312 if (logical_block < EXT2_NDIR_BLOCKS) in ext2fs_block_map()
315 printf ("returning %d\n", (unsigned char *) (INODE->i_block[logical_block])); in ext2fs_block_map()
316 printf ("returning %d\n", INODE->i_block[logical_block]); in ext2fs_block_map()
318 return INODE->i_block[logical_block]; in ext2fs_block_map()
321 logical_block -= EXT2_NDIR_BLOCKS; in ext2fs_block_map()
323 if (logical_block < EXT2_ADDR_PER_BLOCK (SUPERBLOCK)) in ext2fs_block_map()
332 return ((__u32 *) DATABLOCK1)[logical_block]; in ext2fs_block_map()
335 logical_block -= EXT2_ADDR_PER_BLOCK (SUPERBLOCK); in ext2fs_block_map()
[all …]
Dfsys_minix.c202 minix_block_map (int logical_block) in minix_block_map() argument
206 if (logical_block < 7) in minix_block_map()
207 return INODE->i_zone[logical_block]; in minix_block_map()
209 logical_block -= 7; in minix_block_map()
210 if (logical_block < 512) in minix_block_map()
221 return ((__u16 *) DATABLOCK1) [logical_block]; in minix_block_map()
224 logical_block -= 512; in minix_block_map()
233 i = ((__u16 *) DATABLOCK1)[logical_block >> 9]; in minix_block_map()
241 return ((__u16 *) DATABLOCK2)[logical_block & 511]; in minix_block_map()
248 int logical_block; in minix_read() local
[all …]