Skip to content

md: add hot-plug and hot-unplug support

Liu Yuan qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest7 patches 1 replyIn review

Changes in v2 from the cover letter

- fix object stale purging for md

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7md: add support for simultaneous disk failure on the same nodesheep/md.c+48 -180 replies
2/7tests/055: test simultaneous multiple disk failures on the same nodetests/055 tests/055.out+15 -00 replies
3/7net: enlarge connect_to_addr() scopeinclude/net.h sheep/sockfd_cache.c+8 -80 replies
4/7md: add hot-plug and hot-unplug supportcollie/collie.c include/internal_proto.h include/sheepdog_proto.h +4 more+253 -830 replies
5/7collie: add new commands to manipulate multi-diskscollie/node.c+161 -00 replies
6/7sheep: remove duplicate recovery complete notificationsheep/ops.c+13 -10 replies
7/7tsets: add 057 to test md hot-plug and hot-unplugtests/057 tests/057.out tests/group+113 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/7] md: add hot-plug and hot-unplug support

From: Liu Yuan <[email protected]>

v2:
- fix object stale purging for md

This is the final part for MD. With this patch set, We even allow group plug, group unplug and disks/node failure during (un)plugging.

Also add disk information function for collie.

Liu Yuan (7):
md: add support for simultaneous disk failure on the same node tests/055: test simultaneous multiple disk failures on the same node
net: enlarge connect_to_addr() scope
md: add hot-plug and hot-unplug support
collie: add new commands to manipulate multi-disks
sheep: remove duplicate recovery complete notification
tsets: add 057 to test md hot-plug and hot-unplug

 collie/collie.c          |    2 +-
 collie/node.c            |  161 +++++++++++++++++++++++
 include/internal_proto.h |   16 +++
 include/net.h            |    8 ++
 include/sheepdog_proto.h |    2 +
 sheep/md.c               |  321 ++++++++++++++++++++++++++++++++--------------
 sheep/ops.c              |   59 ++++++++-
 sheep/sheep_priv.h       |    5 +-
 sheep/sockfd_cache.c     |    8 --
 sheep/store.c            |    3 +-
 tests/055                |    7 +
 tests/055.out            |    8 ++
 tests/057                |   57 ++++++++
 tests/057.out            |   55 ++++++++
 tests/group              |    1 +
 15 files changed, 607 insertions(+), 106 deletions(-)
 create mode 100755 tests/057
 create mode 100644 tests/057.out
Signature · 1 line
1.7.9.5