Skip to content

Make it possible to disable create_on_open semantics.

NeilBrown linux-raid 1 version Applied

Status from this message: Thanks, applied! The md device creation interface especially create_on_open is

Get series with b4
b4 am 149197804398.19936.12809382889200123725.stgit@noble

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2md: allow creation of mdNNN arrays via md_mod/parameters/new_arraydrivers/md/md.c+28 -61 reply
2/2md: support disabling of create-on-open semantics.drivers/md/md.c+13 -11 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchColy Li
1/2Acted-by
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [md PATCH 0/2] Make it possible to disable create_on_open semantics.

Currently, opening an md /dev node will create the array object. This makes it hard to destroy the object as udev will typically re-open the device node when handling REMOVE events.

The "new_array" module parameter was created to work towards avoiding this problem, and it can be used when
CREATE names=yes

is given in /etc/mdadm.conf.
How this doesn't currently support names like "md%d", which lots of people use and expect, so we need more work before we can transition away from create_on_open.

These patches add support to "new_array" so that md%d devices can be created. This will make it, once again, possible to have md%d devices with numbers > 511. (3.17 make this impossible).

An enhancement to mdadm that uses this will cause new_array to always be used (where available), and we can then disable create_on_open completely (after suitable transition periods).

NeilBrown

---

NeilBrown (2):
md: allow creation of mdNNN arrays via md_mod/parameters/new_array
md: support disabling of create-on-open semantics.

 drivers/md/md.c |   48 +++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 41 insertions(+), 7 deletions(-)

--
Signature