Lines Matching refs:devstr
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
440 if (stat(devstr, &statb) < 0) { in check_mount_state()
442 errexit("fsck: could not stat %s: %s", devstr, strerror(errno)); in check_mount_state()
451 if ((mountedfs = mounted(devstr, devstr, str_size)) != M_NOMNT) { in check_mount_state()
462 devstr, mountedfs == M_RW ? " READ/WRITE" : ""); in check_mount_state()
466 devstr, mountedfs == M_RW ? "WRITE" : in check_mount_state()
475 (void) strlcpy(devstr, rawname(devstr), str_size); in check_mount_state()
483 open_and_intro(caddr_t devstr, int corefs) in open_and_intro() argument
487 if ((fsreadfd = open64(devstr, O_RDONLY)) < 0) { in open_and_intro()
488 (void) printf("Can't open %s: %s\n", devstr, strerror(errno)); in open_and_intro()
494 (void) printf("** %s", devstr); in open_and_intro()
503 if (nflag || roflag || (fswritefd = open64(devstr, O_WRONLY)) < 0) { in open_and_intro()
514 (void) printf("** %s", devstr); in open_and_intro()
531 find_superblock(caddr_t devstr) in find_superblock() argument
559 if (!calcsb(style, devstr, fsreadfd, &proto)) { in find_superblock()
612 calcsb(style, devstr, fsreadfd, &sblock)) { in find_superblock()
668 bflag, devstr); in find_superblock()
929 static char devstr[MAXPATHLEN + 1]; in setup() local
932 devname = devstr; in setup()
934 derive_devstr(dev, devstr, sizeof (devstr)); in setup()
935 errorlocked = is_errorlocked(devstr); in setup()
936 corefs = check_mount_state(devstr, sizeof (devstr)); in setup()
940 if (open_and_intro(devstr, corefs) == -1) in setup()
943 if (mflag && mounted(devstr, devstr, in setup()
944 sizeof (devstr)) == M_RW) in setup()
945 return (devstr); in setup()
950 if (!logsetup(devstr)) in setup()
960 if (find_superblock(devstr) == -1) in setup()
1000 return (devstr); in setup()