delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/04/20/02:17:53

Message-ID: <003101c30704$8dbb1ea0$0100a8c0@acp42g>
From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
To: "Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk>
Cc: <djgpp-workers AT delorie DOT com>
References: <E196rAk-0007Mp-00 AT phekda DOT freeserve DOT co DOT uk>
Subject: Re: fstat, fd_props and inventing inodes, revision 3 [PATCH]
Date: Sun, 20 Apr 2003 16:17:42 +1000
MIME-Version: 1.0
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    <DIR>          .
01/01/2003  08:54 PM    <DIR>          ..
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)

Andrew


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019