Lines Matching defs:disk

56  * The number of minor nodes per LUN is defined by the disk drivers.
72 static void disk_common(di_minor_t minor, di_node_t node, char *disk,
80 { "disk", DDI_NT_BLOCK, NULL,
83 { "disk", DDI_NT_BLOCK_CHAN, NULL,
86 { "disk", DDI_NT_BLOCK_BLKDEV, NULL,
89 { "disk", DDI_NT_BLOCK_FABRIC, NULL,
92 { "disk", DDI_NT_BLOCK_WWN, NULL,
95 { "disk", DDI_NT_BLOCK_SAS, NULL,
98 { "disk", DDI_NT_CD, NULL,
101 { "disk", DDI_NT_CD_CHAN, NULL,
104 { "disk", DDI_NT_BLOCK_XVMD, NULL,
107 { "disk", DDI_NT_CD_XVMD, NULL,
118 { "disk", DISK_LINK_RE, RM_HOT | RM_POST | RM_ALWAYS,
121 { "disk", DISK_LINK_RE, RM_POST,
189 char disk[23];
202 (void) snprintf(disk, sizeof (disk), "t%dd%d", targ, lun);
203 disk_common(minor, node, disk, 0);
212 char disk[10];
217 (void) sprintf(disk, "d%d", lun);
218 disk_common(minor, node, disk, 0);
227 char disk[DISK_SUBPATH_MAX];
233 (void) snprintf(disk, DISK_SUBPATH_MAX, "t%016"PRIX64"d%d", eui64, lun);
234 disk_common(minor, node, disk, RM_STALE);
241 char disk[10];
257 (void) sprintf(disk, "t%dd%d", targ, lun);
259 disk_common(minor, node, disk, RM_STALE);
267 char disk[DISK_SUBPATH_MAX];
305 (void) snprintf(disk, DISK_SUBPATH_MAX, "t%sd%d", ascii_wwn, lun);
307 disk_common(minor, node, disk, RM_STALE);
315 char disk[DISK_SUBPATH_MAX];
349 (void) snprintf(disk, DISK_SUBPATH_MAX,
356 (void) snprintf(disk, DISK_SUBPATH_MAX,
359 (void) snprintf(disk, DISK_SUBPATH_MAX,
369 (void) snprintf(disk, DISK_SUBPATH_MAX,
376 (void) snprintf(disk, DISK_SUBPATH_MAX,
379 (void) snprintf(disk, DISK_SUBPATH_MAX,
386 disk_common(minor, node, disk, RM_STALE);
396 * 1 << 28 | disk << 8 | partition xvd, disks or partitions 16 onwards
397 * 202 << 8 | disk << 4 | partition xvd, disks and partitions up to 15
398 * 8 << 8 | disk << 4 | partition sd, disks and partitions up to 15
399 * 3 << 8 | disk << 6 | partition hd, disks 0..1, partitions 0..63
400 * 22 << 8 | (disk-2) << 6 | partition hd, disks 2..3, partitions 0..63
411 * the Solaris disk names created will be c0d[0..767]sN
421 decode_xen_device(uint_t device, uint_t *disk, uint_t *plun)
452 case 3: /* hd, disk 0..1 */
456 case 22: /* hd, disk 2..3 */
464 *disk = dsk;
473 char disk[16];
486 (void) snprintf(disk, sizeof (disk), "d%d", dsk);
488 (void) snprintf(disk, sizeof (disk), "t%dd%d", dsk, lun);
490 devfsadm_errprint("%s: invalid disk device number (%s)\n",
494 disk_common(minor, node, disk, 0);
500 * This function is called for every disk minor node.
505 disk_common(di_minor_t minor, di_node_t node, char *disk, int flags)
593 (void) strcat(l_path, disk);
678 * Use controller component of disk path
838 /* no links on disk */
868 devfsadm_errprint("%s: disk link %s has no "