]> sourceware.org Git - lvm2.git/commit
scan: use separate fd for bcache
authorDavid Teigland <teigland@redhat.com>
Tue, 13 Feb 2018 14:58:35 +0000 (08:58 -0600)
committerDavid Teigland <teigland@redhat.com>
Fri, 20 Apr 2018 16:22:46 +0000 (11:22 -0500)
commit6c67c7557c266063db962807aca18fc088ba921e
tree9d19832be81e6016c722b67ceec9dceece9bd33a
parent4343280ebc0e2aae0de5fe959c24574b13d0d7be
scan: use separate fd for bcache

Create a new dev->bcache_fd that the scanning code owns
and is in charge of opening/closing.  This prevents other
parts of lvm code (which do various open/close) from
interfering with the bcache fd.  A number of dev_open
and dev_close are removed from the reading path since
the read path now uses the bcache.

With that in place, open(O_EXCL) for pvcreate/pvremove
can then be fixed.  That wouldn't work previously because
of other open fds.
lib/cache/lvmetad.c
lib/config/config.c
lib/device/dev-io.c
lib/device/device.h
lib/format_text/format-text.c
lib/format_text/text_label.c
lib/label/label.c
lib/label/label.h
lib/metadata/metadata-liblvm.c
tools/toollib.c
This page took 0.037814 seconds and 5 git commands to generate.