|
Description
|
BrandZ fails to pass along many NFS flags when translating arguments between
Linux and their Solaris equivalents.
At present, only the linux NFS flags for INTR, NOAC, TCP and NFSV3 are supported.
We should also support the flags:
SOFT
SECURE
POSIX
NOCTO
KERBEROS
In addition, we should return EINVAL or ENOTSUP when flags we don't support (e.g.
BROKEN_SUID) are supplied; currently unknown flags are silently ignored.
looking at all the nfs flags, i think it'd be pretty safe to add
support for:
SOFT
NOAC
NONLM
NOCTO
POSIX
these are essentially boolean flags that seem to have the same
meaning on both solaris and linux.
i don't think we should add in translation for the following
flags since i'm not sure if we support kerberose and i've certainly
never tested it (i'm also not familiar with the use of other
authentication modes for nfs aside from sys):
KERBEROS
SECURE
we already return ENOTSUP for mount options that aren't supported.
---8<---
root@rounders$ mount -o nolock jurassic:/export/svaer/edp /a
mount: Function not implemented
root@rounders$ mount -o posix jurassic:/export/svaer/edp /a
mount: Function not implemented
root@rounders$ mount -o nocto jurassic:/export/svaer/edp /a
mount: Function not implemented
root@rounders$ mount -o soft jurassic:/export/svaer/edp /a
mount: Function not implemented
---8<---
it also turns out that from the options mentioned above we already
support NOAC.
|