Mail Archives: djgpp-workers/2003/04/20/02:47:20
> > 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)
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
- Raw text -