Skip to content

Assorted md patches headed for 2.6.30

NeilBrown linux-raid 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18md: never clear bit from the write-intent bitmap when the array is degraded.drivers/md/bitmap.c+3 -00 replies
2/18md: write bitmap information to devices that are undergoing recovery.drivers/md/bitmap.c+0 -10 replies
3/18md: occasionally checkpoint drive recovery to reduce duplicate effort after a crashdrivers/md/bitmap.c drivers/md/md.c include/linux/raid/md_k.h+31 -43 replies
4/18md: be more consistent about setting WriteMostly flag when adding a drive to an arraydrivers/md/md.c+2 -00 replies
5/18md: Make mddev->size sector-based.drivers/md/bitmap.c drivers/md/faulty.c drivers/md/md.c +5 more+78 -680 replies
6/18md: Represent raid device size in sectors.drivers/md/linear.c drivers/md/md.c drivers/md/raid0.c +1 more+71 -720 replies
7/18md/raid5: simplify interface for init_stripe and get_active_stripedrivers/md/raid5.c+22 -210 replies
8/18md/raid5: change raid5_compute_sector and stripe_to_pdidx to take a 'previous' argumentdrivers/md/raid5.c+34 -440 replies
9/18md/raid6: remove expectation that Q device is immediately after P device.drivers/md/raid5.c include/linux/raid/raid5.h+120 -925 replies
10/18md/raid5: simplify raid5_compute_sector interfacedrivers/md/raid5.c+58 -600 replies
11/18md/raid5: Add support for new layouts for raid5 and raid6.drivers/md/raid5.c include/linux/raid/raid5.h+193 -190 replies
12/18md/raid5: finish support for DDF/raid6drivers/md/raid5.c include/linux/raid/raid5.h+42 -210 replies
13/18md/raid5: refactor raid5 "run"drivers/md/raid5.c+119 -880 replies
14/18md: md_unregister_thread should cope with being passed NULLdrivers/md/md.c drivers/md/raid5.c+3 -20 replies
15/18md: hopefully enable suspend/resume of md devices.drivers/md/md.c include/linux/raid/md_k.h+66 -150 replies
16/18md: add ->takeover method to support changing the personality managing an arraydrivers/md/md.c drivers/md/raid5.c include/linux/raid/md_k.h +1 more+186 -270 replies
17/18md: add ->takeover method for raid5 to be able to take over raid1drivers/md/raid5.c+67 -50 replies
18/18md/raid5: allow layout/chunksize to be changed on an active2-drive raid5.drivers/md/md.c drivers/md/raid5.c+61 -100 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/18] Assorted md patches headed for 2.6.30

Hi,
following is my current patch queue for 2.6.30, in case anyone would
like to review or otherwise comment.
They should show up in -next shortly.

Probably the most interesting are the last few which provide support for converting a raid1 into a raid5, and a raid5 into a raid6. I plan to do some more work here so the code might change a bit before final submission, as I work out how best ot factor the code.

mdadm doesn't current support these conversions, but you can simply
echo raid5 > /sys/block/md0/md/level
to change a 2-drive raid1 into a raid5. Similarly for 5->6

The raid6 array created will have a somewhat unusual layout in that all the Q blocks will be on the last drive. Later I'll create functionality to restripe the array so that the Q block is rotated around all the drives as you would expect.

Comments and testing very welcome.

Thanks,
NeilBrown