mount / unmount and mountcheckdirs()

Andriy Gapon avg at FreeBSD.org
Fri Sep 15 11:57:56 UTC 2017


On 15/09/2017 13:08, Edward Napierala wrote:
> It does.  For example:
> 
> [trasz at v2:~]% cd /media/md0
> [trasz at v2:/media/md0]% mount
> /dev/ada0s1a on / (ufs, local, noatime, journaled soft-updates)
> devfs on /dev (devfs, local, multilabel)
> map -hosts on /net (autofs)
> map -media on /media (autofs)

Interesting, I thought that /dev/md0 would get mounted as soon as /media/md0 is
looked up.  But maybe that would be sub-optimal for some common scenarios...
FWIW, ZFS snapshots get auto-mounted under .zfs as soon as there is a lookup.

> [trasz at v2:/media/md0]% ls
> [trasz at v2:/media/md0]% mount
> /dev/ada0s1a on / (ufs, local, noatime, journaled soft-updates)
> devfs on /dev (devfs, local, multilabel)
> map -hosts on /net (autofs)
> map -media on /media (autofs)
> /dev/md0 on /media/md0 (ufs, local, noatime, nosuid, automounted)
> 


-- 
Andriy Gapon


More information about the freebsd-arch mailing list