added support for "kernfs" and "fdesc" to -fstype

This commit is contained in:
cgd 1993-03-24 22:56:32 +00:00
parent 78d4b77108
commit 052917b9b6
2 changed files with 21 additions and 1 deletions

View File

@ -146,7 +146,7 @@ was executed.
True if the file is contained in a file system of type
.Ar type .
Currently supported types are ``local'', ``mfs'', ``nfs'', ``msdos'', ``isofs'',
``rdonly'' and ``ufs''.
``fdesc'', ``kernfs'', ``rdonly'' and ``ufs''.
The types ``local'' and ``rdonly'' are not specific file system types.
The former matches any file system physically mounted on the system where
the

View File

@ -369,12 +369,32 @@ c_fstype(arg)
new = palloc(N_FSTYPE, f_fstype);
switch(*arg) {
case 'f':
if (!strcmp(arg, "fdesc")) {
#ifdef MOUNT_FDESC
new->flags = MOUNT_FDESC;
return(new);
#else
err("unknown file type %s", arg);
#endif
}
break;
case 'i':
if (!strcmp(arg, "isofs")) {
new->flags = MOUNT_ISOFS;
return(new);
}
break;
case 'k':
if (!strcmp(arg, "kernfs")) {
#ifdef MOUNT_KERNFS
new->flags = MOUNT_KERNFS;
return(new);
#else
err("unknown file type %s", arg);
#endif
}
break;
case 'l':
if (!strcmp(arg, "local")) {
new->flags = MOUNT_NONE;