Lines Matching defs:start_lba
34 static void handle_extent (struct file_extent ext, unsigned int sectors_per_block, __u64 start_lba)
41 begin_lba = start_lba + ( ext.first_block * sectors_per_block);
42 end_lba = start_lba + ((ext.last_block + 1) * sectors_per_block) - 1;
58 static int walk_fibmap (int fd, struct stat *st, unsigned int sectors_per_block, __u64 start_lba)
111 handle_extent(ext, sectors_per_block, start_lba);
118 handle_extent(ext, sectors_per_block, start_lba);
155 static int walk_fiemap (int fd, unsigned int sectors_per_block, __u64 start_lba)
197 handle_extent(ext, sectors_per_block, start_lba);
224 __u64 start_lba = 0;
246 err = get_dev_t_geometry(st.st_dev, NULL, NULL, NULL, &start_lba, NULL);
251 if (start_lba == START_LBA_UNKNOWN) {
264 file_name, blksize, start_lba, sector_bytes);
270 handle_extent(ext, sectors_per_block, start_lba);
275 err = walk_fiemap(fd, sectors_per_block, start_lba);
277 err = walk_fibmap(fd, &st, sectors_per_block, start_lba);