https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6363caef2d7a293dd3b95675b537877e16c8fcd0
commit 6363caef2d7a293dd3b95675b537877e16c8fcd0 Author: Corinna Vinschen <cori...@vinschen.de> AuthorDate: Fri Feb 14 12:24:03 2025 +0100 Commit: Corinna Vinschen <cori...@vinschen.de> CommitDate: Fri Feb 14 12:24:03 2025 +0100 Cygwin: pathnames.xml: explain dir mounts since 3.6.0 Signed-off-by: Corinna Vinschen <cori...@vinschen.de> Diff: --- winsup/doc/pathnames.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/winsup/doc/pathnames.xml b/winsup/doc/pathnames.xml index f0b5a19632cf..83aca953b707 100644 --- a/winsup/doc/pathnames.xml +++ b/winsup/doc/pathnames.xml @@ -252,6 +252,26 @@ arguments:</para> </screen> </example> +<para>Starting with Cygwin 3.6.0, the <function>getmntent(3)</function> +function exposes Windows mount points of partitions mounted into a directory +of another drive as if they are cygdrive mounts. This affects the content +of <filename>/proc/mounts</filename> as well as the output of +<command>mount</command>.</para> + +<para>For instance, consider you have two local disks, one containing the +<filename>C:</filename> drive, the other disk has one partition mounted +into <filename>C:\docs</filename>. The output from mount will now show this +mount point like this:</para> + +<example id="pathnames-mount-dir"> +<title>Displaying Windows mount points as cygdrives</title> +<screen> + <prompt>bash$</prompt> <userinput>mount | grep cygdrive</userinput> + C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) + C:/docs on /cygdrive/c/docs type ntfs (binary,posix=0,user,noumount,auto) +</screen> +</example> + <para>You can also use the <command>mount</command> command to add new mount points, and the <command>umount</command> to delete them. However, since they are only stored in memory, these mount