]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Manage/external: for external metadata, add_to_super needs lock on container.
authorNeilBrown <neilb@suse.de>
Tue, 15 Mar 2011 03:48:20 +0000 (14:48 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 15 Mar 2011 03:48:20 +0000 (14:48 +1100)
commit02c39ab1d5519d8d802e3c5d86034d68322c38e7
treeb809fc48f3f62af34ec2f3ffbff23a7af73df88c
parent1502a43a08d0648a6b03d89b7cf189f15bea8647
Manage/external: for external metadata, add_to_super needs lock on container.

add_to_super could use information from the current superblock (ddf
does), so add_to_super for external metadata should be called with
the O_EXCL lock held on the container to ensure the update is complete
before any other process tries to make any changes (like adding
another device to array).

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