- Do not warn about shrinking a partition if script mode is used

(bnc#929189)
  - add: parted-do-not-warn-when-shrinking-in-script-mode.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=112
This commit is contained in:
Petr Uzel 2015-05-05 14:11:46 +00:00 committed by Git OBS Bridge
parent 5a2cd49a44
commit 58214a8e18
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,17 @@
---
parted/parted.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: parted-3.2/parted/parted.c
===================================================================
--- parted-3.2.orig/parted/parted.c
+++ parted-3.2/parted/parted.c
@@ -1601,7 +1601,7 @@ do_resizepart (PedDevice** dev, PedDisk*
start, end))
goto error_destroy_constraint;
/* warn when shrinking partition - might lose data */
- if (part->geom.end < oldend)
+ if ((part->geom.end < oldend) && !opt_script_mode)
if (ped_exception_throw (
PED_EXCEPTION_WARNING,
PED_EXCEPTION_YES_NO,

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 5 13:39:24 UTC 2015 - puzel@suse.com
- Do not warn about shrinking a partition if script mode is used
(bnc#929189)
- add: parted-do-not-warn-when-shrinking-in-script-mode.patch
-------------------------------------------------------------------
Wed Feb 11 15:01:56 UTC 2015 - puzel@suse.com

View File

@ -54,6 +54,7 @@ Patch27: parted-dont-crash-in-disk_set-when-disk-label-not-found.patch
Patch28: libparted-device-mapper-uses-512b-sectors.patch
Patch29: parted-resize-alias-to-resizepart.patch
Patch30: libparted-avoid-libdevice-mapper-warnings.patch
Patch31: parted-do-not-warn-when-shrinking-in-script-mode.patch
Patch100: parted-fatresize-autoconf.patch
Requires: /sbin/udevadm
BuildRequires: check-devel
@ -128,6 +129,7 @@ to develop applications that require these.
%patch28 -p1
%patch29 -p1
%patch30 -p1
%patch31 -p1
%patch100 -p1
%build