New API: lvm_scan, deprecate vgscan (RHBZ#1602353).

The old vgscan API literally ran vgscan.  When we switched to using
lvmetad (in commit dd162d2cd5) this
stopped working because lvmetad now ignores plain *scan commands
without the --cache option.

We documented that vgscan would rescan PVs, VGs and LVs, but without
activating them.

I have introduced a new API (lvm_scan) which scans or rescans PVs, VGs
and LVs.  It has an optional activate parameter allowing activation of
any new LVs that are found.

With lvmetad this nicely maps to the single command:

 pvscan --cache [--activate ay]
This commit is contained in:
Richard W.M. Jones
2018-07-18 14:27:20 +01:00
parent 16e64b8988
commit 55dfcb2211
7 changed files with 61 additions and 21 deletions

View File

@@ -513,6 +513,7 @@ let proc_nr = [
503, "part_set_gpt_attributes";
504, "part_get_gpt_attributes";
505, "f2fs_expand";
506, "lvm_scan";
]
(* End of list. If adding a new entry, add it at the end of the list