]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Create.c
Call free_super earlier when creating an array.
authorNeilBrown <neilb@suse.de>
Mon, 31 Jan 2011 00:34:42 +0000 (11:34 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 31 Jan 2011 00:34:42 +0000 (11:34 +1100)
commit6946681db03c076897616bd9aae27b127456d8f5
treefa5018524df45a9f3fd09c80dbeb95c7c1aa0e41
parente8090005357b0536b43d5c1899f2c508d2d76d59
Call free_super earlier when creating an array.

As free_super now closes fds for member devices, rather than
write_init_super doing it, we need to call free_super earlier,
so that the device (on which we hold an O_EXCL open) is closed
before it is added to the array.

So close at the end of pass-1 rather than after pass-2.

Signed-off-by: NeilBrown <neilb@suse.de>
Create.c