preventing a dual-mount of an NFS file system

Mark Bucciarelli mark at gaiahost.coop
Fri Jul 22 20:17:26 GMT 2005


On Fri, Jul 22, 2005 at 04:59:56PM -0300, Marc G. Fournier wrote:
> 
> Just curious if there is an option that can be set (I've checked the man 
> page, and didn't find one) that would prevent a file system from being 
> mounted twise on the same mount point?
> 
> For instance, I have /du defined in my /etc/fstab, and want to prevent:
> 
> mount /du
> mount /du
> 
> from working ... the first should, but the second should fail ...

replace the mount binary with a shell script? 



More information about the freebsd-questions mailing list