]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
md: support disabling of create-on-open semantics.
authorNeilBrown <neilb@suse.com>
Wed, 12 Apr 2017 06:26:13 +0000 (16:26 +1000)
committerShaohua Li <shli@fb.com>
Wed, 12 Apr 2017 19:30:17 +0000 (12:30 -0700)
commit78b6350dcaadb03b4a2970b16387227ba6744876
tree4ba6e29179eea197a0d19a3a2eb746fa3fff9654
parent039b7225e6e98783a7a7e79c52b29c437f29967d
md: support disabling of create-on-open semantics.

md allows a new array device to be created by simply
opening a device file.  This make it difficult to
remove the device and udev is likely to open the device file
as part of processing the REMOVE event.

There is an alternate mechanism for creating arrays
by writing to the new_array module parameter.
When using tools that work with this parameter, it is
best to disable the old semantics.
This new module parameter allows that.

Signed-off-by: NeilBrown <neilb@suse.com>
Acted-by: Coly Li <colyli@suse.de>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c