1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00
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
..
2020-09-29 10:43:56 +02:00
2020-10-21 16:24:16 -05:00
2020-10-26 13:06:53 +01:00
2018-06-08 13:40:53 +01:00
2020-10-21 16:24:16 -05:00
2018-06-08 13:40:53 +01:00
2020-09-29 14:43:27 -05:00
2019-02-28 10:30:54 -06:00
2020-10-19 16:53:18 +02:00
2018-06-08 13:40:53 +01:00
2020-09-29 10:43:56 +02:00
2018-06-08 13:40:53 +01:00
2018-06-08 13:40:53 +01:00