This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cygdrive Path Prefix Patch Issue


Chris Faylor wrote:
> On Tue, Jun 13, 2000 at 05:23:13PM -0400, DJ Delorie wrote:
> >
> >> I think this is the best solution, actually.  It could return a flag
> >> indicating that this was a "cygdrive prefix" mount.  I don't know
> >> why this would screw up anything.
> >
> >I was thinking of "df".
> 
> Good point.  It's worth looking at the df sources to see if this would
> cause a problem

I looked into the df source -- specifically read_filesystem_list() in
fileutils/lib/mountlist.c.  The current implementation would attempt
to interpret the cygdrive prefixes as ordinary file systems.

> and if there is a way to work around it.

I can add Cygwin specific code to ignore the cygdrive prefixes.  But,
I'm concerned that all other code that uses getmntent() would need a
similar change.

DJ Delorie wrote:
> Could getmntent be extended to return, as one of the entries, the
> automount path?

Implementing the above is certainly doable but will be fairly ugly.

Do we really want to go with this approach?  If the consensus is yes,
then I will do so.  Are there any other, hopefully better, alternatives
before I dive in?

Thanks,
Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]