Mail Archives: djgpp-workers/2003/01/20/16:37:57
> Date: Mon, 20 Jan 2003 20:45:35 +0000
> From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
>
> I tried to think of reasons why _truename was preferred over _fixpath.
I don't remember; perhaps the archives of this list will help.
> AFAICS
> _truename handles subst'd/assign'd/join'd drives, but _fixpath doesn't. That
> seems like a good reason for keeping _truename and handling UNCs specially.
Yes, I agree.
> How do you think we should handle UNCs?
>
> Should we just ignore UNCs?
>
> Or should we scan through the list of shares that we have mapped, to determine
> the drive letter?
The latter, IMHO. Ignoring is no good, since it will break `fstat'
for remote files.
> (I was assuming that _truename would return the drive letter
> for a UNC with a mapped drive.)
I think `_truename' cannot do that because that would slow it down: to
do the job, you need to loop through 32 possible drives, making a
system call for each one of them.
So perhaps we should only do that lazily, and/or maybe make the st_dev
member be one of the expensive ones which is only computed if a
corresponding bit in `_djstat_flags' is cleared.
- Raw text -