#780 NFS: path of new share

open
nobody
5
2012-10-28
2010-06-03
Jean-Claude Ben
No

Hi

When you add a new share to a directory which is not a file system mount point you get this error :
All dirs requires mounted path, but Path /mnt/TEST/XXXXXXX is not mounted.
(in this case /mnt/TEST is the mount point of the disk)

This check shouldn't be as it is permitted to share each directory individualy (to add ip restrictions).

/etc/exports example :

blaster:/mnt/TEST# cat /etc/exports
/mnt/TEST/share -alldirs -mapall=root -network 1.2.3.0 -mask 255.255.255.0
/mnt/TEST/user1 -alldirs -mapall=root -network 1.2.3.1 -mask 255.255.255.255
/mnt/TEST/user2 -alldirs -mapall=root -network 1.2.3.2 -mask 255.255.255.255

Discussion

  • Daisuke Aoyama
    Daisuke Aoyama
    2010-06-10

    Hi,

    You cannot the way that you wrote.
    If the mount point is /mnt/TEST, you must:

    /mnt/TEST -alldirs -mapall=root -network 1.2.3.0 -mask 255.255.255.0
    /mnt/TEST -alldirs -mapall=root -network 1.2.3.1 -mask 255.255.255.255
    /mnt/TEST -alldirs -mapall=root -network 1.2.3.2 -mask 255.255.255.255

    Sorry, I don't know this is valid for FreeNAS.
    Yes, FreeNAS's WebGUI is very stupid.

    Note:
    "/mnt/TEST/share -alldirs" is useless.
    "alldirs" affects all of the mountpoint's directories (includes "share").

    Regards,
    Daisuke Aoyama