delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/09/30/03:34:42

Date: Sun, 30 Sep 2001 09:32:44 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: sandmann AT clio DOT rice DOT edu
Message-Id: <9003-Sun30Sep2001093244+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com
In-reply-to: <10109300445.AA12377@clio.rice.edu> (sandmann@clio.rice.edu)
Subject: Re: mntent problem summary on Win2K/XP
References: <10109300445 DOT AA12377 AT clio DOT rice DOT edu>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
> Date: Sat, 29 Sep 2001 23:45:57 -0500 (CDT)
> 
> findfirst does not find volume labels.  It returns all files (but not
> volume labels...).  Checking the returned attributes and ignoring it
> if the label bit is not set is probably the best fix here (then we
> show "Drive X:" syntax.  This fix is probably best done in findfirst.

I don't think you can do that in findfirst: returning a failure on the
first file it returns is not right, since W2K returns all files; and
looping until you exhaust all files, looking for a real label, is also
something we don't want, I think.

I'd say let's not look for volume labels at all if DOS version is
0x532 and LFN is ON.  I.e. let's make a local change in getmntent.

> My CDROM drive is mounted and ready but it does not show up at all
> (not debugged yet).

The CD-specific calls in cdrom_drive_ready probably don't work as
expected...

> Drives > 26 (which is also cds_drives) succeed in truename for some
> unknown reason.  I just disabled returns for drives > cds_drives if
> version = 0x532 and I get a more normal display.  

A good move, I think.

- Raw text -


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