Home
last modified time | relevance | path

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

/titanic_44/usr/src/grub/grub-0.97/stage2/
H A Dfsys_ext2fs.c336 ext2fs_block_map (int logical_block) in ext2fs_block_map() argument
356 printf ("logical block %d\n", logical_block); in ext2fs_block_map()
360 if (logical_block < EXT2_NDIR_BLOCKS) in ext2fs_block_map()
363 printf ("returning %d\n", (unsigned char *) (INODE->i_block[logical_block])); in ext2fs_block_map()
364 printf ("returning %d\n", INODE->i_block[logical_block]); in ext2fs_block_map()
366 return INODE->i_block[logical_block]; in ext2fs_block_map()
369 logical_block -= EXT2_NDIR_BLOCKS; in ext2fs_block_map()
371 if (logical_block < EXT2_ADDR_PER_BLOCK (SUPERBLOCK)) in ext2fs_block_map()
380 return ((__u32 *) DATABLOCK1)[logical_block]; in ext2fs_block_map()
383 logical_block -= EXT2_ADDR_PER_BLOCK (SUPERBLOCK); in ext2fs_block_map()
[all …]
H A 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 …]