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.) -- 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
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? 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.)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 http://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
> 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 -- 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
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'' oneOn 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. ---