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 Message-ID: <002201c17e75$4af6db90$0200000a@dyn.ik.ca> From: "Gerald Villemure" To: "Kim, Anthony" , References: <20011206155247 DOT GC8981 AT nabokov DOT afc DOT vw DOT com> Subject: Re: Windows 2000 Junction Points Date: Thu, 6 Dec 2001 17:44:36 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 There is a tool in the Win2K ResKit called "linkd.exe" which will alow you to create "Junction Points" from the command line. Hope this helps, Gerald ----- Original Message ----- From: "Kim, Anthony" To: Sent: Thursday, December 06, 2001 4:52 PM Subject: Windows 2000 Junction Points > 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/ > > -- 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/