delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/21/12:46:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sat, 21 Sep 2002 12:46:13 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: df --local
In-Reply-To: <1719696832.20020921173150@logos-m.ru>
Message-ID: <Pine.GSO.4.44.0209211238040.15469-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

Egor,

On Sat, 21 Sep 2002, egor duda wrote:

> Hi!
>
> Friday, 20 September, 2002 Rob Brown rob AT mp3 DOT com wrote:
>
> RB> OK, that will *mostly* work except for the cdrom drive issue.
>
> The proper way is to convert path to win32 form and then use
> GetDriveType() and GetVolumeInformation() APIs.

This is related to the question I asked on the cygwin-developers list (
http://www.cygwin.com/ml/cygwin-developers/2002-09/msg00078.html ).  Maybe
people can discuss it here...

Basically, Cygwin's getmntent() returns either "user" or "system" as the
fstype, whereas on other systems (Linux, etc) the fstype is the type of
the filesystem (cdrom, nfs, local, etc).  I was proposing a change to make
the user/system distinction part of mnt_opts, and set the type field to
whatever's returned by GetVolumeInformation().  This method is called in
path.cc anyway, to distinguish Samba filesystems...
	Igor

> RB> -----Original Message-----
> RB> From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu]
> RB> Sent: Friday, September 20, 2002 10:29 AM
> RB> To: Rob Brown
> RB> Cc: cygwin AT cygwin DOT com
> RB> Subject: RE: df --local
>
> RB> Well, as I said before, unless you have invalid local mounts (i.e.,
> RB> without the drive name), all your local mounts will have a ":" as part of
> RB> the name.
> RB>         Igor
>
> RB> On Fri, 20 Sep 2002, Rob Brown wrote:
>
> >> Yea, except that I wanted this script to run on a bunch of machines, all
> >> with different drive letters and configurations.
> >> Is there no other way for cygwin to know whether a drive is local or not?
>
> Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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