This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: Cygwin df -l option has wrong sense?


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/


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