/titanic_50/usr/src/test/zfs-tests/tests/functional/devices/ |
H A D | devices_common.kshlib | 55 devstr=$(get_disklist $rootpool) 56 devstr=$($ECHO "$devstr" | \ 58 [[ -z $devstr ]] && \ 60 devstr=/dev/dsk/${devstr} 67 devstr=$($DF -lhF ufs | \ 70 devstr=$($ECHO "$devstr" | \ 72 [[ -z $devstr ]] && \ 86 devstr=$($FILE $devstr) 91 major=${devstr##*\(} 93 minor=${devstr##*/}
|
/titanic_50/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | setup.c | 204 logsetup(caddr_t devstr) in logsetup() argument 260 if (rl_roll_log(devstr) != RL_SUCCESS) in logsetup() 264 (void) printf("Can't roll the log for %s.\n", devstr); in logsetup() 364 derive_devstr(const caddr_t dev, caddr_t devstr, size_t str_size) in derive_devstr() argument 380 devstr[0] = '\0'; in derive_devstr() 381 if (!(check_mnttab(dev, devstr, str_size) || in derive_devstr() 382 check_vfstab(dev, devstr, str_size))) { in derive_devstr() 391 (void) strlcpy(devstr, dev, str_size); in derive_devstr() 395 (void) strlcpy(devstr, unrawname(dev), str_size); in derive_devstr() 434 check_mount_state(caddr_t devstr, size_t str_size) in check_mount_state() argument [all …]
|
H A D | main.c | 362 char *devstr; in checkfilesys() local 383 if ((devstr = setup(filesys)) == NULL) { in checkfilesys() 394 devname = devstr; in checkfilesys() 664 fswritefd = open(devstr, O_RDWR, 0); in checkfilesys()
|
H A D | utilities.c | 1051 mounted(caddr_t name, caddr_t devstr, size_t str_size) in mounted() argument 1056 mntent = search_mnttab(NULL, unrawname(name), devstr, str_size); in mounted() 1076 if (devstr != NULL && str_size > 0) in mounted() 1077 (void) strlcpy(devstr, mntent->mnt_special, str_size); in mounted() 1519 check_vfstab(caddr_t name, caddr_t devstr, size_t str_size) in check_vfstab() argument 1521 return (NULL != search_vfstab(name, NULL, devstr, str_size)); in check_vfstab() 1530 check_mnttab(caddr_t name, caddr_t devstr, size_t str_size) in check_mnttab() argument 1532 return (NULL != search_mnttab(name, NULL, devstr, str_size)); in check_mnttab() 1563 if (devstr != NULL && str_size > 0 && \ 1565 (void) strlcpy(devstr, buffer.st_special, \ [all …]
|
/titanic_50/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | setup.c | 88 static char devstr[MAXPATHLEN]; in setup() local 97 devname = devstr; in setup() 98 (void) strncpy(devstr, dev, sizeof (devstr)); in setup() 100 if (stat(devstr, &statb) < 0) { in setup() 101 (void) printf(gettext("Can't stat %s\n"), devstr); in setup() 138 if (strcmp(devstr, vfsbuf.vfs_mountp) == 0) { in setup() 148 (void) strcpy(devstr, vfsbuf.vfs_special); in setup() 152 (void) strcpy(devstr, raw); in setup() 176 if (mounted(devstr)) { in setup() 181 "device ignored\n"), devstr); in setup() [all …]
|
H A D | main.c | 208 char *devstr; in checkfilesys() local 214 if ((devstr = setup(filesys)) == 0) { in checkfilesys() 224 devname = devstr; in checkfilesys()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | syncloop.c | 105 char *devstr = "/dev/"; in main() local 158 devstrlen = strlen(devstr); in main() 159 if (strncmp(devstr, portname, devstrlen) != 0) { in main() 160 if (snprintf(dnambuf, sizeof (dnambuf), "%s%s", devstr, in main()
|
/titanic_50/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_hba_fru.c | 588 int8_t *devstr; in ql_get_basedev_len() local 620 devstr = ha->devpath + port_off; in ql_get_basedev_len() 621 *port_index = stoi(&devstr); in ql_get_basedev_len()
|
/titanic_50/usr/src/lib/libfdisk/common/ |
H A D | libfdisk.h | 272 extern int libfdisk_init(ext_part_t **epp, char *devstr, struct ipart *parttab,
|
H A D | libfdisk.c | 152 libfdisk_init(ext_part_t **epp, char *devstr, struct ipart *parttab, int opflag) in libfdisk_init() argument 164 (void) strncpy(temp->device_name, devstr, in libfdisk_init() 172 "%s%s", DEFAULT_PATH_PREFIX, devstr); in libfdisk_init()
|
/titanic_50/usr/src/uts/common/io/ |
H A D | pshot.c | 2533 char *devstr, *cname, *caddr; in pshot_bus_config() local 2566 devstr = i_ddi_strdup(devname, KM_SLEEP); in pshot_bus_config() 2567 i_ddi_parse_name(devstr, &cname, &caddr, NULL); in pshot_bus_config() 2581 kmem_free(devstr, devstrlen); in pshot_bus_config() 2605 kmem_free(devstr, devstrlen); in pshot_bus_config()
|
/titanic_50/usr/src/cmd/fs.d/ufs/mkfs/ |
H A D | mkfs.c | 3982 logsetup(char *devstr) in logsetup() argument 4008 if (rl_roll_log(devstr) != RL_SUCCESS) in logsetup() 4059 growinit(char *devstr) in growinit() argument 4103 logsetup(devstr); in growinit() 4120 if (rl_log_control(devstr, _FIOLOGDISABLE) != RL_SUCCESS) { in growinit()
|
/titanic_50/usr/src/uts/common/io/fibre-channel/impl/ |
H A D | fctl.c | 2315 char *devname, *cname, *caddr, *devstr; in fctl_fca_create_npivport() local 2335 devstr = i_ddi_strdup(devname, KM_SLEEP); in fctl_fca_create_npivport() 2336 i_ddi_parse_name(devstr, &cname, &caddr, NULL); in fctl_fca_create_npivport() 2407 kmem_free(devstr, devstrlen); in fctl_fca_create_npivport()
|
/titanic_50/usr/src/uts/common/os/ |
H A D | devcfg.c | 6684 char *devstr; in ndi_devi_findchild() local 6688 devstr = i_ddi_strdup(devname, KM_SLEEP); in ndi_devi_findchild() 6689 i_ddi_parse_name(devstr, &cname, &caddr, NULL); in ndi_devi_findchild() 6692 kmem_free(devstr, strlen(devname)+1); in ndi_devi_findchild() 6698 kmem_free(devstr, strlen(devname)+1); in ndi_devi_findchild()
|