X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Wed, 26 Dec 2001 21:54:43 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: dj AT delorie DOT com Message-Id: <5832-Wed26Dec2001215442+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp-workers AT delorie DOT com In-reply-to: <200112261817.fBQIHS616611@envy.delorie.com> (message from DJ Delorie on Wed, 26 Dec 2001 13:17:28 -0500) Subject: Re: lfn from scratch... References: <200112261518 DOT fBQFIGZ15433 AT envy DOT delorie DOT com> <3995-Wed26Dec2001192507+0200-eliz AT is DOT elta DOT co DOT il> <200112261817 DOT fBQIHS616611 AT envy DOT delorie DOT com> 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 Precedence: bulk > Date: Wed, 26 Dec 2001 13:17:28 -0500 > From: DJ Delorie > > The first drive checked is *always* the non-lfn one, because I can't > change to that drive before starting bash (or other djgpp programs). > So I can't even say "well, start with the lfn one and just never use > the others, and we'll get by." Why do you have to change to a drive at all? You are mapping a Unix-style filesystem into DOS drive letters, right? So all you should need is some data structure that maps the root of each drive to a Unix directory, and something that says what is the current drive. How does changing drives enter this picture? > So it seems that for the non-lfn drives, I need to emulate the lfn > api, at least in a dumb way (by calling the non-lfn api in its place). That would be the best strategy, I think. NTLFN does that, and it works well.