linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs filesystem df command oddly named?
@ 2012-01-27  1:11 Wes
  2012-01-27  1:52 ` Chester
  0 siblings, 1 reply; 4+ messages in thread
From: Wes @ 2012-01-27  1:11 UTC (permalink / raw)
  To: linux-btrfs

Just wondering,

Why is this command called 'df' when it reports total space and used
space but not free space?  Wouldn't this be more aptly named 'btrfs
filesystem du'  ?
It's been my understanding that traditionally 'df' has been to display
free space remaining (as well as total available and used, but with
the focus being on free space.  The 'df' man page indicates this as
well.)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: btrfs filesystem df command oddly named?
  2012-01-27  1:11 btrfs filesystem df command oddly named? Wes
@ 2012-01-27  1:52 ` Chester
  2012-01-27  2:06   ` Wes
  0 siblings, 1 reply; 4+ messages in thread
From: Chester @ 2012-01-27  1:52 UTC (permalink / raw)
  To: Wes; +Cc: linux-btrfs

On Thu, Jan 26, 2012 at 7:11 PM, Wes <anomaly256@gmail.com> wrote:
> Just wondering,
>
> Why is this command called 'df' when it reports total space and used
> space but not free space? =A0Wouldn't this be more aptly named 'btrfs
> filesystem du' =A0?
> It's been my understanding that traditionally 'df' has been to displa=
y
> free space remaining (as well as total available and used, but with
> the focus being on free space. =A0The 'df' man page indicates this as
> well.)
I don't know much of what goes on inside BtrFS, but I like to point
out that btrfs fi df doesn't actually report total space on the disk,
only the total space currently allocated.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs=
" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: btrfs filesystem df command oddly named?
  2012-01-27  1:52 ` Chester
@ 2012-01-27  2:06   ` Wes
  2012-01-27  7:03     ` Hugo Mills
  0 siblings, 1 reply; 4+ messages in thread
From: Wes @ 2012-01-27  2:06 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Chester

> I don't know much of what goes on inside BtrFS, but I like to point
> out that btrfs fi df doesn't actually report total space on the disk,
> only the total space currently allocated.


Good point, and this also supports the notion that it's more of a 'du'
work-alike than a 'df' one

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: btrfs filesystem df command oddly named?
  2012-01-27  2:06   ` Wes
@ 2012-01-27  7:03     ` Hugo Mills
  0 siblings, 0 replies; 4+ messages in thread
From: Hugo Mills @ 2012-01-27  7:03 UTC (permalink / raw)
  To: Wes; +Cc: linux-btrfs, Chester

[-- Attachment #1: Type: text/plain, Size: 900 bytes --]

On Fri, Jan 27, 2012 at 01:06:38PM +1100, Wes wrote:
> > I don't know much of what goes on inside BtrFS, but I like to point
> > out that btrfs fi df doesn't actually report total space on the disk,
> > only the total space currently allocated.
> 
> 
> Good point, and this also supports the notion that it's more of a 'du'
> work-alike than a 'df' one

   On the other hand, "df" reports global figures, whereas "du"
reports values for a file or set of files. "btrfs fi df" also reports
(one set of) global figures, and a hypothetical "btrfs fi du" (which
will probably surface once Arne finishes the qgroups stuff) will
report on subvolumes and/or sets of files.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
      --- UNIX: British manufacturer of modular shelving units. ---      

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-27  7:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27  1:11 btrfs filesystem df command oddly named? Wes
2012-01-27  1:52 ` Chester
2012-01-27  2:06   ` Wes
2012-01-27  7:03     ` Hugo Mills

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).