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

Re: Why df does not work



Marcus Sez:
> Sha. That's the thing. There is no mount syscall.
> 
> Mounted filesystems are merely translators attached to the file namespace.

More to the point, perhaps, what good would it be to have a df
command?  For Unix, there is a 1-1 mapping between nodes in the
file system and disk partitions.  You use df to tell you how full the
disk partion which holds a file system is.  With the Hurd there
is no such simple mapping.  A node in the file system may correspond
to no disk space at all ever.  Asking what the df line for this
file would be would be like asking what the df line for the /proc
file system would be for Linux.

Perhaps the protocol for translators could be extended with an operation
which delivered how much resource was possible and how much was available.
The interpretation of the resource would be up to the df program itself.
For the ext2 file system it would be space.  For an ethernet interface,
it might be channel capacity.



Reply to: