On Thu, Oct 25, 2012 at 2:36 PM, Chris Murphy <li...@colorremedies.com> wrote:
> My suggestion is that by default a summary similar to the existing df command 
> be mimicked, where it makes sense, for btrfs fi df.
>
>  - I like the Capacity %. If there is a reliable equivalent, it need not be 
> inode based, that would be great.
>
> -  I care far less about the actual physical device information, more about 
> the btrfs volume(s) as a whole. How big is the volume, how much of that is 
> used, and how much is available?
>
> I understand the challenges behind estimating the amount available. So if the 
> value for available/free is precided by a ~ in each case, or as a heading 
> "~Avail" or "~Free" I'd be OK with that disclaimer.
>
> I think the examples so far are reporting too much information and it's 
> difficult to get just what I want.

Plain old "/bin/df" is adequate for that though, and in the mean time
one _does_ need _all_ of that information to work with the filesystem.
 However, the detailed breakdown is vital to answer many questions:

"Why can't I write to my filesystem with 80gb free?  <btrfs fi df>
Oh, because metadata is raid1 and the one disk is 80gb smaller than
the other."

"How much data is on this disk that started giving SMART errors?"

"How many GB of vm image files (or other large files) can I probably
fit on this fs?"

"How many GB of mail (or other tiny files) can I probably fit on this fs?"

"Is there enough space to remove this disk from the fs, and how much
free space will I have then?"

And the all-important "Could you please run btrfs fi df and pastebin
the output so we can tell what the hell is going on?" :)
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to