Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 6 Dec 2001 09:52:47 -0600 From: "Kim, Anthony" To: cygwin AT cygwin DOT com Subject: Windows 2000 Junction Points Message-ID: <20011206155247.GC8981@nabokov.afc.vw.com> Mail-Followup-To: cygwin AT cygwin DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23.2i Windows 2000 (having NTFS 5.0) allows the creation of directory symbolic links. This can be used as mount points for hard drive volumes or to symlink directories across file systems. In the literature, the directory links are called "junction points". Disk Administration snap-in can be used to mount a drive to a directory or you can use linkd.exe (ResKit) or junction.exe (SysInternals). This is the closest thing I can find to simulate: ln -s /source /destination Now here's my question: When you perform a directory symlink in cygwin, you end up with a .LNK file even though you can cd into the link. $ pwd /mnt $ ln -s /cygdrive/c /mnt/test $ ls -l total 20 dr-xr-xr-x 6 Administ Administ 0 Dec 6 09:47 ./ dr-xr-xr-x 12 Administ Administ 4096 Nov 28 12:48 ../ dr-xr-xr-x 12 Administ Administ 8192 Dec 6 09:47 c/ dr-xr-xr-x 3 Administ Administ 4096 Dec 3 12:48 d/ dr-xr-xr-x 5 Administ Administ 4096 Dec 3 12:48 e/ drwxr-xr-x 1 vciadmin Administ 0 Dec 4 08:35 h/ lrwxrwxrwx 1 vciadmin Administ 94 Dec 6 09:47 test -> /cygdrive/c/ $ cd test $ ls This works as expected. However, from outside cygwin: $ cmd G:\cygwin\mnt>dir dir Volume in drive G is DATA Volume Serial Number is 98D5-B7E1 Directory of G:\cygwin\mnt 12/06/2001 09:47a . 12/06/2001 09:47a .. 11/28/2001 11:26a c 11/28/2001 11:26a d 11/28/2001 11:27a e 12/04/2001 08:34a h 12/06/2001 09:47a 94 test.lnk So the effect is lost. Because hard links work in cygwin as expected, is it far fetched for ln -s to create actual junction points instead of .LNK files? If I'm way off base here, please feel free to let me know :) Cheers! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/