linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [patch 0/2] Control filesystem balances (kernel side)
@ 2010-11-08 18:01 Mike Fedyk
  0 siblings, 0 replies; 6+ messages in thread
From: Mike Fedyk @ 2010-11-08 18:01 UTC (permalink / raw)
  To: linux-btrfs

[ sorry for breaking the thread, I'm replying from the archives, I was
unsubbed after a mail server issue and didn't notice till now... ]

On Sat, Oct 30, 2010 at 07:44:35PM +0200, Goffredo Baroncelli wrote:
> >                              balance	-> info on balancing

Hugo Mills wrote:
> For the one-value-per-file rule of sysfs, this should probably be
> balance_expected and balance_completed, each holding a count of block
> groups.

I'd name it balance_chunks_expected and balance_chunks_completed

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [patch 0/2] Control filesystem balances (kernel side)
@ 2010-10-30  0:07 Hugo Mills
  2010-10-30 17:44 ` Goffredo Baroncelli
  0 siblings, 1 reply; 6+ messages in thread
From: Hugo Mills @ 2010-10-30  0:07 UTC (permalink / raw)
  To: linux-btrfs

   These two patches give a degree of control over balance operations.
The first makes it possible to get an idea of how much work remains to
do, by tracking the number of block groups (chunks) that need to be
moved/rewritten. The second patch allows a running balance operation
to be cancelled when the current block group has been moved.

   One fundamental question, though -- is the progress monitor
function best implemented as an ioctl, as I've done here, or should it
be two or three sysfs files? I'm thinking of /proc/mdstat...
Obviously, /proc/mdstat would never get into /sys, but exposing the
"expected" and "remaining" values as files has an attractive
simplicity to it.

   The user-space side of things are in a separate patch series, to
follow.

   Please be gentle with me, this is my first (serious, non-trivial)
kernel patch. :)

   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
   --- "No!  My collection of rare, incurable diseases! Violated!" ---   


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

end of thread, other threads:[~2010-11-08 18:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-08 18:01 [patch 0/2] Control filesystem balances (kernel side) Mike Fedyk
  -- strict thread matches above, loose matches on Subject: below --
2010-10-30  0:07 Hugo Mills
2010-10-30 17:44 ` Goffredo Baroncelli
2010-11-01 12:58   ` Xavier Nicollet
2010-11-01 12:52     ` Tomasz Torcz
2010-11-01 13:05   ` 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).