added support for "kernfs" and "fdesc" to -fstype
This commit is contained in:
parent
78d4b77108
commit
052917b9b6
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue