[PATCH 09/11] mount.cc: Implement poor-man's cache
Corinna Vinschen
corinna-cygwin@cygwin.com
Thu Feb 4 19:37:59 GMT 2021
On Feb 3 12:38, Ben wrote:
>
>
> On 18-01-2021 12:51, Corinna Vinschen via Cygwin-patches wrote:
> > Ok, so hash_prefix reduces the path to a drive letter or the UNC path
> > prefix and hashes it. However, what about partitions mounted to a
> > subdir of, say, drive C? In that case the hashing goes awry, because
> > you're comparing with the hash of drive C while the path is actually
> > pointing to another partition.
> >
> How can I mount a partition as a subdir of drive C?
> For some reason I can't:
> $ mount /cygdrive/e/Temp/dummy /cygdrive/c/Temp/dummy/dummyone
> mount: /cygdrive/c/Temp/dummy/dummyone: Invalid argument
I wasn't talking about Cygwin mount points, but rather about Windows
mount points. Since Windows 2000 a partition can be mounted into a
directory of another partition. Only drive C: (ignoring non-harddisks)
has to be mounted with a drive letter, all others can be mounted just as
on Unix.
But, yeah, Cygwin also supports bind mounts. Here's an example
from my /etc/fstab.d user mount file:
//remote/cygwin-src /cygwin nfs binary 0 0
/cygwin/pub /home/pub nfs bind 0 0
Corinna
More information about the Cygwin-patches
mailing list