1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/label
David Teigland 2c31939827 pvcreate: clean up opening and filtering of args
The args for pvcreate/pvremove (and vgcreate/vgextend
when applicable) were not efficiently opened, scanned,
and filtered.  This change reorganizes the opening
and filtering in the following steps:

- label scan and filter all devs
  . open ro
  . standard label scan at the start of command

- label scan and filter dev args
  . open ro
  . uses full md component check
  . typically the first scan and filter of pvcreate devs

- close and reopen dev args
  . open rw and excl

- repeat label scan and filter dev args
  . using reopened rw excl fd

- wipe and write new headers
  . using reopened rw excl fd
2020-10-26 11:13:27 -05:00
..
hints.c hints: enhance debug messages 2020-09-16 15:01:10 -05:00
hints.h hints: free hint list in error exit path 2020-03-03 12:25:34 -06:00
label.c pvcreate: clean up opening and filtering of args 2020-10-26 11:13:27 -05:00
label.h pvcreate: clean up opening and filtering of args 2020-10-26 11:13:27 -05:00