]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: Open device exclusive for write command
authorDaniel Wagner <dwagner@suse.de>
Tue, 15 Feb 2022 15:00:53 +0000 (16:00 +0100)
committerDaniel Wagner <dwagner@suse.de>
Tue, 15 Feb 2022 15:04:41 +0000 (16:04 +0100)
commit0adb8c2c79df953bbef9e08ce684239a5650638f
tree774836643bb7bf28d36fa5589a2d6d702942f402
parenta78869527956eb6045f32a051239f92c55a471ba
nvme: Open device exclusive for write command

Commit 2100609ddefb ("nvme: open namespace exclusive by default")
tried to make the write command a bit safer by asking to open the
device exclusive. Because the commit got reverted let's add the main
change back which is to use O_EXCL for write commands on default.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme.c