]> sourceware.org Git - lvm2.git/commit
scan: work around udev problems by avoiding open RDWR
authorDavid Teigland <teigland@redhat.com>
Wed, 20 Jun 2018 16:32:45 +0000 (11:32 -0500)
committerDavid Teigland <teigland@redhat.com>
Wed, 20 Jun 2018 19:08:12 +0000 (14:08 -0500)
commit42f7caf1c267a5b75ee38ea77a7e2fd7c582e704
tree92a74b15e8dc1e08f405ec95d5158269e5023bd0
parentf85a010a6bc9dc0414ccdf9c6b195c78231f1914
scan: work around udev problems by avoiding open RDWR

udev creates a train wreck of events if we open devices
with RDWR.  Until we can fix/disable/scrap udev, work around
this by opening RDONLY and then closing/reopening RDWR when
a write is needed.  This invalidates the bcache blocks for
the device before writing so it can trigger unnecessary
rereading.
lib/device/device.h
lib/label/label.c
This page took 0.035442 seconds and 5 git commands to generate.