]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm/mdopen: create new function create_named_array for writing to new_array
authorZhilong Liu <zlliu@suse.com>
Mon, 16 Oct 2017 07:54:18 +0000 (15:54 +0800)
committerJes Sorensen <jsorensen@fb.com>
Wed, 1 Nov 2017 21:23:28 +0000 (17:23 -0400)
commit7105228e190870505b1d9163c104da9bdb42aa59
treed8e644b39dd2e563abe3d45bc5682fd756818957
parent1b21c449e6f2c81eb75cc0a6fc81b3edbefae5a3
mdadm/mdopen: create new function create_named_array for writing to new_array

Split 'write to new_array' out into a function named create_named_array.
And fixed a trivial compiling warning 'warn_unused_result' against commit:
fdbf7aaa1956 (mdopen: call "modprobe md_mod" if it might be needed.)

Suggested-by: NeilBrown <neilb@suse.com>
Signed-off-by: Zhilong Liu <zlliu@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
mdopen.c