1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/tools
David Teigland 763219611c vgcreate: close exclusive fd after pvcreate
When vgcreate does an automatic pvcreate, it opens the
dev with O_EXCL to ensure no other subsystem is using
the device.  This exclusive fd remained in bcache and
prevented activation parts of lvm from using the dev.

This appeared with vgcreate of a sanlock VG because of
the unique combination where the dev is not yet a PV,
so pvcreate is needed, and the vgcreate also creates
and activates an internal LV for sanlock.

Fix this by closing the exclusive fd after it's used
by pvcreate so that it won't interfere with other
bits of lvm that may try to use the device.
2018-08-01 11:22:23 -05:00
..
.exported_symbols generate liblvm2cmd exported symbols too 2010-06-25 18:23:10 +00:00
.gitignore tools: add generated headers to .gitignore 2017-03-10 13:13:41 +00:00
args.h lvconvert: improve text about splitmirrors 2018-07-23 12:28:48 -05:00
cmdnames.h doc: change fsf address 2016-01-21 12:11:37 +01:00
command-lines.in lvconvert: improve text about splitmirrors 2018-07-23 12:28:48 -05:00
command.c Remove lvmetad 2018-07-11 11:26:42 -05:00
command.h cleanup: fix some typos 2017-07-10 14:58:33 +02:00
commands.h Remove lvmetad 2018-07-11 11:26:42 -05:00
dumpconfig.c lvmconfig: Add options to produce file preamble 2017-08-05 16:23:34 +01:00
errors.h tools: Introduce exit code EINIT_FAILED. 2017-07-26 23:18:03 +01:00
formats.c doc: change fsf address 2016-01-21 12:11:37 +01:00
license.inc pre-release 2017-03-28 16:11:35 +01:00
lv_props.h commands: new method for defining commands 2017-02-13 08:20:10 -06:00
lv_types.h toollib: support new command rules queries 2018-07-09 15:28:35 +02:00
lvchange.c Remove lvmetad 2018-07-11 11:26:42 -05:00
lvconvert_poll.c debug: more display_lvname usage 2017-06-27 08:28:36 +02:00
lvconvert_poll.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lvconvert.c lvconvert: reject conversions on raid1 split trackchanges LVs 2018-07-26 02:05:54 +02:00
lvcreate.c lvcreate: vdo support 2018-07-09 15:29:12 +02:00
lvdisplay.c process_each_lv: add check_single_lv function 2017-02-13 08:20:10 -06:00
lvextend.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2cmd-static.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lvm2cmd.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lvm2cmd.h tools: Introduce exit code EINIT_FAILED. 2017-07-26 23:18:03 +01:00
lvm2cmdline.h commands: fix memory debug for cmd defs 2017-05-01 15:27:14 -05:00
lvm-static.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm.c debug: tracing error path 2017-06-27 00:27:36 +02:00
lvmcmdlib.c dmeventd: lvm vdo support 2018-07-09 15:29:16 +02:00
lvmcmdline.c lvconvert: restrict command matching for no option variant 2018-07-23 11:12:38 -05:00
lvmdiskscan.c Add cmd arg to more functions 2018-06-15 11:03:55 -05:00
lvpoll.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lvreduce.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvremove.c process_each_lv: add check_single_lv function 2017-02-13 08:20:10 -06:00
lvrename.c toollib: make it possible to also process internal VGs, add 'include_internal' switch to process_each_vg fn 2016-06-20 11:33:42 +02:00
lvresize.c lvresize: support passing --yes to fsadm 2017-06-21 14:03:29 +02:00
lvscan.c Remove lvmetad 2018-07-11 11:26:42 -05:00
Makefile.in Remove lvmetad 2018-07-11 11:26:42 -05:00
polldaemon.c Remove lvmetad 2018-07-11 11:26:42 -05:00
pvchange.c lvmetad: two phase vg_update 2016-06-28 02:30:31 +01:00
pvck.c Add cmd arg to more functions 2018-06-15 11:03:55 -05:00
pvcreate.c Remove lvmetad 2018-07-11 11:26:42 -05:00
pvdisplay.c Remove lvmetad 2018-07-11 11:26:42 -05:00
pvmove_poll.c pvmove: move code from tools to lib 2017-12-01 12:18:32 +01:00
pvmove_poll.h doc: change fsf address 2016-01-21 12:11:37 +01:00
pvmove.c Remove unused clvm variations for active LVs 2018-06-07 16:17:04 +01:00
pvremove.c pvremove: skip lvmlockd locks for forced clearing 2018-05-30 09:25:45 -05:00
pvresize.c pvresize: update message 2018-06-08 14:36:59 +02:00
pvscan.c Remove lvmetad 2018-07-11 11:26:42 -05:00
reporter.c Remove lvmetad 2018-07-11 11:26:42 -05:00
segtypes.c doc: change fsf address 2016-01-21 12:11:37 +01:00
stub.h Remove vgconvert 2018-06-13 14:14:03 -05:00
tags.c doc: change fsf address 2016-01-21 12:11:37 +01:00
tool.h various: some missing #include zalloc.h 2018-06-08 14:18:09 +01:00
toollib.c vgcreate: close exclusive fd after pvcreate 2018-08-01 11:22:23 -05:00
toollib.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
tools.h Remove lvmetad 2018-07-11 11:26:42 -05:00
vals.h Remove lvm1 and pool disk formats 2018-04-30 16:55:02 -05:00
vgcfgbackup.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
vgcfgrestore.c Remove lvmetad 2018-07-11 11:26:42 -05:00
vgchange.c Remove lvmetad 2018-07-11 11:26:42 -05:00
vgck.c Remove lvmetad 2018-07-11 11:26:42 -05:00
vgcreate.c Remove lvmetad 2018-07-11 11:26:42 -05:00
vgdisplay.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
vgexport.c lvmlockd: primarily use vg_is_shared 2018-06-01 13:15:22 -05:00
vgextend.c filter: use bcache for filter reads 2018-05-10 16:03:19 -05:00
vgimport.c Remove lvmetad 2018-07-11 11:26:42 -05:00
vgimportclone.c Remove lvmetad 2018-07-11 11:26:42 -05:00
vgmerge.c Remove lvmetad 2018-07-11 11:26:42 -05:00
vgmknodes.c process_each_lv: add check_single_lv function 2017-02-13 08:20:10 -06:00
vgreduce.c Fix use of orphan lock in commands 2018-06-12 09:46:11 -05:00
vgremove.c Fix use of orphan lock in commands 2018-06-12 09:46:11 -05:00
vgrename.c Remove lvmetad 2018-07-11 11:26:42 -05:00
vgscan.c Remove lvmetad 2018-07-11 11:26:42 -05:00
vgsplit.c Remove lvmetad 2018-07-11 11:26:42 -05:00