Home
last modified time | relevance | path

Searched refs:file_block (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/boot/libsa/
H A Dufs.c198 block_map(struct open_file *f, ufs2_daddr_t file_block, in block_map() argument
231 if (file_block < NDADDR) { in block_map()
233 *disk_block_p = DIP(fp, di_db[file_block]); in block_map()
237 file_block -= NDADDR; in block_map()
246 if (file_block < fp->f_nindir[level]) in block_map()
248 file_block -= fp->f_nindir[level]; in block_map()
281 idx = file_block / fp->f_nindir[level - 1]; in block_map()
282 file_block %= fp->f_nindir[level - 1]; in block_map()
284 idx = file_block; in block_map()
306 ufs_lbn_t file_block; in buf_write_file() local
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_ffs.c99 block_map (int file_block) in block_map() argument
103 if (file_block < NDADDR) in block_map()
104 return (INODE->i_db[file_block]); in block_map()
113 offset = ((file_block - NDADDR) % NINDIR (SUPERBLOCK)); in block_map()
139 return (((int *) MAPBUF)[((file_block - NDADDR) % NINDIR (SUPERBLOCK)) in block_map()
H A Dfsys_ufs2.c123 block_map (int file_block) in block_map() argument
127 if (file_block < NDADDR) in block_map()
128 return (INODE_UFS2->di_db[file_block]); in block_map()
138 offset = ((file_block - NDADDR) % NINDIR (SUPERBLOCK)); in block_map()
164 return (((grub_int64_t *) MAPBUF)[((file_block - NDADDR) % NINDIR (SUPERBLOCK)) in block_map()