Lines Matching refs:fsmap
168 struct fsmap_head *fsmap; in scan_online() local
169 struct fsmap *extent; in scan_online()
170 struct fsmap *p; in scan_online()
193 fsmap = malloc(fsmap_sizeof(FSMAP_EXTENTS)); in scan_online()
194 if (!fsmap) { in scan_online()
199 memset(fsmap, 0, sizeof(*fsmap)); in scan_online()
200 fsmap->fmh_count = FSMAP_EXTENTS; in scan_online()
201 fsmap->fmh_keys[1].fmr_device = UINT_MAX; in scan_online()
202 fsmap->fmh_keys[1].fmr_physical = ULLONG_MAX; in scan_online()
203 fsmap->fmh_keys[1].fmr_owner = ULLONG_MAX; in scan_online()
204 fsmap->fmh_keys[1].fmr_offset = ULLONG_MAX; in scan_online()
205 fsmap->fmh_keys[1].fmr_flags = UINT_MAX; in scan_online()
209 ret = ioctl(fd, FS_IOC_GETFSMAP, fsmap); in scan_online()
212 free(fsmap); in scan_online()
217 if (!fsmap->fmh_entries) in scan_online()
220 for (i = 0, extent = fsmap->fmh_recs; in scan_online()
221 i < fsmap->fmh_entries; in scan_online()
230 p = &fsmap->fmh_recs[fsmap->fmh_entries - 1]; in scan_online()
233 fsmap_advance(fsmap); in scan_online()