]> git.ipfire.org Git - thirdparty/mdadm.git/commit
super1: fix regression in write_init_super.
authorNeilBrown <neilb@suse.de>
Mon, 31 Jan 2011 00:33:18 +0000 (11:33 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 31 Jan 2011 00:33:18 +0000 (11:33 +1100)
commite8090005357b0536b43d5c1899f2c508d2d76d59
treeb5961efe67363b34536094560c75a9ba477713c1
parentcb82edca142b22b005a035a2f9678c3606e60339
super1: fix regression in write_init_super.

Now that a 'supertype' container more information, the simplistic
copying of 'st' into 'refst' is incorrect and results in closing
some fds when load_super1(refst) calls free_super().

So do it more correctly using dup_super.

Reported-by: "Labun, Marcin" <Marcin.Labun@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super1.c