Searched defs:disk (Results 1 - 25 of 47) sorted by relevance

12

/illumos-gate/usr/src/boot/sys/boot/uboot/lib/
H A Dlibuboot.h41 } disk; member in union:uboot_devdesc::__anon367
45 #define d_disk d_kind.disk
/illumos-gate/usr/src/cmd/format/
H A Dmain.c85 struct disk_info *disk = NULL; local
176 * If there was only 1 disk on the command line, mark it
177 * to be the current disk. If it wasn't found, it's an error.
180 disk = disk_list;
181 if (disk == NULL) {
182 err_print("Unable to find specified disk '%s'.\n",
188 * A disk was forced on the command line.
193 * be the current disk.
195 for (disk = disk_list; disk !
[all...]
H A Dmenu_command.c104 * This routine implements the 'disk' command. It allows the user to
105 * select a disk to be current. The list of choices is the list of
111 struct disk_info *disk; local
126 * disk when performing a blind selection. The size should be sufficient
127 * to hold the prompt string, plus 256 characters for the disk name -
134 * disk number to be selected is already in the
140 * Get the disk number the user has given.
143 for (disk = disk_list; disk != NULL; disk
[all...]
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_disk.c48 jobject disk = NULL; local
70 disk = (*env)->NewObject(env, class_DiskDeviceBean,
76 return (disk);
194 jobject disk = create_DiskDeviceBean(env, dp); local
196 /* Add disk to zjni_ArrayList */
198 ((zjni_Collection_t *)list)->method_add, disk); local
H A Dlibzfs_jni_diskmgt.c42 static dmgt_disk_t *get_disk(dm_descriptor_t disk, int *error);
43 static char **get_disk_aliases(dm_descriptor_t disk, char *name, int *error);
44 static int get_disk_online(dm_descriptor_t disk, int *error);
94 * Gets a dmgt_disk_t for the given disk dm_descriptor_t.
103 get_disk(dm_descriptor_t disk, int *error) argument
115 dp->name = get_device_name(disk, error);
119 dp->aliases = get_disk_aliases(disk, dp->name, error);
124 dm_get_associated_descriptors(disk,
129 "could not get media from disk %s",
165 get_disk_aliases(dm_descriptor_t disk, cha argument
221 get_disk_online(dm_descriptor_t disk, int *error) argument
694 dm_descriptor_t disk = (dm_descriptor_t)disks[i]; local
738 dmgt_free_disk(dmgt_disk_t *disk) argument
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Dmdescplugin.c33 * PICL tree which will have a disk node created for each disk node in the
69 picl_nodehdl_t disk; member in struct:disk_lookup
87 lookup->disk = node;
175 * and determine which disk (if any) we are working with
183 lookup.disk = NULL;
186 status = ptree_walk_tree_by_class(root_node, "disk", (void *)&lookup,
194 ptree_update_propval_by_name(lookup.disk, "State",
197 ptree_update_propval_by_name(lookup.disk, "State",
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/piclsbl/
H A Dpiclsbl.h38 picl_nodehdl_t disk; member in struct:disk_lookup
/illumos-gate/usr/src/cmd/acct/
H A Dacctdusg.c37 * and computes disk resource consumption by login
50 struct disk { struct
51 struct disk *next; /* next entry at same hash tbl index */
53 blkcnt_t dsk_du; /* disk usage */
62 static struct disk *usglist[MAXUSERS]; /* holds data on disk usg by uid */
65 static struct disk *hash_insert(uid_t);
66 static struct disk *hash_find(uid_t);
69 static void validate_entry(struct disk *, struct passwd *);
82 struct disk *entr
[all...]
/illumos-gate/usr/src/cmd/availdevs/
H A Davaildevs.c69 xmlNodePtr disk = xmlNewChild( local
71 (void) xmlSetProp(disk,
74 set_uint64_prop(disk, ATTR_DISK_SIZE, dp->size);
76 (void) xmlSetProp(disk, (xmlChar *)ATTR_DISK_INUSE, (xmlChar *)
82 disk, NULL, (xmlChar *)ELEMENT_ALIAS, NULL);
93 disk, NULL, (xmlChar *)ELEMENT_SLICE, NULL);
/illumos-gate/usr/src/uts/common/sys/
H A Draidioctl.h52 * define disk status flags
69 int disk[RAID_MAXDISKS]; member in struct:raid_config
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dpartition.c63 static int get_parts(disk_t *disk, struct ipart *iparts, char *opath,
112 if (get_parts(desc->p.disk, iparts, pname, sizeof (pname)) != 0) {
173 desc->p.disk, part_name, desc->secondary_name,
197 * number and not to the physical disk. This is
199 * physical disk partition.
212 desc->p.disk, part_name, desc->name, errp);
238 if ((*errp = get_parts(dp->p.disk, iparts, NULL, 0)) != 0) {
337 * A partition descriptor points to a disk, the name is the partition number
340 * partitions found on each disk on a system. These are processed into an array
383 * number and not to the physical disk
549 get_parts(disk_t *disk, struct ipart *iparts, char *opath, int opath_len) argument
[all...]
H A Ddisks_private.h66 struct disk **disks;
86 struct disk **disks;
94 typedef struct disk { struct
103 struct disk *next;
116 disk_t *disk; member in union:descriptor::__anon3126
H A Dentry.c496 * slices for the named disk drive.
503 dm_descriptor_t *disk; local
520 disk = dm_get_associated_descriptors(alias, DM_DRIVE, errp);
522 if (disk != NULL) {
523 media = dm_get_associated_descriptors(*disk,
525 dm_free_descriptors(disk);
563 * overlaps with any non-backup slice on the disk, return true with a detailed
670 * of the whole disk
672 * the whole disk, continue. If another slice is found
/illumos-gate/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_hsp.c241 gettext(" --->Using %s from disk set %s...\n"),
255 gettext(" --->Created %s for disk set %s...\n "),
758 * for the input component and not on the same disk as any
796 dm_descriptor_t disk = NULL; local
798 /* see if spare's disk is independent of the volume */
799 error = get_disk_for_named_slice(spname, &disk);
801 (void *)(uintptr_t)disk, compare_descriptor_names) ==
849 * disk relative to the input lists of used HBAs and disks
879 * is on a unique disk.
883 * 1st B_TRUE: require a different disk tha
[all...]
H A Dlayout.c76 * disk is the dm_descriptor_t of the modified disk
77 * accessname is the name to access the disk thru
78 * slices is the list of modified slices on the disk
81 dm_descriptor_t disk; member in struct:__anon831
102 void *disk,
130 /* initialize using the the top-level disk set request... */
179 "disk set request."));
240 * Determines the requested disk set and validates it.
259 /* determine & validate requested disk se
517 dm_descriptor_t disk = (dm_descriptor_t)0; local
584 add_modified_disk( devconfig_t *request, dm_descriptor_t disk) argument
654 dm_descriptor_t disk = (dm_descriptor_t)0; local
740 dm_descriptor_t disk = moddisk->disk; local
849 dm_descriptor_t disk = (dm_descriptor_t)0; local
926 dm_descriptor_t disk; local
996 compare_disk_to_moddisk_disk( void *disk, void *moddisk) argument
[all...]
H A Dlayout_mirror.c128 dm_descriptor_t disk,
599 * these may affect disk and HBA choices for new
627 * (each stripe has a disk per HBA)
636 * (each stripe has a disk per HBA)
977 * . requires an HBA with at least 1 available disk
983 * . requires an HBA with at least 1 available disk
1545 * Each stripe will use a disk from several different HBAs.
1555 * copy the input disk list
1559 * remove used disks from disk list
1565 * free copied disk lis
2253 volume_shares_disk( dm_descriptor_t disk, devconfig_t *volume, boolean_t *shares) argument
[all...]
H A Dlayout_validate.c90 * - a valid but non-existent disk (c0t0d8, c1t0d0)
91 * - a valid slice on a non-existent disk or controller
93 * - a valid slice on an existing disk (c0t0d0s12,
782 * The CTD name must be of an available slice, disk or
783 * HBA, or a known used slice, disk or HBA that was
809 dm_descriptor_t disk = (dm_descriptor_t)0; local
813 /* name must correspond to a known HBA, disk, or slice */
816 if ((error = disk_get_by_name(name, &disk)) == 0) {
817 if (disk == (dm_descriptor_t)0) {
840 which, array[i], slice, disk, hb
1795 dm_descriptor_t disk = (dm_descriptor_t)0; local
[all...]
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumpitime.c156 * of the disk name.
161 fname = disk;
217 * of the disk name.
222 fname = disk;
408 is_fssnap_dump(char *disk) argument
417 last = basename(disk);
418 if ((strstr(disk, SNAP_NAME) == NULL) || (stat(disk, &st) == -1) ||
/illumos-gate/usr/src/cmd/hal/utils/
H A Dfsutils.c57 char *part, *slice, *disk; local
67 disk = strrchr(devlink, 'd');
69 if ((part != NULL) && (part > slice) && (part > disk)) {
71 } else if ((slice != NULL) && (slice > disk)) {
74 s = disk;
221 * are tagged backup/entire disk.
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/
H A Dfcal_leds.c32 * to match the disk status.
174 int disk, led; local
190 * search the leds of each disk for a match with this UnitAddress
192 for (disk = 0; disk < dtls->n_disks; disk++) {
194 if (addr == dtls->led_addr[led][disk])
200 if (disk == dtls->n_disks)
202 stat = dtls->led_state[led][disk];
218 find_disk_slot(led_dtls_t *dtls, int disk, picl_nodehdl_ argument
[all...]
H A Dfcal_leds_thread.c46 static int update_picl(led_dtls_t *dtls, int disk);
55 static void start_led_test(led_dtls_t *dtls, int disk);
56 static void end_led_test(led_dtls_t *dtls, int disk);
75 delete_disk_unit(led_dtls_t *dtls, int disk) argument
81 r = find_disk_slot(dtls, disk, &slotndh);
86 * is there a disk-unit node here?
95 * remove disk-unit node and its properties
105 * Called when disk goes off-line or goes to ready status.
106 * In the case of disk ready, locate platform tree node for the disk
113 update_picl(led_dtls_t *dtls, int disk) argument
425 int disk; local
436 int err, led, disk, led_bit; local
536 start_led_test(led_dtls_t *dtls, int disk) argument
556 end_led_test(led_dtls_t *dtls, int disk) argument
[all...]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas_raid.c111 uint8_t numelements, vol, disk; local
173 disk = 0;
236 * their DevHandles in the phys disk
242 raidconfig->m_physdisk_devhdl[disk] = ddi_get16(accessp,
246 * Increment disk index within this
249 disk++;
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_vdev.c33 * disk=(path=..., devid=...)
47 * Hot spares are a special case, and passed down as an array of disk vdevs, at
157 * If we're given a whole disk, ignore overlapping slices since we're
180 * Validate a whole disk. Iterate over all slices on the disk and make sure
184 check_disk(const char *name, dm_descriptor_t disk, int force, int isspare) argument
192 * Get the drive associated with this disk. This should never fail,
195 if ((drive = dm_get_associated_descriptors(disk, DM_DRIVE,
236 * overlapping slices because we are using the whole disk.
353 * By "whole disk" w
[all...]
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddisk_link.c56 * 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_CHA
189 char disk[23]; local
212 char disk[10]; local
227 char disk[DISK_SUBPATH_MAX]; local
241 char disk[10]; local
267 char disk[DISK_SUBPATH_MAX]; local
315 char disk[DISK_SUBPATH_MAX]; local
421 decode_xen_device(uint_t device, uint_t *disk, uint_t *plun) argument
473 char disk[16]; local
505 disk_common(di_minor_t minor, di_node_t node, char *disk, int flags) argument
[all...]
/illumos-gate/usr/src/cmd/power/
H A Dsysstat.c91 #define DISK_DELTA(x) (disk->new_kios.x - disk->old_kios.x)
193 struct diskinfo *disk, *prevdisk, *comp; local
196 disk = &zerodisk;
207 strcmp(ksp->ks_class, "disk") != 0) {
210 prevdisk = disk;
211 if (disk->next) {
212 disk = disk->next;
214 safe_zalloc((void **)&disk
256 struct diskinfo *disk; local
272 struct diskinfo *disk; local
[all...]

Completed in 97 milliseconds

12