Lines Matching defs:slices
453 dev_t dev[V_NUMPAR]; /* dev numbers for slices */
455 uint_t nslices; /* number of slices we export */
478 vd_slice_t slices[VD_MAXPART]; /* logical partitions */
806 if (blk >= vd->slices[slice].nblocks) {
809 blk, vd->slices[slice].nblocks);
813 offset = (vd->slices[slice].start + blk) * DEV_BSIZE;
814 maxlen = (vd->slices[slice].nblocks - blk) * DEV_BSIZE;
830 * s0 instead s2) the system can try to access slices that
1174 *blkp = vd->slices[vd->efi_reserved].start;
3178 bzero(vd->slices, sizeof (vd_slice_t) * VD_MAXPART);
3191 vd->slices[i].start = gpe[i].efi_gpe_StartingLBA;
3192 vd->slices[i].nblocks = gpe[i].efi_gpe_EndingLBA -
3202 vd->slices[VD_EFI_WD_SLICE].start = 0;
3203 vd->slices[VD_EFI_WD_SLICE].nblocks = vd->vdisk_size;
3269 bzero(vd->slices, sizeof (vd_slice_t) * VD_MAXPART);
3272 vd->slices[i].start = vtoc->v_part[i].p_start;
3273 vd->slices[i].nblocks = vtoc->v_part[i].p_size;
3469 * out to functions that handle slices, files or whole disks)
3724 * disk slices, we can't use the devid of the disk otherwise
3725 * exporting multiple slices from the same disk will produce
3728 PR2("No Device ID for slices");
5557 /* Initialize device numbers for remaining slices and open them */
5574 * Open all slices of the disk to serve them to the client.
5577 * slices being accessed by a client. Failure to open a slice
5580 * Any slices successfully opened before a failure will get
5608 /* vds_destroy_vd() will close any open slices */
5707 /* adjust the number of slices */
5847 /* adjust the number of slices */
6651 * then we always export volume devices as slices.
6970 /* Close any open backing-device slices */