Skip to content

Control filesystem balances (kernel side)

Hugo Mills linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Balance progress monitoring.fs/btrfs/ctree.h fs/btrfs/disk-io.c fs/btrfs/ioctl.c +2 more+105 -25 replies
2/2Cancel filesystem balance.fs/btrfs/ctree.h fs/btrfs/ioctl.c fs/btrfs/ioctl.h +1 more+33 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/2] Control filesystem balances (kernel side)

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.

Signature · 3 lines
=== 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!" ---