]> sourceware.org Git - lvm2.git/commit
metadata: ask for confirmation before really initializing/removing PV that is marked...
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 18 Feb 2016 13:30:14 +0000 (14:30 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 18 Feb 2016 13:33:54 +0000 (14:33 +0100)
commitecfa465366d2d6f2a995111eef3c8dac3987c2ef
treebe056a2d6ac0130f4ff5000fd6445b7264d8d465
parent1a141e86238b45ed8c4a2f1f3b8918f40d33f5a9
metadata: ask for confirmation before really initializing/removing PV that is marked as belonging to a VG

Ask for confirmation when using pvcreate/pvremove on a PV which is
marked as belonging to a VG, just like we do in case of a PV which
belongs to known VG:

$ pvcreate -ff /dev/sda
Really INITIALIZE physical volume "/dev/sda" that is marked as belonging to a VG [y/n]? n
  /dev/sda: physical volume not initialized

$ pvremove -ff /dev/sda
Really WIPE LABELS from physical volume "/dev/sda" that is marked as belonging to a VG [y/n]? n
  /dev/sda: physical volume label not removed
lib/metadata/metadata.c
lib/metadata/pv_manip.c
test/shell/pv-ext-flags.sh
This page took 0.897656 seconds and 5 git commands to generate.