/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | disk_discovery.c | 179 char *diskname, *dev_cpy; local 185 diskname = device_get_disk_name_from_dir("/dev/rdsk", devname); 186 if (diskname != NULL) { 187 *strrchr(diskname, 's') = '\0'; 188 dev_cpy = strdup(diskname); 192 dev_cpy, diskname);
|
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/ |
H A D | pcfs_common.c | 321 stat_actual_disk(char *diskname, struct stat *info, char **suffix) argument 325 if (stat(diskname, info)) { 331 if ((actualdisk = strdup(diskname)) == NULL) { 346 if ((actualdisk = strdup(diskname)) == NULL) {
|
/illumos-gate/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout.c | 519 char *diskname = NULL; local 542 &diskname)) || 544 diskname, index, &slicename));
|
H A D | layout_svm_util.c | 85 char *diskname); 529 * FUNCTION: add_diskset_diskname(char *diskset, char *diskname) 532 * diskname - a char * disk name 539 * The input diskname is fully qualified with the path 546 char *diskname) 561 if ((cp = strrchr(diskname, '/')) != 0) { 565 } else if ((name = strdup(diskname)) == NULL) { 584 return (add_diskset_diskname(dsname, diskname)); 544 add_diskset_diskname( char *dsname, char *diskname) argument
|
H A D | layout_discovery.c | 907 * dm_descriptor_t alias, char *diskname) 911 * diskname - a char * disk name 1938 char *diskname = NULL; local 1942 (error = get_display_name(disk, &diskname)) || 1944 dsname, diskname, index, &is_replica));
|
H A D | layout_request.c | 984 char *diskname = NULL; local 988 ((error = get_display_name(disk, &diskname)) != 0) || 990 (error = get_spec_for_name(diskname, &diskid));
|
H A D | layout_slice.c | 624 * FUNCTION: make_slicename_for_diskname_and_index(char *diskname, 627 * INPUT: diskname - a char * disk name 642 char *diskname, 649 (void) snprintf(buf, sizeof (buf), "%ss%u", diskname, index); 641 make_slicename_for_diskname_and_index( char *diskname, uint16_t index, char **slicename) argument
|
H A D | layout_device_util.c | 3111 * FUNCTION: extract_diskname(char *slicename, char **diskname) 3115 * OUTPUT: diskname - a pointer to a char * to hold the diskname derived 3134 char **diskname) 3141 if ((*diskname = strdup(slicename)) == NULL) { 3144 if ((cp = strrchr(*diskname, 's')) != NULL) { 3150 if ((*diskname = strdup(slicename)) == NULL) { 3153 (*diskname)[strlen((*diskname)-1)] = '\0'; 3132 extract_diskname( char *slicename, char **diskname) argument
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_devadm.c | 340 char *diskname; local 345 diskname = Strdup(p); 346 stripS(diskname); 347 return (diskname); 352 diskname = Strdup(p); 353 stripS(diskname); 354 return (diskname); 359 diskname = Strdup(p); 360 stripS(diskname); 361 return (diskname); 1008 char *diskname = NULL; local 1596 meta_fixdevid( mdsetname_t *sp, mddevopts_t options, char *diskname, md_error_t *ep ) argument [all...] |
H A D | meta_db.c | 79 char *diskname = NULL; local 126 diskname = Strdup(disklist[0].devname); 136 return (diskname);
|
H A D | meta_statconcise.c | 1546 char *diskname, 1571 dep->de_blks[cnt], diskname); 1576 rval = mdsyserror(ep, errno, diskname); 1581 rval = mdsyserror(ep, errno, diskname); 1541 read_mdrecord( md_im_rec_t **mdimpp, mddb_mb_t *mbp, mddb_rb_t *nm, mddb_de_t *dep, char *diskname, int fd, md_timeval32_t *lastaccess, md_error_t *ep ) argument
|
/illumos-gate/usr/src/cmd/lvm/rpc.metamhd/ |
H A D | mhd_drive.c | 1052 diskname( function 1207 ((dname = diskname(path)) == NULL)) {
|
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_vdev.c | 890 char *type, *path, *diskname; local 916 diskname = strrchr(path, '/'); 917 assert(diskname != NULL); 918 diskname++; 919 if (zpool_label_disk(g_zfs, zhp, diskname) == -1)
|
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_activate.c | 816 be_do_install_mbr(char *diskname, nvlist_t *child) argument 848 if ((fd = open(diskname, O_RDONLY|O_NDELAY)) < 0) 880 char diskname[MAXPATHLEN]; local 922 (void) snprintf(diskname, sizeof (diskname), "%s/r%s", path, dsk_ptr); 939 be_do_install_mbr(diskname, child)) 945 be_do_install_mbr(diskname, child)) 952 stage1, stage2, diskname); 956 stage1, stage2, diskname); 966 "%s %s %s %s", BE_INSTALL_BOOT, flag, stage2, diskname); [all...] |
/illumos-gate/usr/src/cmd/format/ |
H A D | startup.c | 1288 open_disk(char *diskname, int flags) argument 1290 return (open(diskname, flags));
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | drive.c | 341 static int get_disk_kstats(kstat_ctl_t *kc, char *diskname, 344 static int get_err_kstats(kstat_ctl_t *kc, char *diskname, 346 static int get_io_kstats(kstat_ctl_t *kc, char *diskname, 959 get_disk_kstats(kstat_ctl_t *kc, char *diskname, char *classname, argument 979 if (libdiskmgt_str_eq(diskname, kstat_name)) { 1054 get_err_kstats(kstat_ctl_t *kc, char *diskname, nvlist_t *stats) argument 1056 return (get_disk_kstats(kc, diskname, KSTAT_CLASS_ERROR, stats)); 1060 get_io_kstats(kstat_ctl_t *kc, char *diskname, nvlist_t *stats) argument 1062 return (get_disk_kstats(kc, diskname, KSTAT_CLASS_DISK, stats));
|
/illumos-gate/usr/src/cmd/power/ |
H A D | handlers.c | 1003 ztop(char *arg, char *diskname) argument 1054 (void) strcpy(diskname, "/dev/dsk/"); 1055 (void) strcat(diskname, vname); 1116 char diskname[256]; local 1171 switch (ztop(sfile, diskname)) { 1194 if (utop(diskname, new_cc.cf_dev_prom))
|
/illumos-gate/usr/src/uts/common/io/lvm/md/ |
H A D | md_names.c | 2246 char *diskname; local 2326 diskname = md_strdup(n->n_name); 2327 if (strlen(diskname) > size) { 2328 kmem_free(diskname, strlen(diskname) + 1); 2332 if ((tmpname = strrchr(diskname, 's')) != NULL) 2336 if (strcmp(diskname, tmpctd) == 0) { 2343 (void) strcpy(cptr, diskname); 2346 kmem_free(diskname, strlen(n->n_name) + 1);
|
H A D | md_mddb.c | 10683 * If so, it returns the diskname in the ctdptr. 10707 char *tmpctd, *diskname; local 10763 diskname = md_strdup(sn->suf_data); 10764 tmpname = strrchr(diskname, 's'); 10767 /* look to see if diskname is already in list */ 10769 if (strcmp(diskname, tmpctd) == 0) { 10774 /* point to next diskname in list */ 10778 /* add diskname to list */ 10779 (void) strcpy(cptr, diskname); 10782 kmem_free(diskname, strle [all...] |
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_import.c | 960 check_one_slice(avl_tree_t *r, char *diskname, uint_t partno, argument 969 diskname, partno); 985 char diskname[MAXNAMELEN]; local 989 (void) strncpy(diskname, sname, MAXNAMELEN); 990 if (((ptr = strrchr(diskname, 's')) == NULL) && 991 ((ptr = strrchr(diskname, 'p')) == NULL)) 996 check_one_slice(r, diskname, i, 0, 1); 999 check_one_slice(r, diskname, i, 0, 1); 1007 char diskname[MAXNAMELEN]; local 1011 (void) strncpy(diskname, snam [all...] |
H A D | libzfs_pool.c | 3817 char diskname[MAXPATHLEN]; local 3823 (void) snprintf(diskname, sizeof (diskname), "%s%s", ZFS_RDISK_ROOT, 3825 if ((fd = open(diskname, O_RDONLY|O_NDELAY)) >= 0) {
|
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/ |
H A D | mkfs.c | 120 static char *stat_actual_disk(char *diskname, struct stat *info, char **suffix); 1544 stat_actual_disk(char *diskname, struct stat *info, char **suffix) argument 1548 if (stat(diskname, info)) { 1554 actualdisk = strtok(strdup(diskname), ":"); 1555 if (*suffix = strchr(diskname, ':')) 1563 actualdisk = strdup(diskname);
|