1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00
lvm2/tools
Dave Wysochanski 90b96af68f Add prompt if using --metadataignore argument with vgmetadatacopies.
When using vgmetadatacopies value other than "umanaged" (0), prompt
the user if the usage of --metadataignore would change the value of
vgmetadatacopies.  The main 2 cases are:
1) pvchange --metadataignore
2) vgextend --metadataignore

We leave the prompt check in the tools, and do not change anything
if the user says 'n'.

Examples:
vgextend --metadataignore y vgtest /dev/loop0
Setting metadataignore will override preferred number of copies of VG vgtest metadata.
Are you sure? [y/n]: y
  No physical volume label read from /dev/loop0
  Physical volume "/dev/loop0" successfully created
  Volume group "vgtest" successfully extended

pvchange --metadataignore y /dev/loop3
Setting metadataignore on /dev/loop3 will override preferred number of copies of VG vgtest metadata.
Are you sure? [y/n]: y
  WARNING: Changing preferred number of copies of VG vgtest metadata from 3 to 2
  Physical volume "/dev/loop3" changed
  1 physical volume changed / 0 physical volumes not changed

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
2010-07-07 19:02:50 +00:00
..
.exported_symbols generate liblvm2cmd exported symbols too 2010-06-25 18:23:10 +00:00
args.h Fix --[vg]metadatacopies arg processing 2010-06-30 20:21:03 +00:00
cmdnames.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
commands.h Add --metadataignore to vgextend and man pages. 2010-06-30 13:03:48 +00:00
dmsetup.c Fix dmlosetup snprintf %llu compiler warning. 2010-07-05 22:56:31 +00:00
dumpconfig.c Tidy some uses of arg_count and introduce arg_is_set. 2009-11-03 15:50:42 +00:00
formats.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvchange.c Refactor the handles_missing_pv logic in lvchange. 2010-06-28 19:10:16 +00:00
lvconvert.c Fix for bug 607347: failing both redundant mirror log legs... 2010-07-06 17:02:03 +00:00
lvcreate.c If we are checking if '--nosync' was called with the mirror argument, 2010-05-11 21:40:11 +00:00
lvdisplay.c Rework the toollib interface (process_each_*) on top of new vg_read. 2009-07-01 17:00:50 +00:00
lvextend.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvm2cmd-static.c Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
lvm2cmd.c Fix mirror log name construction during lvconvert. (2.02.30) 2008-01-31 12:19:36 +00:00
lvm2cmd.h Remove C++ private keyword from headers. 2010-06-16 13:01:25 +00:00
lvm2cmdline.h Only allow one return from poll_daemon(). If a child polldaemon was 2010-01-11 19:19:17 +00:00
lvm-static.c Use tools.h in for lvm-static. 2009-01-20 20:37:41 +00:00
lvm.c Fix lvm shell crash when input is entirely whitespace. (Xinwei Hu) 2010-07-01 11:04:58 +00:00
lvmchange.c Fix tools to report error when stopped by user. 2009-12-03 19:18:33 +00:00
lvmcmdlib.c mlockall() -> mlock() 2010-03-05 14:48:33 +00:00
lvmcmdline.c Fix --[vg]metadatacopies arg processing 2010-06-30 20:21:03 +00:00
lvmdiskscan.c Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
lvreduce.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvremove.c Disallow the direct removal of a merging snapshot. 2010-04-23 19:27:10 +00:00
lvrename.c Add lots of missing stack debug messages to tools. 2009-09-14 22:47:49 +00:00
lvresize.c Remove no-longer-used arg_ptr_value. 2010-04-29 01:38:12 +00:00
lvscan.c Introduce percent_range_t and centralise snapshot full/mirror in-sync checks. 2009-10-01 00:35:29 +00:00
Makefile.in generate liblvm2cmd exported symbols too 2010-06-25 18:23:10 +00:00
polldaemon.c Add activation/polling_interval to lvm.conf as --interval default. 2010-04-13 01:43:56 +00:00
polldaemon.h Default to checking LV's progress before waiting in _wait_for_single_lv. 2010-01-22 21:59:42 +00:00
pvchange.c Add prompt if using --metadataignore argument with vgmetadatacopies. 2010-07-07 19:02:50 +00:00
pvck.c Clean up numerous compiler warnings that crept in recently. 2007-08-22 14:38:18 +00:00
pvcreate.c replace existing_pv with existing_pvl 2010-03-16 15:48:27 +00:00
pvdisplay.c Add missing vg_release to pvs and pvdisplay to fix memory leak. 2009-11-24 17:07:09 +00:00
pvmove.c Account for mirror transient status when doing lvconvert --repair. 2010-05-24 15:32:20 +00:00
pvremove.c Fix tools to report error when stopped by user. 2009-12-03 19:18:33 +00:00
pvresize.c Accept orphan VG names as parameters to lock_vol() and related functions. 2010-05-19 01:16:40 +00:00
pvscan.c Fix truncated total size displayed by pvscan. 2010-05-07 15:24:17 +00:00
reporter.c Fix exit code when requesting help using documented -o help option. 2010-06-17 13:15:51 +00:00
segtypes.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
stub.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
toollib.c improve vgmetadatacopies unmanaged message 2010-06-30 20:03:52 +00:00
toollib.h API change for args of process_each_lv_in_vg() 2010-05-21 12:21:51 +00:00
tools.h Fix --[vg]metadatacopies arg processing 2010-06-30 20:21:03 +00:00
vgcfgbackup.c Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING. 2009-09-15 01:38:59 +00:00
vgcfgrestore.c Handle metadata with unknown segment types more gracefully. 2009-10-16 17:41:49 +00:00
vgchange.c improve vgmetadatacopies unmanaged message 2010-06-30 20:03:52 +00:00
vgck.c Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING. 2009-09-15 01:38:59 +00:00
vgconvert.c Add --pvmetadatacopies as a synonym for --metadatacopies in various commands. 2009-10-05 20:55:56 +00:00
vgcreate.c improve vgmetadatacopies unmanaged message 2010-06-30 20:03:52 +00:00
vgdisplay.c API change for args of process_each_lv_in_vg() 2010-05-21 12:21:51 +00:00
vgexport.c Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING. 2009-09-15 01:38:59 +00:00
vgextend.c Add prompt if using --metadataignore argument with vgmetadatacopies. 2010-07-07 19:02:50 +00:00
vgimport.c Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING. 2009-09-15 01:38:59 +00:00
vgmerge.c Update _vgmerge_single() to move fid->metadata_areas_ignored. 2010-06-28 20:39:08 +00:00
vgmknodes.c Add lots of missing stack debug messages to tools. 2009-09-14 22:47:49 +00:00
vgreduce.c Use del_pvl_from_vgs() in vgreduce paths. 2010-04-13 17:26:20 +00:00
vgremove.c Refactor vg_remove_check to place pv removal into separate function. 2010-06-30 18:03:52 +00:00
vgrename.c Allow VGs with active LVs to be renamed. 2010-04-14 13:03:06 +00:00
vgscan.c Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING. 2009-09-15 01:38:59 +00:00
vgsplit.c improve vgmetadatacopies unmanaged message 2010-06-30 20:03:52 +00:00