Lines Matching refs:ext
34 static void handle_extent (struct file_extent ext, unsigned int sectors_per_block, __u64 start_lba)
38 __u64 nsectors = ext.block_count * sectors_per_block;
40 if (ext.first_block) {
41 begin_lba = start_lba + ( ext.first_block * sectors_per_block);
42 end_lba = start_lba + ((ext.last_block + 1) * sectors_per_block) - 1;
47 if (ext.first_block)
51 if (!ext.first_block && !nsectors)
55 printf("%12llu %s %s\n", ext.byte_offset, lba_info, len_info);
60 struct file_extent ext;
71 memset(&ext, 0, sizeof(ext));
100 if (blk_idx && blknum64 == (ext.last_block + 1)) {
104 ext.last_block = blknum64 ? blknum64 : hole;
105 ext.block_count++;
111 handle_extent(ext, sectors_per_block, start_lba);
112 ext.first_block = blknum64;
113 ext.last_block = blknum64 ? blknum64 : hole;
114 ext.block_count = 1;
115 ext.byte_offset = blk_idx * st->st_blksize;
118 handle_extent(ext, sectors_per_block, start_lba);
177 struct file_extent ext;
178 memset(&ext, 0, sizeof(ext));
182 ext.byte_offset = fs.fe[i].logical;
186 ext.first_block = 0;
187 ext.last_block = 0;
188 ext.block_count = 0; /* FIEMAP returns garbage for this. Ugh. */
193 ext.first_block = phy_blk;
194 ext.last_block = phy_blk + ext_len - 1;
195 ext.block_count = ext_len;
197 handle_extent(ext, sectors_per_block, start_lba);
268 struct file_extent ext;
269 memset(&ext, 0, sizeof(ext));
270 handle_extent(ext, sectors_per_block, start_lba);