Lines Matching refs:sfile
889 check_mount(char *sfile, dev_t sfdev, int ufs) in check_mount() argument
909 mesg(MERR, err_fmt, sfile); in check_mount()
938 STRCPYLIM(new_cc.cf_devfs, sfile, "block statefile"); in check_mount()
944 while (*(sfile + 1) == '/') sfile++; in check_mount()
945 src = sfile + strlen(ent.mnt_mountp); in check_mount()
952 mesg(MERR, err_fmt, sfile); in check_mount()
1067 is_good_slice(char *sfile, char **err) in is_good_slice() argument
1077 STRCPYLIM(rdskname, sfile, "disk name"); in is_good_slice()
1079 y = strstr(sfile, "dsk/"); in is_good_slice()
1115 char *sfile, *sp, ch; in sfpath() local
1134 sfile = LINEARG(1); in sfpath()
1135 if (*sfile != '/') { in sfpath()
1139 for (sp = sfile + strlen(sfile) - 1; sp > sfile && *sp == '/'; sp--) in sfpath()
1145 if (stat(sfile, &stbuf) == -1) { in sfpath()
1148 if ((sp = strrchr(sfile, '/')) == sfile) in sfpath()
1152 if (stat(sfile, &stbuf) == -1) in sfpath()
1158 mesg(MERR, err_fmt, sfile, strerror(errno)); in sfpath()
1170 if (is_good_slice(sfile, &err_fmt)) { in sfpath()
1171 switch (ztop(sfile, diskname)) { in sfpath()
1188 mesg(MERR, err_fmt, sfile); in sfpath()
1191 if (check_mount(sfile, dev, (new_cc.cf_type == CFT_UFS))) in sfpath()