help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: df: cannot read table of mounted filesystems


From: Kenneth Stailey
Subject: Re: df: cannot read table of mounted filesystems
Date: Thu, 11 Apr 2002 06:47:06 -0700 (PDT)

/etc/mtab is bad because read-only filesystem and full filesystem etc cannot
generate or update it.  *BSD got rid of it a while ago for getmntinfo(3) API. 
Should HURD adopt this API?

--- Kenneth Stailey <kstailey@yahoo.com> wrote:
> 
> $ cat /bin/mydf 
> #! /bin/sh
> 
> mount | awk '{print $3}' | xargs df $*
> 
> Works for me except for the stupid warning message.
> 
> When in doubt: script
> 
> --- Kenneth Stailey <kstailey@yahoo.com> wrote:
> > 
> > --- Oystein Viggen <oysteivi@tihlde.org> wrote:
> > > * [Jan 'JaSan' Sarenik] 
> > > 
> > > >   # df
> > > >   df: cannot read table of mounted filesystems
> > > 
> > > With the Hurd, it is difficult to maintain an /etc/mtab (the table of
> > > all mounted filesystems), so we don't.
> > 
> > Very odd.  IIRC typing "mount" does show mounted filesystems so something
> is
> > keeping track of them, right?  Should df be patched to access whatever
> > mount(8)
> > (which I'm guessing is really showtrans) is acessing?
> > 
> > > Use "df ." to chech free space on the filesystem containing the current
> > > directory, and, for example, "df /home" to check free space on /home.
> > > 
> > > Oystein
> > > -- 
> > > When in doubt: Think again.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> _______________________________________________
> Help-hurd mailing list
> Help-hurd@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-hurd



__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]