"Lazy" bind mounts?

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Dec 1 09:18:16 GMT 2023


On Nov 30 04:53, Martin Wege via Cygwin wrote:
> Hello,
> 
> if I do a mount -o bind //foo/bar/baz /mnt the UNC path //foo/bar/baz
> is evaluated immediately, i.e. the network share //foo/bar/baz is
> "mounted" immediately.
> 
> Is it possible to mount //foo/bar/baz only the first time someone does
> a cd /mnt, sort of automounter-style "lazy" mount-on-demand?

No, what would that be good for?

Cygwin mounting is not real mounting, that's what the OS is doing.

Therefore, Cygwin mounts are "soft" mounts anyway.  They are only used
during path evaluation, and only if the path starts with a matching
string.


Corinna


More information about the Cygwin mailing list