drbd: new-connection and new-minor succeed, if the object already exists
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 14 Mar 2011 12:22:35 +0000 (13:22 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Sat, 3 Nov 2012 23:16:21 +0000 (00:16 +0100)
commit38f19616d2c6d4e0ab2de01e4c2f159cd5aa8b49
treeff173524bc659960d9b25976d6f963cee2172090
parentcffec5b2fe8e851f54bb67a9012add062a97b960
drbd: new-connection and new-minor succeed, if the object already exists

Follow O_CREAT semantics when creating connection or minor device/volume
objects.  If we need O_CREAT|O_EXCL semantics some time down the road,
we can add NLM_F_EXCL to the netlink message flags.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_nl.c