Message-ID: <000a01c30708$aacbc680$0100a8c0@acp42g> From: "Andrew Cottrell" To: "Richard Dawe" Cc: References: <003101c30704$8dbb1ea0$0100a8c0 AT acp42g> Subject: Re: fstat, fd_props and inventing inodes, revision 3 [PATCH] Date: Sun, 20 Apr 2003 16:47:09 +1000 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.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Reply-To: djgpp-workers AT delorie DOT com > > Here's revision 3 of the patch to fstat, to make it use the filename > > from fd_props to generate an inode number, when it can't obtain the inode > > from the SFT. > > The following is from an email that Richard sent me a few days ago: > > If you have time, please test it out. The main difference over the > previous > > patch is that it should cope with UNC path names. E.g.: > > > > fstat("x:/foo", ...) > > fstat("\\machine\share\foo", ...) > > > > should return the same results, when \\machine\share is mapped to x:. > > > I have applied the patch to my djgpp directory and I thought I would try out > "ls" and comapre it against dir to see if the UNC code worked. I did find > some discrepancies as indicated below. Are the results below expected or > not? > > DJ204 D:\dj204\gnu\filutil4.1\src>dir \\ac-p42g\ghost > Volume in drive \\ac-p42g\ghost has no label. > Volume Serial Number is 3E10-A62B > > Directory of \\ac-p42g\ghost > > 01/01/2003 08:54 PM . > 01/01/2003 08:54 PM .. > 06/01/2003 09:32 PM 2,147,465,827 C_06JAN2.GHO > 03/01/2003 05:27 PM 2,147,461,465 C_DRIVE_.GHO > 03/01/2003 05:27 PM 642,021,517 C_DRI001.GHS > 06/01/2003 09:32 PM 404,498,931 C_06J001.GHS > 4 File(s) 5,341,447,740 bytes > 2 Dir(s) 1,550,123,008 bytes free > > DJ204 D:\dj204\gnu\filutil4.1\src>ls \\ac-p42g\ghost > ls: //ac-p42g/ghost: No such file or directory (ENOENT) Some more info that may help is that the test in getshare.c partially (or is it fully) working. Only available drive mappings are shown, unavailable mappings are not shown. For example the following show this:- D:\dj204>net use New connections will be remembered. Status Local Remote Network ---------------------------------------------------------------------------- --- OK Y: \\Ac-p42g\GHOST Microsoft Windows Network Unavailable Z: \\Celleron800\C_DRIVE Microsoft Windows Network The command completed successfully. D:\dj204\test>test Drive mapping test:- Y -> \\Ac-p42g\GHOST Andrew