Lines Matching refs:slice

652  * Convenience function to get slice stats
655 dm_get_slice_stats(char *slice, nvlist_t **dev_stats, int *errp)
662 if (slice == NULL) {
670 devp = dm_get_descriptor_by_name(DM_SLICE, slice, errp);
679 * Checks for overlapping slices. If the given device is a slice, and it
680 * overlaps with any non-backup slice on the disk, return true with a detailed
686 dm_descriptor_t slice = NULL;
699 slice = dm_get_descriptor_by_name(DM_SLICE, slicename, errp);
700 if (slice == NULL)
707 media = dm_get_associated_descriptors(slice, DM_MEDIA, errp);
723 slice_attrs = dm_get_attributes(slice, errp);
784 * on this media in the same region as this slice.
786 * Slice 2 is the backup slice if it is the size
788 * If slice 2 is the overlap and slice 2 is the size of
789 * the whole disk, continue. If another slice is found
790 * that overlaps with our slice, return it.
791 * There is the potential that there is more than one slice
792 * that our slice overlaps with, however, we only return
793 * the first overlapping slice we find.
845 if (slice)
846 dm_free_descriptor(slice);
921 * Check a slice to see if it's being used by swap.
981 * Given a path, extract the disk path and disk slice number.
1060 * Cache lookup failed to get the slice stats.
1204 * block name, we might not be able to get the slice
1298 char slice[MAXPATHLEN];
1308 * given slice.
1324 * cluster global device slice 7 (../dsk/d<n>s7) OR a regular
1325 * device slice 2 (../dsk/c<x>t<y>d<z>s2) -- The Backup Slice.
1332 (void) snprintf(slice, MAXPATHLEN, "%ss%d",
1335 er = dm_inuse_impl_check_slice(slice, msg, who, errp);
1341 * Check the given slice.
1350 * Given slice is not in use. Check for overlapping.
1360 * Check backup slice : Normal - s2, Cluster - s7.
1362 (void) snprintf(slice, MAXPATHLEN, "%ss%lld", devpath, snum);
1363 err = dm_inuse_impl_check_slice(slice, msg, who, errp);