Lines Matching refs:special

1289 	char			*special = NULL;
1374 special = get_special(menu_root);
1375 INJECT_ERROR1("Z_MENU_GET_SPECIAL", special = NULL);
1376 if (special == NULL) {
1377 bam_error(_("cant find special file for "
1381 pool = strtok(special, "/");
1384 free(special);
1389 BAM_DPRINTF(("%s: derived pool=%s from special\n", fcn, pool));
1396 free(special);
1424 free(special);
1529 free(special);
4190 char *special = get_special("/");
4193 if (special == NULL)
4196 if (*special == '/') {
4197 free(special);
4201 if ((p = strchr(special, '/')) != NULL)
4204 return (special);
5797 get_mountpoint(char *special, char *fstype)
5806 BAM_DPRINTF(("%s: entered. args: %s %s\n", fcn, special, fstype));
5817 mpref.mnt_special = special;
5824 BAM_DPRINTF(("%s: no mount-point for special=%s and "
5825 "fstype=%s\n", fcn, special, fstype));
5832 BAM_DPRINTF(("%s: returning mount-point for special %s: %s\n",
5833 fcn, special, mp.mnt_mountp));
6125 * It can be a "special" file as seen in mnttab: rpool/ROOT/szboot_0402
6126 * It can be a /dev/[r]dsk special file. We handle both instances
6338 BAM_DPRINTF(("%s: caching mount: special=%s, mntpt=%s, "
6374 search_hash(mhash_t *mhp, char *special, char **mntpt)
6384 INJECT_ERROR1("SEARCH_HASH_FULL_PATH", special = "/foo");
6385 if (strchr(special, '/')) {
6386 bam_error(_("invalid key for mnttab hash: %s\n"), special);
6390 idx = mhash_fcn(special);
6393 if (strcmp(mcp->mc_special, special) == 0)
6398 BAM_DPRINTF(("%s: no match in cache for: %s\n", fcn, special));
6404 BAM_DPRINTF(("%s: *MATCH* in cache for: %s\n", fcn, special));
7787 bam_error(_("cannot get special file: NULL mount-point\n"));
7809 BAM_DPRINTF(("%s: Cannot get special file: mount-point %s "
7815 BAM_DPRINTF(("%s: returning special: %s\n", fcn, mp.mnt_special));
7840 zfs_get_physical(char *special, char ***physarray, int *n)
7854 assert(special);
7856 BAM_DPRINTF(("%s: entered. arg: %s\n", fcn, special));
7858 INJECT_ERROR1("INVALID_ZFS_SPECIAL", special = "/foo");
7859 if (special[0] == '/') {
7861 special);
7865 (void) strlcpy(sdup, special, sizeof (sdup));
7870 bam_error(_("cannot derive ZFS pool from special: %s\n"),
7871 special);
8061 ufs_get_physical(char *special, char ***physarray, int *n)
8078 assert(special);
8080 BAM_DPRINTF(("%s: entered. arg: %s\n", fcn, special));
8082 if (strncmp(special, "/dev/md/", strlen("/dev/md/")) != 0) {
8084 "device\n"), special);
8088 if (strncmp(special, "/dev/md/dsk/", strlen("/dev/md/dsk/")) == 0) {
8089 shortname = special + strlen("/dev/md/dsk/");
8090 } else if (strncmp(special, "/dev/md/rdsk/",
8092 shortname = special + strlen("/dev/md/rdsk");
8095 "physical device\n"), special);
8099 BAM_DPRINTF(("%s: short SVM name for special=%s is %s\n",
8100 fcn, special, shortname));
8204 char *special;
8217 /* First get the device special file from /etc/mnttab */
8218 special = get_special(menu_root);
8219 INJECT_ERROR1("GET_PHYSICAL_SPECIAL", special = NULL);
8220 if (special == NULL) {
8221 bam_error(_("cannot get special file for mount-point: %s\n"),
8227 if (strncmp(special, "/dev/dsk/", strlen("/dev/dsk/")) == 0 ||
8228 strncmp(special, "/dev/rdsk/", strlen("/dev/rdsk/")) == 0) {
8230 "menu_root=%s special=%s\n", fcn, menu_root, special));
8233 (*physarray)[0] = special;
8239 ret = zfs_get_physical(special, physarray, n);
8241 ret = ufs_get_physical(special, physarray, n);
8244 "unsupported filesystem\n"), menu_root, special);
8248 free(special);
8325 bam_error(_("cannot get physical device special file for menu "
8748 bam_error(_("failed to get special file for osroot: %s\n"),
8757 bam_error(_("failed to get special file for menu_root: %s\n"),
9077 bam_error(_("failed to find device special file for \"/\". "
9713 bam_error(_("cannot determine device special file for "