delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/30/23:57:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Date: Fri, 1 Oct 2004 13:57:10 +1000 (EST)
From: luke DOT kendall AT cisra DOT canon DOT com DOT au
Subject: Re: Cygwin df -l option has wrong sense?
To: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.61.0409300947010.14979@slinky.cs.nyu.edu>
MIME-Version: 1.0
Message-Id: <20041001035711.37A3684C99@pessard.research.canon.com.au>

On 30 Sep, Igor Pechtchanski wrote:
>  This is a problem with how fileutils tests for drives being local.  And, 
>  it has been reported before (with a patch to fix it) -- see the thread 
>  starting at <http://cygwin.com/ml/cygwin/2002-09/msg00945.html>. 
>  	Igor 

-# ifdef __CYGWIN__
-# define ME_REMOTE(fs_name, fs_type) (strchr (fs_name, ':') == 0)
-# else
 # define ME_REMOTE(fs_name, fs_type) (strchr (fs_name, ':') != 0)
-# endif

Under Unix, does the "host:/path" syntax apply to every network
filesystem type (Andrew, Coda, etc.), or just to NFS?

Certainly ":" is reserved in Windows for use only with drive letters.
Is fs_name (above) always what appears in the left column for df?

But what about mapped drives, then?  They often appear as U:/whatever.
E.g. below, only c: and d: are local drives.  Not to mention drive
letter mappings set up with the "subst" command.

$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
C:\cygwin\usr\X11R6\lib\X11\fonts
                      39070048  32015136   7054912  82% /usr/X11R6/lib/X11/fonts
C:\cygwin\bin         39070048  32015136   7054912  82% /usr/bin
C:\cygwin\lib         39070048  32015136   7054912  82% /usr/lib
C:\cygwin             39070048  32015136   7054912  82% /
d:\home               25165816   9080016  16085800  37% /home
c:                    39070048  32015136   7054912  82% /cygdrive/c
d:                    25165816   9080016  16085800  37% /cygdrive/d
l:                    27141816   2526576  24615240  10% /cygdrive/l
p:                    59046872  18911016  40135856  33% /cygdrive/p
u:                    17765376   5405696  12359680  31% /cygdrive/u
w:                   191254528  86339584 104914944  46% /cygdrive/w
x:                     4811432   2402196   2409236  50% /cygdrive/x
y:                    95379456  94943232    436224 100% /cygdrive/y
z:                    13526696  11025336   2501360  82% /cygdrive/z

I would have thought it should really be looking at the filesystem type,
not the syntax of the mount point.  And I hereby confess that I don't
actually know the system call used to determine the filesystem type.

>  P.S. The mount type fix is still on my TODO list :-( 

Aren't TODO lists wonderful?  :-)

luke


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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