gparted/src
Mike Fleetwood 5892b72890 Fix LVM2 PV shrinking with lvm2 2.02.171 and later (#1)
Shrinking an LVM2 Physical Volume on CentOS 7 with the latest
lvm2 2.02.177 fails like this:

  Shrink /dev/sda9 from 1.00 GiB to 768.00 MiB
  * calibrate /dev/sda9
  * check file system on /dev/sda9 for errors and (if possib...(SUCCESS)
  * shrink file system                                         (ERROR)
    * lvm pvresize -v --setphysicalvolumesize 786432K '/dev/...(ERROR)
        0 physical volume(s) resized / 1 physical volume(s) not resized

        Wiping internal VG cache
        Wiping cache of LVM-capable devices
        /dev/sda9: Requested size 712.00 MiB is less than real size 1.00 GiB.  Proceed? [y/n]:[n]
        Physical Volume /dev/sda9 not resized.

This upstream change to lvm2 [1] makes pvresize prompt for confirmation
whenever the --setphysicalvolumesize option is used.  (The change was
included in lvm2 2.02.171 and later, which is used in recent
distributions.  The reporter found the issue on Ubuntu 18.04 LTS and I
reproduced the issue on RHEL/CentOS 7.5).  The set size option has to be
used when shrinking the PV before shrinking the partition therefore fix
this issue by adding lvm common option --yes when using the set size
option.

[1] https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=cbc69f8c693edf0d1307c9447e2e66d07a04bfe9
    pvresize: Prompt when non-default size supplied.

Closes #1 - Can't shrink LVM partition due to pvresize prompt
2018-06-21 20:04:18 +01:00
..
BlockSpecial.cc Include sys/sysmacros.h for major and minor macros (#776173) 2017-01-04 10:58:44 +00:00
CopyBlocks.cc Match up OperationDetail creation and status setting for internal copy (#790842) 2017-12-11 13:53:09 -07:00
DMRaid.cc Transition other code to callback error collection (#790842) 2017-11-26 10:53:18 -07:00
Device.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
DialogFeatures.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
DialogManageFlags.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
DialogPasswordEntry.cc Clear previous LUKS unlock failure error before next attempt (#795617) 2018-06-19 10:54:48 -06:00
Dialog_Base_Partition.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
Dialog_Disklabel.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
Dialog_FileSystem_Label.cc Simplify from Gtk::Table to HBox in FileSystem Label dialog 2018-06-18 10:15:33 -06:00
Dialog_Partition_Copy.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
Dialog_Partition_Info.cc Restore Information dialog display of whole disk devices (#788308) 2017-10-03 08:22:19 -06:00
Dialog_Partition_Name.cc Simplify from Gtk::Table to HBox in Partition Name dialog 2018-06-18 10:15:33 -06:00
Dialog_Partition_New.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
Dialog_Partition_Resize_Move.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
Dialog_Progress.cc Update URLs in the app to https://gparted.org (#796411) 2018-06-19 09:47:19 -06:00
Dialog_Rescue_Data.cc Increase minimum required gtkmm to 2.16.0 (#794253) 2018-03-26 10:16:45 -06:00
DrawingAreaVisualDisk.cc Display unrecognised whole disk devices as all grey again (#788308) 2017-10-03 08:22:19 -06:00
FS_Info.cc Correctly quote and escape arguments passed to external commands (#787203) 2017-09-21 20:00:26 +01:00
FileSystem.cc Make get_custom_text() and get_generic_text() return by reference 2018-06-18 10:15:33 -06:00
Frame_Resizer_Base.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
Frame_Resizer_Extended.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
GParted_Core.cc Recognise blkid identified BitLocker encrypted partitions (#795127) 2018-06-18 10:15:33 -06:00
HBoxOperations.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
LUKS_Info.cc Update comment with example LUKS_Info cache entry 2017-05-21 09:44:20 -06:00
LVM2_PV_Info.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
Makefile.am Add password entry dialog and attempt LUKS unlock once (#795617) 2018-04-30 09:10:48 -06:00
Mount_Info.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
Operation.cc Create and use general find_extended_partition() function 2017-01-14 08:49:58 -07:00
OperationChangeUUID.cc Implement new UUID operation on encrypted file systems (#774818) 2017-01-14 08:49:58 -07:00
OperationCheck.cc Implement check operation on encrypted file systems (#774818) 2017-01-14 08:49:58 -07:00
OperationCopy.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
OperationCreate.cc Use virtual get_filessytem_string() in remaining operation descriptions (#774818) 2017-01-14 08:49:58 -07:00
OperationDelete.cc Create and use general find_extended_partition() function 2017-01-14 08:49:58 -07:00
OperationDetail.cc Make OperationDetail no_more_children bug message translatable (#790842) 2017-12-04 13:32:21 -07:00
OperationFormat.cc Switch from whole_device flag to TYPE_UNPARTITIONED (#788308) 2017-10-03 08:22:19 -06:00
OperationLabelFileSystem.cc Implement label operation on encrypted file systems (#774818) 2017-01-14 08:49:58 -07:00
OperationNamePartition.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
OperationResizeMove.cc Create and use general find_extended_partition() function 2017-01-14 08:49:58 -07:00
Partition.cc Rename enum FILESYSTEM to FSType 2018-01-28 10:09:35 -07:00
PartitionLUKS.cc Rename enum FILESYSTEM to FSType 2018-01-28 10:09:35 -07:00
PartitionVector.cc Create and use general find_extended_partition() function 2017-01-14 08:49:58 -07:00
PasswordRAMStore.cc Fix null pointer check accidentally disabled (#796293) 2018-05-21 13:37:01 +01:00
PipeCapture.cc Further improve speed of PipeCapture for non-watched output (#777973) 2017-06-02 11:47:35 -06:00
Proc_Partitions_Info.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
ProgressBar.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
SWRaid_Info.cc Pass string literals directly to execute_command() 2017-09-25 09:25:17 -06:00
TreeView_Detail.cc Provide virtual Partition::get_filesystem_string() method (#774818) 2017-01-14 08:49:58 -07:00
Utils.cc Add ability for small writes to stdin of child processes (#795617) 2018-04-30 09:10:48 -06:00
Win_GParted.cc Update URLs in the app to https://gparted.org (#796411) 2018-06-19 09:47:19 -06:00
btrfs.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
exfat.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
ext2.cc Simplify ext2::get_filesystem_support() with regard ext4 support (#794253) 2018-03-26 10:16:45 -06:00
f2fs.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
fat16.cc Avoid unnecessary string change 2018-06-19 18:05:56 +02:00
hfs.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
hfsplus.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
jfs.cc Stop using shell when reading jfs file system usage (#795617) 2018-04-30 09:10:48 -06:00
linux_swap.cc Make get_custom_text() and get_generic_text() return by reference 2018-06-18 10:15:33 -06:00
luks.cc Make get_custom_text() and get_generic_text() return by reference 2018-06-18 10:15:33 -06:00
lvm2_pv.cc Fix LVM2 PV shrinking with lvm2 2.02.171 and later (#1) 2018-06-21 20:04:18 +01:00
main.cc Remove "../include/" from GParted header #includes 2016-12-12 13:15:34 -07:00
nilfs2.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
ntfs.cc Avoid unnecessary string change 2018-06-19 18:05:56 +02:00
reiser4.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
reiserfs.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
udf.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
ufs.cc Move struct FS and FS_Limits into FileSystem.h 2018-01-28 10:09:35 -07:00
xfs.cc Move the xfs_db -r flag to the start when reading XFS usage 2018-06-18 10:15:33 -06:00