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 Thu, 30 Sep 2004, luke.kendall wrote:

> According to df --help, the -l option means to list only local drives.
> But in practice it seems to do the exact opposite:
>
>     $ df -k /cygdrive/c/cygwin
>     Filesystem           1k-blocks      Used Available Use% Mounted on
>     C:\cygwin             39070048  32015012   7055036  82% /
>
>     $ df -k -l /cygdrive/c/cygwin
>     Filesystem           1k-blocks      Used Available Use% Mounted on
>
>     $ df -k //handel/d
>     Filesystem           1k-blocks      Used Available Use% Mounted on
>     x:                     4811432   2402244   2409188  50% /cygdrive/x
>
>     $ df --help
>     Usage: df [OPTION]... [FILE]...
>     Show information about the filesystem on which each FILE resides,
>     or all filesystems by default.
>     [...]
>       -l, --local           limit listing to local filesystems
>     [...]
>     Report bugs to <bug-fileutils@gnu.org>.
>
>     $ uname -a
>     CYGWIN_NT-5.1 DOYLE 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin
>
> Have I misunderstood?
> luke

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
P.S. The mount type fix is still on my TODO list :-(
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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]