commit parted for openSUSE:Factory

2020-09-10 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2020-09-10 22:46:57

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new.4249 (New)


Package is "parted"

Thu Sep 10 22:46:57 2020 rev:131 rq:832927 version:3.3

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2020-04-25 
20:08:03.135514083 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new.4249/parted.changes  2020-09-10 
22:47:00.647766623 +0200
@@ -1,0 +2,7 @@
+Tue Aug 25 18:24:26 CEST 2020 - r...@suse.de
+
+- re-add missing hunk to fix bsc#1164907
+  parted-type-accept-hex.patch
+  type on the cmdline could be specified in hex as 0x82
+
+---

New:

  parted-type-accept-hex.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.6qAcSG/_old  2020-09-10 22:47:01.643767541 +0200
+++ /var/tmp/diff_new_pack.6qAcSG/_new  2020-09-10 22:47:01.647767545 +0200
@@ -69,7 +69,8 @@
 
 # bsc#1164260
 Patch37:parted-print-max-partitions-for-yast.patch
-
+# bsc#1164907
+Patch64:parted-type-accept-hex.patch
 # Fatresize
 Patch100:   parted-fatresize-autoconf.patch
 Patch101:   fatresize-fix-getting-dev-name.patch
@@ -158,6 +159,7 @@
 %patch35 -p1
 %patch36 -p1
 %patch37 -p1
+%patch64 -p1
 %patch100 -p1
 %patch101 -p1
 %patch156 -p1


++ parted-type-accept-hex.patch ++
--- parted-3.3/parted/ui.c  2020/08/25 16:28:53 1.1
+++ parted-3.3/parted/ui.c  2020/08/25 16:31:39
@@ -926,7 +926,11 @@
 return 0;
 
 errno = 0;
-ret = strtol (input, (char**) NULL, 10);
+
+if (strstr(input, "0x") == input)
+ret = strtol (input, (char**) NULL, 16);
+else
+ret = strtol (input, (char**) NULL, 10);
 if (errno)
 goto error;
 




commit parted for openSUSE:Factory

2020-04-25 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2020-04-25 20:07:51

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new.2738 (New)


Package is "parted"

Sat Apr 25 20:07:51 2020 rev:130 rq:795528 version:3.3

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2020-01-15 
16:43:15.325118919 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new.2738/parted.changes  2020-04-25 
20:08:03.135514083 +0200
@@ -1,0 +2,9 @@
+Wed Apr  8 17:37:47 UTC 2020 - Anna Maresova 
+
+- print maximum number of partitions for yast
+  (bsc#1168756, bsc#1161783) 
+ - add parted-print-max-partitions-for-yast.patch
+- make parted work with pmemXs devices (bsc#1164260)
+ - add libparted-linux-pmem-path.patch
+
+---

New:

  libparted-linux-pmem-path.patch
  parted-print-max-partitions-for-yast.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.bzZT7V/_old  2020-04-25 20:08:07.227522520 +0200
+++ /var/tmp/diff_new_pack.bzZT7V/_new  2020-04-25 20:08:07.231522528 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package parted
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,7 @@
 Summary:GNU partitioner
 License:GPL-3.0-or-later
 Group:  System/Filesystems
-Url:http://www.gnu.org/software/parted/
+URL:http://www.gnu.org/software/parted/
 Source0:ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz
 Source1:ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz.sig
 Source2:
https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=parted&download=1#/%{name}.keyring
@@ -63,6 +63,13 @@
 Patch33:libparted-use-BLKRRPART-only-when-needed.patch
 Patch34:libparted-canonicalize-dev-md-paths.patch
 Patch35:parted-fix-end_input-usage.patch 
+
+# bsc#1168756
+Patch36:libparted-linux-pmem-path.patch
+
+# bsc#1164260
+Patch37:parted-print-max-partitions-for-yast.patch
+
 # Fatresize
 Patch100:   parted-fatresize-autoconf.patch
 Patch101:   fatresize-fix-getting-dev-name.patch
@@ -149,6 +156,8 @@
 %patch33 -p1
 %patch34 -p1
 %patch35 -p1
+%patch36 -p1
+%patch37 -p1
 %patch100 -p1
 %patch101 -p1
 %patch156 -p1

++ libparted-linux-pmem-path.patch ++
 libparted/arch/linux.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Index: parted-3.3/libparted/arch/linux.c
===
--- parted-3.3.orig/libparted/arch/linux.c
+++ parted-3.3/libparted/arch/linux.c
@@ -2489,7 +2489,7 @@ _device_get_part_path (PedDevice const *
 dev->type == PED_DEVICE_CPQARRAY ||
 dev->type == PED_DEVICE_DAC960 ||
 dev->type == PED_DEVICE_NVME ||
-dev->type == PED_DEVICE_PMEM ||
+((dev->type == PED_DEVICE_PMEM) && (!isdigit 
(devpath[path_len -1 ]))) ||
 dev->type == PED_DEVICE_SDMMC)
 p = "p";
 else if (dev->type == PED_DEVICE_DM)

++ parted-print-max-partitions-for-yast.patch ++
From: Anna Maresova 
Date: Wed Mar 25 18:17:28 CET 2020
Subject: parted: print maximum number of partitions for yast
Patch-mainline: no, custom SUSE patch

Index: parted-3.3/parted/parted.c
===
--- parted-3.3.orig/parted/parted.c
+++ parted-3.3/parted/parted.c
@@ -1125,10 +1125,13 @@ _print_disk_info (const PedDevice *dev,
 break;
 
 }
-printf ("%s:%s:%s:%lld:%lld:%s:%s:%s;\n",
+printf ("%s:%s:%s:%lld:%lld:%s:%s:%s",
 path, end, transport[dev->type],
 dev->sector_size, dev->phys_sector_size,
 pt_name, dev->model, disk_flags);
+   if (getenv("PARTED_PRINT_NUMBER_OF_PARTITION_SLOTS"))
+printf(":%lld", diskp && 
diskp->type->ops->get_max_primary_partition_count ? 
diskp->type->ops->get_max_primary_partition_count(diskp) : 0);
+   printf(";\n");
 free(path);
 } else {
 printf (_("Model: %s (%s)\n"),




commit parted for openSUSE:Factory

2020-01-15 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2020-01-15 16:08:41

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new.30080 (New)


Package is "parted"

Wed Jan 15 16:08:41 2020 rev:129 rq:763641 version:3.3

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2019-07-31 
14:15:03.498822681 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new.30080/parted.changes 2020-01-15 
16:43:15.325118919 +0100
@@ -1,0 +2,81 @@
+Fri Jan  3 14:46:27 UTC 2020 - Anna Maresova 
+
+- fix crash in do_resizepart
+  + parted-fix-end_input-usage.patch: Fix end_input usage in
+do_resizepart 
+
+---
+Fri Nov 22 14:25:28 UTC 2019 - Anna Maresova 
+
+- update to version 3.3, noteworthy changes:
+ - s390: Re-enabled virtio-attached DASD heuristics by using
+   HDIO_GETGEO when probing device geometry. Fixes a bug with
+   KVM virtio-blk backed by a DASD.
+   Parted now recognizes NVMe devices, NVDIMM, and RAM drives.
+ - Fix atari disklabel false positives by probing other labels first.
+ - Fix resizepart to adjust the end to be -1 sector when using iec
+   power of 2 units so that the next partition can start immediately
+   following the new end, just like mkpart does.
+ - Fix set and disk_set to not crash when there are no flags to set.
+ - Fix a udev cookie leak when using resizepart on device-mapper devices.
+ - Fix a gettext crash/error sometimes when using localized languages.
+ - Fix fat resize to preverve boot code, and thus not render the
+   filesystem unreconized by Windows.
+ - Fix rescue command: the rescue command often failed to find
+   filesystems due to leaving on cylinder alignment.
+ - libparted-fs-resize: Prevent crash resizing FAT file systems with very
+   deep directories with path names over 512 bytes long.
+ - Use 512b sector size when communicating with device-mapper. Fixes
+   problems with partitions being created too small on dm devices
+   with sector sizes > 5121b
+ - Don't crash in the disk_set command when a disk label is not found
+ - libparted-fs-resize: Prevent crash resizing FAT16 file systems.
+ - libparted-fs-resize: Prevent crash resizing FAT16 file systems.
+ - If the user specifies start/end of the partition as cylinders
+   and a cylinder has a size which is power of 2, then such address
+   does not trigger exact placement.
+ - mkpart: Allow negative start value when FS-TYPE is not given
+- remove following patches (now in upstream):
+ - 0001-fdasd-geometry-handling-updated-from-upstream-s390-t.patch
+ - 0002-dasd-enhance-device-probing.patch
+ - 0003-parted-fix-build-error-on-s390.patch
+ - 0004-fdasd.c-Safeguard-against-geometry-misprobing.patch
+ - 0005-libparted-Remove-fdasd-geometry-code-from-alloc_meta.patch
+ - clean-the-disk-information-when-commands-fail-in-int.patch
+ - lib-fs-resize-prevent-crash-resizing-FAT16.patch
+ - libpartd-dasd-improve-flag-processing-for-DASD-LDL.patch
+ - libparted-Add-support-for-NVDIMM-devices.patch
+ - libparted-Add-support-for-NVMe-devices.patch
+ - libparted-Add-support-for-RAM-drives.patch
+ - libparted-BLKPG_RESIZE_PARTITION-uses-bytes.patch
+ - libparted-Use-read-only-when-probing-devices-on-linu.patch
+ - libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch
+ - libparted-dasd-add-an-exception-for-changing-DASD-LD.patch
+ - libparted-dasd-add-new-fdasd-functions.patch
+ - libparted-dasd-add-test-cases-for-the-new-fdasd-func.patch
+ - libparted-dasd-correct-the-offset-where-the-first-pa.patch
+ - libparted-dasd-unify-vtoc-handling-for-cdl-ldl.patch
+ - libparted-dasd-update-and-improve-fdasd-functions.patch
+ - libparted-device-mapper-uses-512b-sectors.patch
+ - libparted-dont-warn-if-no-HDIO_GET_IDENTITY.patch
+ - libparted-fix-starting-CHS-in-protective-MBR.patch
+ - libparted-fix-udev-cookie-leak.patch
+ - libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch
+ - libparted-set-swap-flag-on-GPT-partitions.patch
+ - libparted-sysmacros.patch
+ - parted-3.2.tar.xz
+ - parted-3.2.tar.xz.sig
+ - parted-check-the-name-of-partition-first-when-to-nam.patch
+ - parted-dont-crash-in-disk_set-when-disk-label-not-found.patch
+ - parted-fix-crash-due-to-improper-partition-number-in.patch
+ - parted-fix-wrong-error-label-jump-in-mkpart.patch
+ - parted-ui-remove-unneccesary-information-of-command.patch
+ - tests-check-extended-partition-length.patch
+ - tests-increase-scsi_debug-tmo.patch
+ - tests-set-optimal-blocks-for-scsi_debug.patch
+ - tests-update-t0220-t0280-for-swap-flag.patch
+ - tests-use-wait_for_dev_to_-functions.patch
+ - tests-wait_for_-loop.patch
+- backported or refreshed remaining patches
+
+---

Old:

  0001-fdasd-

commit parted for openSUSE:Factory

2019-07-31 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2019-07-31 14:15:02

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new.4126 (New)


Package is "parted"

Wed Jul 31 14:15:02 2019 rev:128 rq:718780 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2019-07-22 
12:17:04.891716851 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new.4126/parted.changes  2019-07-31 
14:15:03.498822681 +0200
@@ -1,0 +2,7 @@
+Wed Jul 10 10:16:16 UTC 2019 - Anna Maresova 
+
+- changed: parted-fix-crash-due-to-improper-partition-number-in.patch
+  Changed the patch to behave in the same way like before last change
+  for numbers with leading zeroes.
+
+---



Other differences:
--

++ parted-fix-crash-due-to-improper-partition-number-in.patch ++
--- /var/tmp/diff_new_pack.PLavOw/_old  2019-07-31 14:15:05.046819818 +0200
+++ /var/tmp/diff_new_pack.PLavOw/_new  2019-07-31 14:15:05.046819818 +0200
@@ -23,10 +23,10 @@
  parted/ui.c | 26 ++
  1 file changed, 22 insertions(+), 4 deletions(-)
 
-diff --git a/parted/ui.c b/parted/ui.c
-index 505b8ac..5d76c20 100644
 a/parted/ui.c
-+++ b/parted/ui.c
+Index: parted-3.2/parted/ui.c
+===
+--- parted-3.2.orig/parted/ui.c
 parted-3.2/parted/ui.c
 @@ -29,6 +29,8 @@
  #include 
  #include 
@@ -36,7 +36,7 @@
  
  #include "command.h"
  #include "strlist.h"
-@@ -909,16 +911,30 @@ command_line_get_integer (const char* prompt, int* value)
+@@ -912,16 +914,34 @@ command_line_get_integer (const char* pr
  {
  char def_str [10];
  char*input;
@@ -51,7 +51,11 @@
 -valid = sscanf (input, "%d", value);
 +
 +errno = 0;
-+ret = strtol (input, (char**) NULL, 0);
++
++  if (strstr(input, "0x") == input)
++  ret = strtol (input, (char**) NULL, 16);
++  else
++  ret = strtol (input, (char**) NULL, 10);
 +if (errno)
 +goto error;
 +
@@ -70,7 +74,7 @@
  }
  
  int
-@@ -1029,6 +1045,7 @@ command_line_get_partition (const char* prompt, PedDisk* 
disk,
+@@ -1031,6 +1051,7 @@ command_line_get_partition (const char*
  PedPartition** value)
  {
  PedPartition*part;
@@ -78,7 +82,7 @@
  
  /* Flawed logic, doesn't seem to work?!
  check = ped_disk_next_partition (disk, part);
-@@ -1045,7 +1062,8 @@ command_line_get_partition (const char* prompt, PedDisk* 
disk,
+@@ -1047,7 +1068,8 @@ command_line_get_partition (const char*
  */
  int num = (*value) ? (*value)->num : 0;
  
@@ -88,6 +92,3 @@
  ped_exception_throw (PED_EXCEPTION_ERROR,
   PED_EXCEPTION_CANCEL,
   _("Expecting a partition number."));
--- 
-2.16.4
-





commit parted for openSUSE:Factory

2019-07-22 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2019-07-22 12:17:03

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new.4126 (New)


Package is "parted"

Mon Jul 22 12:17:03 2019 rev:127 rq:714064 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2018-08-06 
11:51:52.104993491 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new.4126/parted.changes  2019-07-22 
12:17:04.891716851 +0200
@@ -1,0 +2,34 @@
+Mon Jul  1 14:14:36 UTC 2019 - Anna Maresova 
+
+- port fixes for various bugs from upstream (bsc#1136245)
+ - add: libparted-dasd-correct-the-offset-where-the-first-pa.patch
+   4126d02, correct the offset where the first partition begins. 
+   This patch implements libparted-dasd-do-not-use-first-tracks.patch 
+ - remove: libparted-dasd-do-not-use-first-tracks.patch
+ - add: parted-fix-crash-due-to-improper-partition-number-in.patch
+   149f009, fix crash due to improper partition number input,
+   changed call to strtol, use base 0 to fit our parted-type.patch
+ - modify: parted-type.patch (removed ui.c part)
+ - add: parted-check-the-name-of-partition-first-when-to-nam.patch
+   d7a2ff1, check the name of partition first when to name a partition
+ - add: libparted-dasd-add-test-cases-for-the-new-fdasd-func.patch 
+   c11f5c0, 571e078, add test cases for the new fdasd functions
+ - add: libparted-dasd-add-an-exception-for-changing-DASD-LD.patch
+   ee2c0c2, add an exception for changing DASD-LDL partition table
+ - add: libpartd-dasd-improve-flag-processing-for-DASD-LDL.patch
+   1545d6d, improve flag processing for DASD-LDL
+ - add: clean-the-disk-information-when-commands-fail-in-int.patch
+   5a61f15, clean the disk information when commands fail in 
+   interactive mode
+ - add: parted-ui-remove-unneccesary-information-of-command.patch
+   0b7946a, remove unneccesary information of command line
+ - add: parted-fix-wrong-error-label-jump-in-mkpart.patch
+   af150f6, fix wrong error label jump in mkpart
+ - refresh: libparted-dasd-unify-vtoc-handling-for-cdl-ldl.patch
+   4f25d54, unify vtoc handling for cdl/ldl
+ - refresh: libparted-dasd-update-and-improve-fdasd-functions.patch
+   db37c8c, update and improve fdasd functions
+ - refresh: libparted-dasd-add-new-fdasd-functions.patch
+   b9e1281, add new fdasd functions
+
+---

Old:

  libparted-dasd-do-not-use-first-tracks.patch

New:

  clean-the-disk-information-when-commands-fail-in-int.patch
  libpartd-dasd-improve-flag-processing-for-DASD-LDL.patch
  libparted-dasd-add-an-exception-for-changing-DASD-LD.patch
  libparted-dasd-add-test-cases-for-the-new-fdasd-func.patch
  libparted-dasd-correct-the-offset-where-the-first-pa.patch
  parted-check-the-name-of-partition-first-when-to-nam.patch
  parted-fix-crash-due-to-improper-partition-number-in.patch
  parted-fix-wrong-error-label-jump-in-mkpart.patch
  parted-ui-remove-unneccesary-information-of-command.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.3s9wfr/_old  2019-07-22 12:17:06.151716509 +0200
+++ /var/tmp/diff_new_pack.3s9wfr/_new  2019-07-22 12:17:06.155716507 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package parted
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -40,7 +40,6 @@
 Patch17:dummy-bootcode-only-for-x86.patch
 Patch18:parted-type.patch
 Patch19:parted-mac.patch
-Patch20:libparted-dasd-do-not-use-first-tracks.patch
 Patch21:libparted-use-BLKRRPART-for-DASD.patch.patch
 Patch22:libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch
 Patch23:libparted-make-BLKRRPART-more-robust.patch
@@ -88,6 +87,18 @@
 Patch60:libparted-use-BLKRRPART-only-when-needed.patch
 Patch61:libparted-canonicalize-dev-md-paths.patch
 Patch62:libparted-sysmacros.patch
+
+# bsc#1136245
+Patch63:libparted-dasd-correct-the-offset-where-the-first-pa.patch
+Patch64:parted-fix-crash-due-to-improper-partition-number-in.patch 
+Patch65:parted-fix-wrong-error-label-jump-in-mkpart.patch 
+Patch66:clean-the-disk-information-when-comman

commit parted for openSUSE:Factory

2018-08-06 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2018-08-06 11:51:49

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Mon Aug  6 11:51:49 2018 rev:126 rq:626933 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2018-05-25 
21:37:52.406754571 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2018-08-06 
11:51:52.104993491 +0200
@@ -1,0 +2,7 @@
+Wed Aug  1 14:49:47 UTC 2018 - sparscha...@suse.de
+
+- libparted: Include  for major() macro with
+  glibc >= 2.27
+  - add: libparted-sysmacros.patch
+
+---

New:

  libparted-sysmacros.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.xvZ62J/_old  2018-08-06 11:51:53.720996294 +0200
+++ /var/tmp/diff_new_pack.xvZ62J/_new  2018-08-06 11:51:53.720996294 +0200
@@ -87,6 +87,7 @@
 Patch59:parted-fix-resizepart-and-rm-command.patch
 Patch60:libparted-use-BLKRRPART-only-when-needed.patch
 Patch61:libparted-canonicalize-dev-md-paths.patch
+Patch62:libparted-sysmacros.patch
 # Fatresize
 Patch100:   parted-fatresize-autoconf.patch
 Patch101:   fatresize-fix-getting-dev-name.patch
@@ -201,6 +202,7 @@
 %patch59 -p1
 %patch60 -p1
 %patch61 -p1
+%patch62 -p1
 %patch100 -p1
 %patch101 -p1
 %patch150 -p1

++ libparted-sysmacros.patch ++
From: "Richard W.M. Jones" 
Date: Sat, 24 Mar 2018 17:37:02 +
Subject: linux: Include  for major() macro.
Patch-mainline: v3.3
Git-commit: ba5e0451b51c983e40afd123b6e0d3eddb55e610

Since glibc 2.27 this header is required.

Acked-by: Sebastian Parschauer 
---
 libparted/arch/linux.c |1 +
 1 file changed, 1 insertion(+)

--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -42,6 +42,7 @@
 #include 
 #include 
 #include 
+#include 
 #ifdef ENABLE_DEVICE_MAPPER
 #include 
 #endif





commit parted for openSUSE:Factory

2018-05-25 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2018-05-25 21:37:51

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Fri May 25 21:37:51 2018 rev:125 rq:611902 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2018-02-25 
12:20:43.347112500 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2018-05-25 
21:37:52.406754571 +0200
@@ -1,0 +2,5 @@
+Thu May 24 15:57:24 CEST 2018 - ku...@suse.de
+
+- Use %license instead of %doc [bsc#1082318]
+
+---



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.Eywlva/_old  2018-05-25 21:37:53.794704325 +0200
+++ /var/tmp/diff_new_pack.Eywlva/_new  2018-05-25 21:37:53.794704325 +0200
@@ -20,7 +20,7 @@
 Version:3.2
 Release:0
 Summary:GNU partitioner
-License:GPL-3.0+
+License:GPL-3.0-or-later
 Group:  System/Filesystems
 Url:http://www.gnu.org/software/parted/
 Source0:ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz
@@ -240,7 +240,8 @@
 
 %files
 %defattr(-,root,root)
-%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO
+%license COPYING
+%doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
 %{_sbindir}/*
 %{_mandir}/man8/part*.8.gz
 %doc %{_infodir}/*.info*






commit parted for openSUSE:Factory

2018-02-25 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2018-02-25 12:20:39

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Sun Feb 25 12:20:39 2018 rev:124 rq:578411 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2018-01-30 
15:38:07.116210514 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2018-02-25 
12:20:43.347112500 +0100
@@ -1,0 +2,20 @@
+Tue Feb 20 15:11:35 UTC 2018 - sparscha...@suse.de
+
+- libparted: Canonicalize /dev/md/ paths (bsc#1078820)
+  - add: libparted-canonicalize-dev-md-paths.patch
+  - add: tests-add-helper-require_swap_.patch
+  - add: tests-add-dev-md-check-to-t6100.patch
+
+---
+Mon Feb 19 16:01:51 UTC 2018 - sparscha...@suse.de
+
+- libparted: Fix partition device naming for all devices
+  (bsc#1078820, bsc#1081547)
+  - The "_part%d" suffix which has been used for SLE10 compatibility
+is wrong now as the kernel does not use that any more and
+uses "p%d" instead.
+  - amend: libparted-partition-naming.patch
+  - refresh: libparted-fix-nvme-partition-naming.patch
+  - refresh: libparted-fix-NVDIMM-partition-naming.patch
+
+---

New:

  libparted-canonicalize-dev-md-paths.patch
  tests-add-dev-md-check-to-t6100.patch
  tests-add-helper-require_swap_.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.4OP1Sv/_old  2018-02-25 12:20:44.891056580 +0100
+++ /var/tmp/diff_new_pack.4OP1Sv/_new  2018-02-25 12:20:44.895056435 +0100
@@ -86,6 +86,7 @@
 Patch58:parted-add-ignore-busy-option.patch
 Patch59:parted-fix-resizepart-and-rm-command.patch
 Patch60:libparted-use-BLKRRPART-only-when-needed.patch
+Patch61:libparted-canonicalize-dev-md-paths.patch
 # Fatresize
 Patch100:   parted-fatresize-autoconf.patch
 Patch101:   fatresize-fix-getting-dev-name.patch
@@ -96,6 +97,9 @@
 Patch153:   tests-wait_for_-loop.patch
 Patch154:   tests-update-t0220-t0280-for-swap-flag.patch
 Patch155:   tests-check-extended-partition-length.patch
+Patch156:   tests-add-helper-require_swap_.patch
+Patch157:   tests-add-dev-md-check-to-t6100.patch
+
 # SUSE tests patches
 Patch200:   tests-adapt-to-SUSE.patch
 BuildRequires:  check-devel
@@ -196,6 +200,7 @@
 %patch58 -p1
 %patch59 -p1
 %patch60 -p1
+%patch61 -p1
 %patch100 -p1
 %patch101 -p1
 %patch150 -p1
@@ -204,6 +209,8 @@
 %patch153 -p1
 %patch154 -p1
 %patch155 -p1
+%patch156 -p1
+%patch157 -p1
 %patch200 -p1
 
 %build

++ libparted-canonicalize-dev-md-paths.patch ++
From: Sebastian Parschauer 
Date: Mon, 19 Feb 2018 17:45:32 +0100
Subject: libparted: Canonicalize /dev/md/ paths
References: bsc#1078820
Patch-mainline: submitted, 2018-02-20

The BLKPG* ioctl handling relies on getting the current partitions
from /sys/block/$devname/. With an md name like e.g. "vol0", the
block device to be used cannot be found and the BLKPG* ioctls are
used for all partitions. So canonicalize /dev/md/ paths as well.

Test: t6100-mdraid-partitions

Signed-off-by: Sebastian Parschauer 
---
 libparted/device.c | 7 ++-
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/libparted/device.c b/libparted/device.c
index 36fecd2..2fd3c2f 100644
--- a/libparted/device.c
+++ b/libparted/device.c
@@ -152,11 +152,8 @@ ped_device_get (const char* path)
char*   normal_path = NULL;
 
PED_ASSERT (path != NULL);
-   /* Don't canonicalize /dev/mapper or /dev/md/ paths, see
-  tests/symlink.c
-   */
-   if (strncmp (path, "/dev/mapper/", 12) &&
-   strncmp (path, "/dev/md/", 8))
+   /* Don't canonicalize /dev/mapper/ paths. */
+   if (strncmp (path, "/dev/mapper/", 12))
normal_path = canonicalize_file_name (path);
if (!normal_path)
/* Well, maybe it is just that the file does not exist.
++ libparted-fix-NVDIMM-partition-naming.patch ++
--- /var/tmp/diff_new_pack.4OP1Sv/_old  2018-02-25 12:20:45.031051509 +0100
+++ /var/tmp/diff_new_pack.4OP1Sv/_new  2018-02-25 12:20:45.031051509 +0100
@@ -5,13 +5,19 @@
 Patch-mainline: no, required to fix custom SUSE device naming
 
 Signed-off-by: Sebastian Parschauer 
+---
+ libparted/arch/linux.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
+index 1aef651..cf6c754 100644
 --- a/libparted/arch/linux.c
 +++ b/libparted/arch/linux.c
-@@ -2437,6 +2437,7 @@ _device_get_part_path (PedDevice const *
-   const char *p;
- 

commit parted for openSUSE:Factory

2018-01-30 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2018-01-30 15:38:04

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Tue Jan 30 15:38:04 2018 rev:123 rq:569979 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2017-12-31 
00:42:53.831942466 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2018-01-30 
15:38:07.116210514 +0100
@@ -1,0 +2,7 @@
+Fri Jan 26 15:22:20 UTC 2018 - sparscha...@suse.de
+
+- libparted: dasd: Use BLKRRPART only when needed (bsc#1065197,
+  bsc#1067435)
+  - add: libparted-use-BLKRRPART-only-when-needed.patch
+
+---

New:

  libparted-use-BLKRRPART-only-when-needed.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.Y6k5Fz/_old  2018-01-30 15:38:08.464147581 +0100
+++ /var/tmp/diff_new_pack.Y6k5Fz/_new  2018-01-30 15:38:08.468147394 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package parted
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -85,6 +85,7 @@
 Patch57:parted-escape-printed-device-path.patch
 Patch58:parted-add-ignore-busy-option.patch
 Patch59:parted-fix-resizepart-and-rm-command.patch
+Patch60:libparted-use-BLKRRPART-only-when-needed.patch
 # Fatresize
 Patch100:   parted-fatresize-autoconf.patch
 Patch101:   fatresize-fix-getting-dev-name.patch
@@ -194,6 +195,7 @@
 %patch57 -p1
 %patch58 -p1
 %patch59 -p1
+%patch60 -p1
 %patch100 -p1
 %patch101 -p1
 %patch150 -p1

++ libparted-use-BLKRRPART-only-when-needed.patch ++
From: Sebastian Parschauer 
Date: Thu, 25 Jan 2018 17:06:00 +0100
Subject: libparted: dasd: Use BLKRRPART only when needed
References: bsc#1065197, bsc#1067435
Patch-mainline: no, upstream dropped proper DASD support

The BLKRRPART ioctl is required due to limitations of the DASD
disk layout. We use it always for those devices right now but when
adding or removing a partition at the end, then it is enough to use
the BLKPG* ioctls. The problem with BLKRRPART occurs when one of the
first partitions is busy. BLKRRPART touches all partitions and the
parted command fails in this case.
So detect that situation and use BLKRRPART only when needed instead.

Signed-off-by: Sebastian Parschauer 
---
 include/parted/disk.in.h |  1 +
 libparted/arch/linux.c   | 13 +++--
 libparted/disk.c | 15 +--
 3 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/include/parted/disk.in.h b/include/parted/disk.in.h
index b42e7cf..ac57d68 100644
--- a/include/parted/disk.in.h
+++ b/include/parted/disk.in.h
@@ -195,6 +195,7 @@ struct _PedDisk {
 int update_mode;/**< mode without free/metadata
partitions, for easier
update */
+int needs_blkrrpart;/* special cases on DASDs */
 };
 
 struct _PedDiskOps {
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 461c095..d7d37e7 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -3264,14 +3264,15 @@ static int
 linux_disk_commit (PedDisk* disk)
 {
 if (disk->dev->type != PED_DEVICE_FILE) {
-/* The ioctl() command BLKPG_ADD_PARTITION does not notify
- * the devfs system; consequently, /proc/partitions will not
- * be up to date, and the proper links in /dev are not
- * created.  Therefore, if using DevFS, we must get the kernel
- * to re-read and grok the partition table.
+/* If adding or removing partitions not at the end, then the
+ * ioctl() command BLKPG_ADD_PARTITION does not notify the
+ * devfs system; consequently, /proc/partitions will not be up
+ * to date, and the proper links in /dev are not created.
+ * Therefore, if using DevFS, we must get the kernel to re-read
+ * and grok the partition table.
  */
 /* Work around kernel dasd problem so we really do BLKRRPART */
-   if (disk->dev->type == PED_DEVICE_DASD)
+   if (disk->dev->type == PED_DEVICE_DASD && disk->needs_blkrrpart)
   return _kernel_reread_part_table(disk->dev);
 
assert(_have_blkpg());
diff -

commit parted for openSUSE:Factory

2017-12-30 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2017-12-31 00:42:51

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Sun Dec 31 00:42:51 2017 rev:122 rq:559490 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2017-12-21 
11:22:05.256777111 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2017-12-31 
00:42:53.831942466 +0100
@@ -1,0 +2,5 @@
+Fri Dec 22 17:23:25 CET 2017 - sparscha...@suse.de
+
+- Amend patch headers (no functional change)
+
+---



Other differences:
--
++ dummy-bootcode-only-for-x86.patch ++
--- /var/tmp/diff_new_pack.A7cphW/_old  2017-12-31 00:42:55.711315611 +0100
+++ /var/tmp/diff_new_pack.A7cphW/_new  2017-12-31 00:42:55.711315611 +0100
@@ -1,3 +1,6 @@
+From: Petr Uzel 
+Subject: parted: dos: Wipe boot code only on x86
+Patch-mainline: no, custom SUSE patch
 ---
  libparted/labels/dos.c |7 +++
  1 file changed, 7 insertions(+)

++ lib-fs-resize-prevent-crash-resizing-FAT16.patch ++
--- /var/tmp/diff_new_pack.A7cphW/_old  2017-12-31 00:42:55.727310276 +0100
+++ /var/tmp/diff_new_pack.A7cphW/_new  2017-12-31 00:42:55.735307608 +0100
@@ -1,7 +1,8 @@
-From 1e9e770f4bc7f3d80e09ecd1df58575fad064163 Mon Sep 17 00:00:00 2001
 From: Mike Fleetwood 
 Date: Sun, 28 Sep 2014 16:15:48 +0100
-Subject: [PATCH] lib-fs-resize: Prevent crash resizing FAT16 file systems
+Subject: lib-fs-resize: Prevent crash resizing FAT16 file systems
+Patch-mainline: v3.3
+Git-commit: 1e9e770f4bc7f3d80e09ecd1df58575fad064163
 
 Resizing FAT16 file system crashes in libparted/fs/r/fat/resize.c
 create_resize_context() because it was dereferencing NULL pointer

++ libparted-Add-support-for-NVDIMM-devices.patch ++
--- /var/tmp/diff_new_pack.A7cphW/_old  2017-12-31 00:42:55.743304941 +0100
+++ /var/tmp/diff_new_pack.A7cphW/_new  2017-12-31 00:42:55.747303607 +0100
@@ -2,7 +2,8 @@
 Date: Mon, 23 Oct 2017 17:47:47 +0200
 Subject: Add support for NVDIMM devices
 References: bsc#1064446
-Patch-mainline: submitted, 2017-10-24 10:22 +0200
+Patch-mainline: v3.3
+Git-commit: 71885c5f493f3a5d950adbb3e8d17eff7e023053
 
 Recognize NVDIMM devices, so that "parted -s /dev/pmem7 p" now
 prints "Model: NVDIMM Device (pmem)" instead of

++ libparted-Add-support-for-NVMe-devices.patch ++
--- /var/tmp/diff_new_pack.A7cphW/_old  2017-12-31 00:42:55.767296938 +0100
+++ /var/tmp/diff_new_pack.A7cphW/_new  2017-12-31 00:42:55.767296938 +0100
@@ -1,7 +1,9 @@
-From 02bb5fe15b89b0a0ffd4019c9d04f16c0af29d46 Mon Sep 17 00:00:00 2001
 From: Petr Uzel 
 Date: Tue, 14 Jun 2016 10:41:18 +0200
-Subject: [PATCH] Add support for NVMe devices
+Subject: Add support for NVMe devices
+References: bsc#982169
+Patch-mainline: v3.3
+Git-commit: e4ae4330f3e33201aeeed3b7ca88e15d98d03e13
 
 Recognize NVMe Devices, so "parted -s /dev/nvme0n1" now prints
 "NVMe Device (nvme)" instead of "Model: Unknown (unknown)".

++ libparted-Use-read-only-when-probing-devices-on-linu.patch ++
--- /var/tmp/diff_new_pack.A7cphW/_old  2017-12-31 00:42:55.791288936 +0100
+++ /var/tmp/diff_new_pack.A7cphW/_new  2017-12-31 00:42:55.791288936 +0100
@@ -1,8 +1,8 @@
-From 44d5ae0115c4ecfe3158748309e9912c5aede92d Mon Sep 17 00:00:00 2001
 From: "Brian C. Lane" 
 Date: Thu, 6 Aug 2015 07:17:14 -0700
-Subject: [PATCH] libparted: Use read only when probing devices on linux
- (#1245144)
+Subject: libparted: Use read only when probing devices on linux
+Patch-mainline: v3.3
+Git-commit: 44d5ae0115c4ecfe3158748309e9912c5aede92d
 
 When a device is opened for RW closing it can trigger other actions,
 like udev scanning it for partition changes. Use read only for the

++ libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch ++
--- /var/tmp/diff_new_pack.A7cphW/_old  2017-12-31 00:42:55.807283601 +0100
+++ /var/tmp/diff_new_pack.A7cphW/_new  2017-12-31 00:42:55.815280934 +0100
@@ -1,7 +1,8 @@
-From 2ef86fbe0fd8a6c4b48dd8edfbe41728a7343dac Mon Sep 17 00:00:00 2001
 From: Petr Uzel 
 Date: Thu, 29 May 2014 14:50:31 +0200
-Subject: [PATCH] libparted: allow bigger snap radius if cylinders are used
+Subject: libparted: allow bigger snap radius if cylinders are used
+References: bnc#879387
+Patch-mainline: no, custom change for flexibility
 
 This is partial revert of commit
 
@@ -19,8 +20,6 @@
 
 Only revert to the old behavior if cylinders are used in order to
 give parted more flexibility when snapping the partition start/end.
-
-References: bnc#879387
 ---
  libparted/unit.c |5 -
  1 file changed, 4 insertions(+), 1 deletion(-)

++ libparted-avoi

commit parted for openSUSE:Factory

2017-12-21 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2017-12-21 11:22:04

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Thu Dec 21 11:22:04 2017 rev:121 rq:558625 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2017-11-25 
08:40:26.191116189 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2017-12-21 
11:22:05.256777111 +0100
@@ -1,0 +2,7 @@
+Tue Dec 19 17:23:10 UTC 2017 - sparscha...@suse.de
+
+- fatresize: Fix getting the device name from partition name
+  (boo#959181)
+  - add: fatresize-fix-getting-dev-name.patch
+
+---

New:

  fatresize-fix-getting-dev-name.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.Cy910y/_old  2017-12-21 11:22:06.676707877 +0100
+++ /var/tmp/diff_new_pack.Cy910y/_new  2017-12-21 11:22:06.680707682 +0100
@@ -87,6 +87,7 @@
 Patch59:parted-fix-resizepart-and-rm-command.patch
 # Fatresize
 Patch100:   parted-fatresize-autoconf.patch
+Patch101:   fatresize-fix-getting-dev-name.patch
 # Upstream tests patches
 Patch150:   tests-set-optimal-blocks-for-scsi_debug.patch
 Patch151:   tests-increase-scsi_debug-tmo.patch
@@ -194,6 +195,7 @@
 %patch58 -p1
 %patch59 -p1
 %patch100 -p1
+%patch101 -p1
 %patch150 -p1
 %patch151 -p1
 %patch152 -p1

++ fatresize-fix-getting-dev-name.patch ++
From: Sebastian Parschauer 
Date: Sun, 3 Dec 2017 12:09:44 +0100
Subject: Fix getting the device name from partition name
References: boo#959181
Patch-mainline: submitted, https://github.com/ya-mouse/fatresize/pull/4

There are many partition device names like e.g. /dev/mmcblk0p1 where
it is not enough to trim the trailing digits to get the disk device
name. Using open() here would depend on a POSIX platform. So do it
like _ped_device_probe() and silence libparted exceptions and try
to get the device with ped_device_get(). Trim further trailing
characters until libparted finds it. Print an error and exit if
the partition name is invalid.

Fixes #2

Signed-off-by: Sebastian Parschauer 
---
 fatresize/fatresize.c |   29 +
 1 file changed, 29 insertions(+)

--- a/fatresize/fatresize.c
+++ b/fatresize/fatresize.c
@@ -9,6 +9,7 @@
 #include 
 #include 
 
+#include 
 #include 
 #include 
 
@@ -79,6 +80,18 @@ resize(const char* disk_device, int part
 }
 
 
+/* Code parts have been taken from _ped_device_probe(). */
+static void
+probe_device(PedDevice **dev, const char *path)
+{
+   ped_exception_fetch_all();
+   *dev = ped_device_get(path);
+   if (!*dev)
+   ped_exception_catch();
+   ped_exception_leave_all();
+}
+
+
 int
 main(int argc, char** argv)
 {
@@ -126,6 +139,22 @@ main(int argc, char** argv)
disk_device = strndup(argv[1], pos - argv[1] + 1);
partition_number = strtol(pos + 1, NULL, 10);
 
+   PedDevice *peddev = NULL;
+   /* check if the device really exists */
+   while (pos != argv[1] && *pos != '/' && !peddev)
+   {
+   disk_device[pos - argv[1] + 1] = '\0';
+   probe_device(&peddev, disk_device);
+   --pos;
+   }
+   if (!peddev)
+   {
+   free(disk_device);
+   fprintf(stderr, "invalid device\n");
+   exit(EXIT_FAILURE);
+   }
+   ped_device_destroy(peddev);
+
if (argc == 3)
{
char* endptr = NULL;





commit parted for openSUSE:Factory

2017-11-24 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2017-11-25 08:40:24

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Sat Nov 25 08:40:24 2017 rev:120 rq:544142 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2017-11-16 
13:57:43.372781439 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2017-11-25 
08:40:26.191116189 +0100
@@ -1,0 +2,15 @@
+Tue Nov 21 09:26:23 UTC 2017 - sebastian.parscha...@suse.com
+
+- Fix the resizepart and rm command (bsc#1058667)
+  - fix asking for the partition end for resizepart in interactive mode
+when the partition is busy
+  - allow resizepart shrinking and rm of busy partitions in script mode
+by adding the --ignore-busy option
+  - allow growing busy partitions in script mode by default
+  - print a warning when shrinking a non-busy partition in script mode
+  - fix help text printing of long options without short option
+  - remove: parted-do-not-warn-when-shrinking-in-script-mode.patch
+  - add: parted-add-ignore-busy-option.patch
+  - add: parted-fix-resizepart-and-rm-command.patch
+
+---

Old:

  parted-do-not-warn-when-shrinking-in-script-mode.patch

New:

  parted-add-ignore-busy-option.patch
  parted-fix-resizepart-and-rm-command.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.DIMYyN/_old  2017-11-25 08:40:27.239078007 +0100
+++ /var/tmp/diff_new_pack.DIMYyN/_new  2017-11-25 08:40:27.243077862 +0100
@@ -52,7 +52,7 @@
 # Remove following compatibility patch once bnc#931765 is resolved
 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
+# Patch31 dropped for bsc#1058667
 Patch32:libparted-Use-read-only-when-probing-devices-on-linu.patch
 Patch33:libparted-open-the-device-RO-and-lazily-switch-to-RW.patch
 Patch34:parted-implement-wipesignatures-option.patch
@@ -83,6 +83,8 @@
 Patch55:libparted-Add-support-for-NVDIMM-devices.patch
 Patch56:libparted-fix-NVDIMM-partition-naming.patch
 Patch57:parted-escape-printed-device-path.patch
+Patch58:parted-add-ignore-busy-option.patch
+Patch59:parted-fix-resizepart-and-rm-command.patch
 # Fatresize
 Patch100:   parted-fatresize-autoconf.patch
 # Upstream tests patches
@@ -163,7 +165,6 @@
 %patch28 -p1
 %patch29 -p1
 %patch30 -p1
-%patch31 -p1
 %patch32 -p1
 %patch33 -p1
 %patch34 -p1
@@ -190,6 +191,8 @@
 %patch55 -p1
 %patch56 -p1
 %patch57 -p1
+%patch58 -p1
+%patch59 -p1
 %patch100 -p1
 %patch150 -p1
 %patch151 -p1


++ parted-add-ignore-busy-option.patch ++
From: Sebastian Parschauer 
Date: Mon, 20 Nov 2017 18:01:56 +0100
Subject: parted: Add '--ignore-busy' option
References: bsc#1058667
Patch-mainline: not yet, based on v3 submitted on 2017-11-07

There are dangerous actions like e.g. shrinking or removing a busy
partition which should be possible in script mode but not without
using an option to enforce that. This is meant to prevent buggy
scripts from doing those actions unintentionally.

Also add proper printing of the help text for a long option without
a short option.

Suggested-by: Phillip Susi 
Signed-off-by: Sebastian Parschauer 
---
 doc/C/parted.8  |  3 +++
 parted/parted.c | 16 ++--
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/doc/C/parted.8 b/doc/C/parted.8
index e2a24dc..ff01162 100644
--- a/doc/C/parted.8
+++ b/doc/C/parted.8
@@ -30,6 +30,9 @@ never prompts for user intervention
 .B -v, --version
 displays the version
 .TP
+.B --ignore-busy
+perform the requested action in script mode although a partition is busy
+.TP
 .B --wipesignatures
 mkpart wipes the superblock signatures from the disk region where it is
 about to create the partition
diff --git a/parted/parted.c b/parted/parted.c
index 3d7ec4b..3cc8f77 100644
--- a/parted/parted.c
+++ b/parted/parted.c
@@ -76,7 +76,8 @@ static int MEGABYTE_SECTORS (PedDevice* dev)
 enum
 {
   PRETEND_INPUT_TTY = CHAR_MAX + 1,
-  WIPESIGNATURES = CHAR_MAX + 2,
+  IGNORE_BUSY = CHAR_MAX + 2,
+  WIPESIGNATURES = CHAR_MAX + 3,
 };
 
 enum
@@ -118,6 +119,7 @@ static struct option const options[] = {
 {"script",  0, NULL, 's'},
 {"version", 0, NULL, 'v'},
 {"align",   required_argument, NULL, 'a'},
+{"ignore-busy", 0, NULL, IGNORE_BUSY},
 {"wipesignatures", 0, NULL, WIPESIGNATURES},
 {"-pretend-input-tty", 0, NULL, PRETEND_INPUT_TTY},
  

commit parted for openSUSE:Factory

2017-11-16 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2017-11-16 13:57:39

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Thu Nov 16 13:57:39 2017 rev:119 rq:541562 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2017-09-15 
21:08:51.340341144 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2017-11-16 
13:57:43.372781439 +0100
@@ -1,0 +2,21 @@
+Mon Nov 13 17:17:40 CET 2017 - sparscha...@suse.de
+
+- Escape printed device path in machine mode (bsc#1066467)
+  - add: parted-escape-printed-device-path.patch
+
+---
+Mon Oct 23 18:18:36 CEST 2017 - sparscha...@suse.de
+
+- Add support for NVDIMM devices (bsc#1064446)
+  - add: libparted-Add-support-for-NVDIMM-devices.patch
+  - add: libparted-fix-NVDIMM-partition-naming.patch)
+
+---
+Wed Sep 20 10:00:07 UTC 2017 - sparscha...@suse.de
+
+- Prepare to fix the resizepart command (bsc#1058667)
+  - add: libparted-BLKPG_RESIZE_PARTITION-uses-bytes.patch
+  - add: libparted-fix-udev-cookie-leak.patch
+  - add: tests-check-extended-partition-length.patch
+
+---

New:

  libparted-Add-support-for-NVDIMM-devices.patch
  libparted-BLKPG_RESIZE_PARTITION-uses-bytes.patch
  libparted-fix-NVDIMM-partition-naming.patch
  libparted-fix-udev-cookie-leak.patch
  parted-escape-printed-device-path.patch
  tests-check-extended-partition-length.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.xtpTwS/_old  2017-11-16 13:57:44.900726080 +0100
+++ /var/tmp/diff_new_pack.xtpTwS/_new  2017-11-16 13:57:44.908725790 +0100
@@ -78,6 +78,12 @@
 Patch50:libparted-dasd-add-swap-flag-handling-for-DASD-CDL.patch
 Patch51:parted-mkpart-allow-empty-gpt-part-name.patch
 Patch52:libparted-fix-starting-CHS-in-protective-MBR.patch
+Patch53:libparted-BLKPG_RESIZE_PARTITION-uses-bytes.patch
+Patch54:libparted-fix-udev-cookie-leak.patch
+Patch55:libparted-Add-support-for-NVDIMM-devices.patch
+Patch56:libparted-fix-NVDIMM-partition-naming.patch
+Patch57:parted-escape-printed-device-path.patch
+# Fatresize
 Patch100:   parted-fatresize-autoconf.patch
 # Upstream tests patches
 Patch150:   tests-set-optimal-blocks-for-scsi_debug.patch
@@ -85,6 +91,7 @@
 Patch152:   tests-use-wait_for_dev_to_-functions.patch
 Patch153:   tests-wait_for_-loop.patch
 Patch154:   tests-update-t0220-t0280-for-swap-flag.patch
+Patch155:   tests-check-extended-partition-length.patch
 # SUSE tests patches
 Patch200:   tests-adapt-to-SUSE.patch
 BuildRequires:  check-devel
@@ -178,12 +185,18 @@
 %patch50 -p1
 %patch51 -p1
 %patch52 -p1
+%patch53 -p1
+%patch54 -p1
+%patch55 -p1
+%patch56 -p1
+%patch57 -p1
 %patch100 -p1
 %patch150 -p1
 %patch151 -p1
 %patch152 -p1
 %patch153 -p1
 %patch154 -p1
+%patch155 -p1
 %patch200 -p1
 
 %build

++ libparted-Add-support-for-NVDIMM-devices.patch ++
From: Sebastian Parschauer 
Date: Mon, 23 Oct 2017 17:47:47 +0200
Subject: Add support for NVDIMM devices
References: bsc#1064446
Patch-mainline: submitted, 2017-10-24 10:22 +0200

Recognize NVDIMM devices, so that "parted -s /dev/pmem7 p" now
prints "Model: NVDIMM Device (pmem)" instead of
"Model: Unknown (unknown)".

In order for a device to be recognized as NVDIMM, it has to
have a 'blkext' major number. But since this major can be
used also by other device types, we also check that the device
path contains 'pmem' as a substring.

* include/parted/device.h.in(PedDeviceType): Add PED_DEVICE_PMEM
* libparted/arch/linux.c(_device_probe_type): Recognize NVDIMM devices.
* libparted/arch/linux.c(linux_new): Handle NVDIMM devices.
* parted/parted.c(do_print): Add "pmem" to list of transports.

Signed-off-by: Sebastian Parschauer 
---
 include/parted/device.in.h |3 ++-
 libparted/arch/linux.c |7 +++
 parted/parted.c|3 ++-
 3 files changed, 11 insertions(+), 2 deletions(-)

--- a/include/parted/device.in.h
+++ b/include/parted/device.in.h
@@ -51,7 +51,8 @@ typedef enum {
 PED_DEVICE_MD   = 17,
 PED_DEVICE_LOOP = 18,
 PED_DEVICE_NVME = 19,
-PED_DEVICE_RAM  = 20
+PED_DEVICE_RAM  = 20,
+PED_DEVICE_PMEM = 21
 } PedDeviceType;
 
 typedef struct _PedDevice PedDevice;
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -724,6 +724,8 @@ _device_probe_type (PedDevice* dev)
 d

commit parted for openSUSE:Factory

2017-09-15 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2017-09-15 21:08:51

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Fri Sep 15 21:08:51 2017 rev:118 rq:525902 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2017-09-04 
12:26:07.005608656 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2017-09-15 
21:08:51.340341144 +0200
@@ -1,0 +2,18 @@
+Wed Sep 13 13:54:45 UTC 2017 - sparscha...@suse.de
+
+- Make SUSE parted pass all tests in upstream test suite
+  - add: tests-set-optimal-blocks-for-scsi_debug.patch
+  - add: tests-increase-scsi_debug-tmo.patch
+  - add: tests-use-wait_for_dev_to_-functions.patch
+  - add: tests-wait_for_-loop.patch
+  - add: tests-update-t0220-t0280-for-swap-flag.patch
+  - add: tests-adapt-to-SUSE.patch
+
+---
+Wed Sep 13 10:30:16 CEST 2017 - sparscha...@suse.de
+
+- Fix partition naming for dm devices not ending in a digit and
+  also fix resizing of dm partitions (bsc#1056508)
+  - amend: libparted-partition-naming.patch
+
+---

New:

  tests-adapt-to-SUSE.patch
  tests-increase-scsi_debug-tmo.patch
  tests-set-optimal-blocks-for-scsi_debug.patch
  tests-update-t0220-t0280-for-swap-flag.patch
  tests-use-wait_for_dev_to_-functions.patch
  tests-wait_for_-loop.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.i0LWHD/_old  2017-09-15 21:08:52.748143488 +0200
+++ /var/tmp/diff_new_pack.i0LWHD/_new  2017-09-15 21:08:52.752142927 +0200
@@ -79,6 +79,14 @@
 Patch51:parted-mkpart-allow-empty-gpt-part-name.patch
 Patch52:libparted-fix-starting-CHS-in-protective-MBR.patch
 Patch100:   parted-fatresize-autoconf.patch
+# Upstream tests patches
+Patch150:   tests-set-optimal-blocks-for-scsi_debug.patch
+Patch151:   tests-increase-scsi_debug-tmo.patch
+Patch152:   tests-use-wait_for_dev_to_-functions.patch
+Patch153:   tests-wait_for_-loop.patch
+Patch154:   tests-update-t0220-t0280-for-swap-flag.patch
+# SUSE tests patches
+Patch200:   tests-adapt-to-SUSE.patch
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
 BuildRequires:  e2fsprogs-devel
@@ -171,6 +179,12 @@
 %patch51 -p1
 %patch52 -p1
 %patch100 -p1
+%patch150 -p1
+%patch151 -p1
+%patch152 -p1
+%patch153 -p1
+%patch154 -p1
+%patch200 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"

++ libparted-partition-naming.patch ++
--- /var/tmp/diff_new_pack.i0LWHD/_old  2017-09-15 21:08:52.876125519 +0200
+++ /var/tmp/diff_new_pack.i0LWHD/_new  2017-09-15 21:08:52.880124958 +0200
@@ -1,11 +1,26 @@
+From: Petr Uzel 
+Subject: libparted: Change partition naming for SUSE needs
+References: bsc#1056508
+Patch-mainline: no, custom SUSE patch
+
+Device mapper partitions should always use the suffix "-part%d"
+for partition names. CPQ arrays and SDMMC devices should always
+use the "p%d" suffix. DAC960, ATARAID, and devices with a trailing
+number in their name should always use the "_part%d" suffix.
+All other devices should use the "%d" suffix.
+
+YaST depends on this.
+
+[mwilck: Fixed dm part name in _dm_add_partition(), bsc#1056508]
+[sparschauer: Fixed dm part name in _dm_resize_partition(), bsc#1056508]
+[sparschauer: Wrote the patch description]
+Signed-off-by: Sebastian Parschauer 
 ---
  libparted/arch/linux.c |   14 ++
  1 file changed, 10 insertions(+), 4 deletions(-)
 
-Index: parted-3.2/libparted/arch/linux.c
-===
 parted-3.2.orig/libparted/arch/linux.c
-+++ parted-3.2/libparted/arch/linux.c
+--- a/libparted/arch/linux.c
 b/libparted/arch/linux.c
 @@ -2342,11 +2342,17 @@ _device_get_part_path (PedDevice const *
  result = zasprintf ("%.*s/part%d",
  (int) (path_len - 5), devpath, num);
@@ -32,7 +47,16 @@
  vol_name = zasprintf ("%s%s%d",
dev_name,
 -  isdigit (dev_name[name_len - 1]) ? "p" : "",
-+  isdigit (dev_name[name_len - 1]) ? "-part" : "",
++  "-part",
+   part->num);
+ if (vol_name == NULL)
+ goto err;
+@@ -2870,7 +2876,7 @@ _dm_resize_partition (PedDisk* disk, con
+ size_t name_len = strlen (dev_name);
+ vol_name = zasprintf ("%s%s%d",
+   dev_name,
+-  isdigit (dev_name[n

commit parted for openSUSE:Factory

2017-09-04 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2017-09-04 12:26:03

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Mon Sep  4 12:26:03 2017 rev:117 rq:519107 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2017-08-23 
11:53:01.708796663 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2017-09-04 
12:26:07.005608656 +0200
@@ -1,0 +2,13 @@
+Thu Aug 24 16:51:37 CEST 2017 - sparscha...@suse.de
+
+- Drop using deprecated configure option "--disable-Werror"
+- Drop (SUSE specific) support for hybrid pMBR (gpt_sync_mbr
+  label) (fate#317849, bsc#1041322)
+  - remove: parted-gpt-mbr-sync.patch
+  - remove: libparted-ppc-prepboot-in-syncmbr.patch
+  - remove: parted-workaround-windows7-gpt-implementation.patch
+  - refresh patches
+- libparted: Fix starting CHS in protective MBR (bsc#969165)
+  - add: libparted-fix-starting-CHS-in-protective-MBR.patch
+
+---

Old:

  libparted-ppc-prepboot-in-syncmbr.patch
  parted-gpt-mbr-sync.patch
  parted-workaround-windows7-gpt-implementation.patch

New:

  libparted-fix-starting-CHS-in-protective-MBR.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.qWY47z/_old  2017-09-04 12:26:08.341420850 +0200
+++ /var/tmp/diff_new_pack.qWY47z/_new  2017-09-04 12:26:08.345420288 +0200
@@ -37,9 +37,6 @@
 Patch12:libparted-partition-naming.patch
 #PATCH-FEATURE-SUSE more-reliable-informing-the-kernel.patch bnc#657360 
petr.u...@suse.cz
 Patch13:more-reliable-informing-the-kernel.patch
-Patch14:parted-gpt-mbr-sync.patch
-Patch15:libparted-ppc-prepboot-in-syncmbr.patch
-Patch16:parted-workaround-windows7-gpt-implementation.patch
 Patch17:dummy-bootcode-only-for-x86.patch
 Patch18:parted-type.patch
 Patch19:parted-mac.patch
@@ -80,6 +77,7 @@
 Patch49:libparted-set-swap-flag-on-GPT-partitions.patch
 Patch50:libparted-dasd-add-swap-flag-handling-for-DASD-CDL.patch
 Patch51:parted-mkpart-allow-empty-gpt-part-name.patch
+Patch52:libparted-fix-starting-CHS-in-protective-MBR.patch
 Patch100:   parted-fatresize-autoconf.patch
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -136,9 +134,6 @@
 %patch11 -p1
 %patch12 -p1
 %patch13 -p1
-%patch14 -p1
-%patch15 -p1
-%patch16 -p1
 %patch17 -p1
 %patch18 -p1
 %patch19 -p1
@@ -174,6 +169,7 @@
 %patch49 -p1
 %patch50 -p1
 %patch51 -p1
+%patch52 -p1
 %patch100 -p1
 
 %build
@@ -184,7 +180,6 @@
--enable-device-mapper=yes  \
--enable-dynamic-loading=no \
--enable-selinux\
-   --disable-Werror\
--disable-silent-rules
 make %{?_smp_mflags}
 

++ libparted-fix-starting-CHS-in-protective-MBR.patch ++
From: Petr Uzel 
Date: Thu, 10 Mar 2016 14:18:52 +0100
Subject: libparted: Fix starting CHS in protective MBR
References: bsc#969165
Patch-mainline: v3.3
Git-commit: df6770d213b60320426a3ee0bed118d063b40fc5

The CHS address for protective partition start in protective MBR
should be 0/0/2, according to UEFI spec (v2.6, section 5.2.1).

* libparted/labels/gpt.c (_write_pmbr): Fix starting CHS address

Reported by Steffen Winterfeldt in https://bugzilla.suse.com/969165

Signed-off-by: Petr Uzel 
---
 libparted/labels/gpt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/libparted/labels/gpt.c
+++ b/libparted/labels/gpt.c
@@ -1143,7 +1143,7 @@ _write_pmbr (PedDevice *dev, bool pmbr_b
 
   pmbr->Signature = PED_CPU_TO_LE16 (MSDOS_MBR_SIGNATURE);
   pmbr->PartitionRecord[0].OSType = EFI_PMBR_OSTYPE_EFI;
-  pmbr->PartitionRecord[0].StartSector = 1;
+  pmbr->PartitionRecord[0].StartSector = 2;
   pmbr->PartitionRecord[0].EndHead = 0xFE;
   pmbr->PartitionRecord[0].EndSector = 0xFF;
   pmbr->PartitionRecord[0].EndTrack = 0xFF;
++ libparted-make-BLKRRPART-more-robust.patch ++
--- /var/tmp/diff_new_pack.qWY47z/_old  2017-09-04 12:26:08.521395547 +0200
+++ /var/tmp/diff_new_pack.qWY47z/_new  2017-09-04 12:26:08.525394985 +0200
@@ -2,11 +2,9 @@
  libparted/arch/linux.c |   10 +++---
  1 file changed, 7 insertions(+), 3 deletions(-)
 
-Index: parted-3.1/libparted/arch/linux.c
-===
 parted-3.1.orig/libparted/arch/linux.c
-+++ parted-3.1/libparted/arch/linux.c
-@@ -40,6 +40,7 @@
+--- a/libparted/arch/linux.c
 b/libparted/arch/linux.c
+@@ -39,6 +39,7 @@
  #include 
  #include 
  #include /* for uname() */
@@

commit parted for openSUSE:Factory

2017-08-23 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2017-08-23 11:53:00

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Wed Aug 23 11:53:00 2017 rev:116 rq:517037 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2017-06-20 
11:00:48.264090092 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2017-08-23 
11:53:01.708796663 +0200
@@ -1,0 +2,22 @@
+Tue Aug 15 17:21:02 CEST 2017 - sparscha...@suse.de
+
+- Fix s390x --wipesignatures regression caused by fate#320525
+  (bsc#1047031)
+  - amend: parted-implement-wipesignatures-option.patch
+  - refresh: 0002-dasd-enhance-device-probing.patch
+
+---
+Fri Aug 11 16:15:08 CEST 2017 - sparscha...@suse.de
+
+- Amend parsing of empty GPT partition names to require quoted
+  empty strings '""' or "''" (bsc#1023818, boo#1032562)
+  - amend: parted-mkpart-allow-empty-gpt-part-name.patch
+
+---
+Thu Aug 10 16:44:57 CEST 2017 - sparscha...@suse.de
+
+- parted: mkpart: Allow empty string "" for the GPT partition name
+  in script mode (bsc#1023818, boo#1032562)
+  - add: parted-mkpart-allow-empty-gpt-part-name.patch
+
+---

New:

  parted-mkpart-allow-empty-gpt-part-name.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.dy7N4N/_old  2017-08-23 11:53:03.624526986 +0200
+++ /var/tmp/diff_new_pack.dy7N4N/_new  2017-08-23 11:53:03.644524171 +0200
@@ -79,6 +79,7 @@
 Patch48:parted-mkpart-set-a-swap-flag-if-available.patch
 Patch49:libparted-set-swap-flag-on-GPT-partitions.patch
 Patch50:libparted-dasd-add-swap-flag-handling-for-DASD-CDL.patch
+Patch51:parted-mkpart-allow-empty-gpt-part-name.patch
 Patch100:   parted-fatresize-autoconf.patch
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -172,6 +173,7 @@
 %patch48 -p1
 %patch49 -p1
 %patch50 -p1
+%patch51 -p1
 %patch100 -p1
 
 %build

++ 0002-dasd-enhance-device-probing.patch ++
--- /var/tmp/diff_new_pack.dy7N4N/_old  2017-08-23 11:53:03.688517978 +0200
+++ /var/tmp/diff_new_pack.dy7N4N/_new  2017-08-23 11:53:03.688517978 +0200
@@ -141,7 +141,7 @@
 +#elif USE_BLKID
  get_minimum_alignment:linux_get_minimum_alignment,
  get_optimum_alignment:linux_get_optimum_alignment,
-   wipe_signatures: linux_wipe_signatures,
+ #endif
 --- a/libparted/device.c
 +++ b/libparted/device.c
 @@ -550,16 +550,10 @@ ped_device_get_optimum_alignment(const P


++ parted-implement-wipesignatures-option.patch ++
--- /var/tmp/diff_new_pack.dy7N4N/_old  2017-08-23 11:53:03.868492643 +0200
+++ /var/tmp/diff_new_pack.dy7N4N/_new  2017-08-23 11:53:03.880490954 +0200
@@ -1,13 +1,14 @@
-From f5216170b98e0c28dfee717fb03b6a06bcc2a3ee Mon Sep 17 00:00:00 2001
 From: Petr Uzel 
 Date: Thu, 28 Apr 2016 17:18:44 +0200
 Subject: [PATCH] parted: implement --wipesignatures option
+References: bsc#943623, fate#319893, bsc#980834
+Patch-mainline: no, custom extension
 
 With this option, parted uses libblkid to wipe superblock signatures
 from a disk region where it is about to create a new partition.
 
-References: bsc#943623
-References: fate#319893
+[sparschauer: Use own #if USE_BLKID block in linux_dev_ops (bsc#1047031)]
+Signed-off-by: Sebastian Parschauer 
 ---
  doc/C/parted.8 |4 
  include/parted/device.in.h |2 ++
@@ -16,10 +17,8 @@
  parted/parted.c|   16 
  5 files changed, 78 insertions(+)
 
-Index: parted-3.2/doc/C/parted.8
-===
 parted-3.2.orig/doc/C/parted.8
-+++ parted-3.2/doc/C/parted.8
+--- a/doc/C/parted.8
 b/doc/C/parted.8
 @@ -30,6 +30,10 @@ never prompts for user intervention
  .B -v, --version
  displays the version
@@ -31,10 +30,8 @@
  .B -a \fIalignment-type\fP, --align \fIalignment-type\fP
  Set alignment for newly created partitions, valid alignment types are:
  .RS
-Index: parted-3.2/include/parted/device.in.h
-===
 parted-3.2.orig/include/parted/device.in.h
-+++ parted-3.2/include/parted/device.in.h
+--- a/include/parted/device.in.h
 b/include/parted/device.in.h
 @@ -119,6 +119,7 @@ struct _PedDeviceArchOps {
  /* These functions are optional */
  PedAlignment *(*get_minimum_alignment)(const PedDevice *dev);
@@ -51,11 +48,9 @@
  
  /* private stuff ;-) */
  
-Index: parted-3.2/li

commit parted for openSUSE:Factory

2017-06-20 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2017-06-20 10:59:38

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Tue Jun 20 10:59:38 2017 rev:115 rq:503982 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2017-05-20 
10:11:36.717273366 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2017-06-20 
11:00:48.264090092 +0200
@@ -1,0 +2,16 @@
+Thu Jun 15 20:28:08 CEST 2017 - sparscha...@suse.de
+
+- Add a swap flag for dasd/gpt and handle it like gdisk/fdasd
+  (bsc#1044536, fate#314888)
+  - add: parted-mkpart-set-a-swap-flag-if-available.patch
+  - add: libparted-set-swap-flag-on-GPT-partitions.patch
+  - add: libparted-dasd-add-swap-flag-handling-for-DASD-CDL.patch
+
+---
+Wed May 24 17:15:17 CEST 2017 - sparscha...@suse.de
+
+- Fix printing DASD/CDL partition flags "lvm" and "raid"
+  (bsc#1040163, fate#314888)
+  - add: libparted-dasd-improve-lvm-raid-flag-handling.patch
+
+---

New:

  libparted-dasd-add-swap-flag-handling-for-DASD-CDL.patch
  libparted-dasd-improve-lvm-raid-flag-handling.patch
  libparted-set-swap-flag-on-GPT-partitions.patch
  parted-mkpart-set-a-swap-flag-if-available.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.797vQ3/_old  2017-06-20 11:00:50.239811600 +0200
+++ /var/tmp/diff_new_pack.797vQ3/_new  2017-06-20 11:00:50.239811600 +0200
@@ -74,6 +74,11 @@
 Patch44:libparted-dasd-update-and-improve-fdasd-functions.patch
 Patch45:libparted-dasd-add-new-fdasd-functions.patch
 Patch46:libparted-Add-support-for-RAM-drives.patch
+# fate#314888
+Patch47:libparted-dasd-improve-lvm-raid-flag-handling.patch
+Patch48:parted-mkpart-set-a-swap-flag-if-available.patch
+Patch49:libparted-set-swap-flag-on-GPT-partitions.patch
+Patch50:libparted-dasd-add-swap-flag-handling-for-DASD-CDL.patch
 Patch100:   parted-fatresize-autoconf.patch
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -163,6 +168,10 @@
 %patch44 -p1
 %patch45 -p1
 %patch46 -p1
+%patch47 -p1
+%patch48 -p1
+%patch49 -p1
+%patch50 -p1
 %patch100 -p1
 
 %build

++ libparted-dasd-add-swap-flag-handling-for-DASD-CDL.patch ++
From: Sebastian Parschauer 
Date: Thu, 15 Jun 2017 19:04:41 +0200
Subject: libparted/dasd: add swap flag handling for DASD-CDL
References: fate#314888, bsc#1044536
Patch-mainline: no, upstream wants to drop the swap flag

The way how the linux-swap partition type is handled is not how
fdasd handles it. It is only set if there is a linux-swap file
system set with mkpart or if there is a swap file system created
by mkswap on disk. But we want to know the partition type on disk.

So introduce a swap flag which behaves like the other flags. The
parted function do_mkpart() sets this flag for us if creating a
partition with FS type name "linux-swap*".

Signed-off-by: Sebastian Parschauer 
---
 libparted/labels/dasd.c | 42 +-
 1 file changed, 25 insertions(+), 17 deletions(-)

--- a/libparted/labels/dasd.c
+++ b/libparted/labels/dasd.c
@@ -65,6 +65,7 @@ extern void ped_disk_dasd_done ();
 typedef struct {
int type;
int system;
+   int swap;
int raid;
int lvm;
 } DasdPartitionData;
@@ -316,6 +317,7 @@ dasd_read (PedDisk* disk)
part->num = 1;
part->fs_type = ped_file_system_probe (&part->geom);
dasd_data = part->disk_specific;
+   dasd_data->swap = 0;
dasd_data->raid = 0;
dasd_data->lvm = 0;
dasd_data->type = 0;
@@ -400,6 +402,7 @@ dasd_read (PedDisk* disk)
part->num = 1;
part->fs_type = ped_file_system_probe (&part->geom);
dasd_data = part->disk_specific;
+   dasd_data->swap = 0;
dasd_data->raid = 0;
dasd_data->lvm = 0;
dasd_data->type = 0;
@@ -457,18 +460,11 @@ dasd_read (PedDisk* disk)
}
 
dasd_data = part->disk_specific;
+   dasd_data->swap = !strncmp(PART_TYPE_SWAP, str, 6);
dasd_data->raid = !strncmp(PART_TYPE_RAID, str, 6);
dasd_data->lvm = !strncmp(PART_TYPE_LVM, str, 6);
dasd_partition_set_system(part, part->fs_type);
 
-   if (strncmp(PART_TYPE_SWAP, str, 6) == 0) {
-   fs = ped_file_system_probe(&part->geom);
- 

commit parted for openSUSE:Factory

2017-05-20 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2017-05-20 10:11:35

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Sat May 20 10:11:35 2017 rev:114 rq:495788 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2017-05-04 
08:55:06.007081510 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2017-05-20 
10:11:36.717273366 +0200
@@ -1,0 +2,19 @@
+Tue May 16 15:28:47 CEST 2017 - sparscha...@suse.de
+
+- Enhance fdasd detection and probing (bsc#935127, fate#320525)
+  - add: 0001-fdasd-geometry-handling-updated-from-upstream-s390-t.patch
+  - add: 0002-dasd-enhance-device-probing.patch
+  - add: 0003-parted-fix-build-error-on-s390.patch
+  - add: 0004-fdasd.c-Safeguard-against-geometry-misprobing.patch
+  - add: 0005-libparted-Remove-fdasd-geometry-code-from-alloc_meta.patch
+  - refresh: libparted-dasd-update-and-improve-fdasd-functions.patch
+  - refresh: libparted-dasd-add-new-fdasd-functions.patch
+
+---
+Thu May 11 12:53:20 CEST 2017 - sparscha...@suse.de
+
+- Add support for RAM drives for not erasing them when printing
+  their partitions (bsc#1006834)
+  - add: libparted-Add-support-for-RAM-drives.patch
+
+---

New:

  0001-fdasd-geometry-handling-updated-from-upstream-s390-t.patch
  0002-dasd-enhance-device-probing.patch
  0003-parted-fix-build-error-on-s390.patch
  0004-fdasd.c-Safeguard-against-geometry-misprobing.patch
  0005-libparted-Remove-fdasd-geometry-code-from-alloc_meta.patch
  libparted-Add-support-for-RAM-drives.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.ij10Fm/_old  2017-05-20 10:11:37.993093100 +0200
+++ /var/tmp/diff_new_pack.ij10Fm/_new  2017-05-20 10:11:37.997092535 +0200
@@ -63,10 +63,17 @@
 Patch35:libparted-Add-support-for-NVMe-devices.patch
 Patch36:libparted-fix-nvme-partition-naming.patch
 Patch37:libparted-dont-warn-if-no-HDIO_GET_IDENTITY.patch
+# fate#320525 / bsc#935127
+Patch38:0001-fdasd-geometry-handling-updated-from-upstream-s390-t.patch
+Patch39:0002-dasd-enhance-device-probing.patch
+Patch40:0003-parted-fix-build-error-on-s390.patch
+Patch41:0004-fdasd.c-Safeguard-against-geometry-misprobing.patch
+Patch42:0005-libparted-Remove-fdasd-geometry-code-from-alloc_meta.patch
 # fate#321531
-Patch38:libparted-dasd-unify-vtoc-handling-for-cdl-ldl.patch
-Patch39:libparted-dasd-update-and-improve-fdasd-functions.patch
-Patch40:libparted-dasd-add-new-fdasd-functions.patch
+Patch43:libparted-dasd-unify-vtoc-handling-for-cdl-ldl.patch
+Patch44:libparted-dasd-update-and-improve-fdasd-functions.patch
+Patch45:libparted-dasd-add-new-fdasd-functions.patch
+Patch46:libparted-Add-support-for-RAM-drives.patch
 Patch100:   parted-fatresize-autoconf.patch
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -150,6 +157,12 @@
 %patch38 -p1
 %patch39 -p1
 %patch40 -p1
+%patch41 -p1
+%patch42 -p1
+%patch43 -p1
+%patch44 -p1
+%patch45 -p1
+%patch46 -p1
 %patch100 -p1
 
 %build

++ 0001-fdasd-geometry-handling-updated-from-upstream-s390-t.patch ++
From: Viktor Mihajlovski 
Date: Thu, 17 Sep 2015 15:33:28 +0200
Subject: fdasd: geometry handling updated from upstream s390-tools
References: fate#320525 / bsc#935127
Patch-mainline: v3.3
Git-commit: 4d480d980a9b69b432b8d60df3c4397ba8cdc965

Remove the necessity for DASD-specific ioctls for partition handling.
This allows to correctly handle DASD-backed virtio block devices.

Note that this is necessary because virtio is just the transport.
A DASD, even if provided via virtio, still has it's unique
characteristics, which means that only traditional DASD partition
table formats can be used (no MBR, GPT, or similar).

Use bzero for initialization to make sure all struct members are
properly cleared. Also changed partition list handling code to be
more similar to upstream s390-tools fdasd.

Further, enhanced error handling capabilities by providing a
return code by fdasd_get_geometry.

Code is largely backported from s390-tools project.

Signed-off-by: Viktor Mihajlovski 
Acked-by: Stefan Haberland 
Signed-off-by: Hendrik Brueckner 
Signed-off-by: Brian C. Lane 
Acked-by: Sebastian Parschauer 
---
 include/parted/fdasd.in.h |   4 +-
 libparted/labels/fdasd.c  | 166 --
 2 files changed, 119 insertions(+), 51 deletions(-)

--- a/include/parted/fdasd.in.h
+++ b/include/pa

commit parted for openSUSE:Factory

2017-05-03 Thread root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2017-05-04 08:55:04

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Thu May  4 08:55:04 2017 rev:113 rq:492573 version:3.2

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2016-08-25 
09:48:47.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2017-05-04 
08:55:06.007081510 +0200
@@ -1,0 +2,17 @@
+Tue May  2 10:45:37 CEST 2017 - sparscha...@suse.de
+
+- Use latest fdasd/vtoc code base from s390-tools (fate#321531)
+  - add: libparted-dasd-unify-vtoc-handling-for-cdl-ldl.patch
+  - add: libparted-dasd-update-and-improve-fdasd-functions.patch
+  - add: libparted-dasd-add-new-fdasd-functions.patch
+
+---
+Thu Apr 27 17:37:19 CEST 2017 - sparscha...@suse.de
+
+- libparted: Don't warn if the HDIO_GET_IDENTITY ioctl isn't
+  supported (bsc#964012, bsc#1001967)
+  - add: libparted-dont-warn-if-no-HDIO_GET_IDENTITY.patch
+- Amend patch description:
+  - libparted-open-the-device-RO-and-lazily-switch-to-RW.patch
+
+---

New:

  libparted-dasd-add-new-fdasd-functions.patch
  libparted-dasd-unify-vtoc-handling-for-cdl-ldl.patch
  libparted-dasd-update-and-improve-fdasd-functions.patch
  libparted-dont-warn-if-no-HDIO_GET_IDENTITY.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.UorEL5/_old  2017-05-04 08:55:07.770832769 +0200
+++ /var/tmp/diff_new_pack.UorEL5/_new  2017-05-04 08:55:07.774832205 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package parted
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -59,10 +59,14 @@
 Patch32:libparted-Use-read-only-when-probing-devices-on-linu.patch
 Patch33:libparted-open-the-device-RO-and-lazily-switch-to-RW.patch
 Patch34:parted-implement-wipesignatures-option.patch
-
 # bsc#982169
 Patch35:libparted-Add-support-for-NVMe-devices.patch
 Patch36:libparted-fix-nvme-partition-naming.patch
+Patch37:libparted-dont-warn-if-no-HDIO_GET_IDENTITY.patch
+# fate#321531
+Patch38:libparted-dasd-unify-vtoc-handling-for-cdl-ldl.patch
+Patch39:libparted-dasd-update-and-improve-fdasd-functions.patch
+Patch40:libparted-dasd-add-new-fdasd-functions.patch
 Patch100:   parted-fatresize-autoconf.patch
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -142,6 +146,10 @@
 %patch34 -p1
 %patch35 -p1
 %patch36 -p1
+%patch37 -p1
+%patch38 -p1
+%patch39 -p1
+%patch40 -p1
 %patch100 -p1
 
 %build

++ libparted-dasd-add-new-fdasd-functions.patch ++
From: Wang Dong 
Date: Wed, 26 Oct 2016 04:22:48 +0200
Subject: libparted/dasd: add new fdasd functions
References: fate#321531
Patch-mainline: v3.3
Git-commit: b9e12819ecef30087753b967bebc9809120593a6

Introduce a set of new functions from the fdasd utility of the s390-tools
to keep the code base in parted and s390-tools in sync.

These new functions are:
  fdasd_check_volser():  validate the volser input
  fdasd_get_volser():get volume serial (volser)
  fdasd_change_volser(): change volser with string
  fdasd_reuse_vtoc():re-create vtoc labels based on the existing vtoc

Signed-off-by: Wang Dong 
Signed-off-by: Hendrik Brueckner 
Signed-off-by: Brian C. Lane 
Acked-by: Sebastian Parschauer 
---
 include/parted/fdasd.in.h |   4 ++
 libparted/labels/fdasd.c  | 123 ++
 2 files changed, 127 insertions(+)

--- a/include/parted/fdasd.in.h
+++ b/include/parted/fdasd.in.h
@@ -291,5 +291,9 @@ void fdasd_recreate_vtoc(fdasd_anchor_t
 partition_info_t * fdasd_add_partition (fdasd_anchor_t *anc,
 unsigned int start, unsigned int stop);
 int fdasd_prepare_labels (fdasd_anchor_t *anc, int fd) ;
+void fdasd_check_volser(char *volser, int devno);
+int fdasd_get_volser(fdasd_anchor_t *anc, char *volser, int fd);
+void fdasd_change_volser(fdasd_anchor_t *anc, char *str);
+void fdasd_reuse_vtoc(fdasd_anchor_t *anc);
 
 #endif /* FDASD_H */
--- a/libparted/labels/fdasd.c
+++ b/libparted/labels/fdasd.c
@@ -1247,4 +1247,127 @@ fdasd_add_partition (fdasd_anchor_t *anc
return p;
 }
 
+/*
+ * Check for valid volume serial characters (max. 6) - remove invalid.
+ * If volser is empty, fill with default volser.
+ */
+void fdasd_check_

commit parted for openSUSE:Factory

2016-08-25 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2016-08-25 09:48:45

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2016-06-26 
23:51:49.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2016-08-25 
09:48:47.0 +0200
@@ -1,0 +2,14 @@
+Tue Aug  9 14:36:20 CEST 2016 - sparscha...@suse.de
+
+- Sync with SLES-12 SP2 for bsc#979275
+  - amend: libparted-open-the-device-RO-and-lazily-switch-to-RW.patch
+
+---
+Tue Aug  9 14:04:47 CEST 2016 - sparscha...@suse.de
+
+- Correctly flush caches before reading from the device
+  (bsc#989751)
+  - amend: libparted-open-the-device-RO-and-lazily-switch-to-RW.patch
+  - refresh: libparted-Add-support-for-NVMe-devices.patch
+
+---



Other differences:
--
++ libparted-Add-support-for-NVMe-devices.patch ++
--- /var/tmp/diff_new_pack.S9SOO7/_old  2016-08-25 09:48:48.0 +0200
+++ /var/tmp/diff_new_pack.S9SOO7/_new  2016-08-25 09:48:48.0 +0200
@@ -50,8 +50,8 @@
  
  #define SCSI_BLK_MAJOR(M) ( \
  (M) == SCSI_DISK0_MAJOR \
-@@ -463,6 +464,12 @@ _ensure_read_write (PedDevice *dev)
-_flush_cache (dev);
+@@ -461,6 +462,12 @@ _ensure_read_write (PedDevice *dev)
+ return;
  }
  
 +static int
@@ -63,7 +63,7 @@
  #ifdef ENABLE_DEVICE_MAPPER
  static int
  _dm_task_run_wait (struct dm_task *task, uint32_t cookie)
-@@ -714,6 +721,8 @@ _device_probe_type (PedDevice* dev)
+@@ -712,6 +719,8 @@ _device_probe_type (PedDevice* dev)
  dev->type = PED_DEVICE_LOOP;
  } else if (dev_major == MD_MAJOR) {
  dev->type = PED_DEVICE_MD;
@@ -72,7 +72,7 @@
  } else {
  dev->type = PED_DEVICE_UNKNOWN;
  }
-@@ -1473,6 +1482,11 @@ linux_new (const char* path)
+@@ -1471,6 +1480,11 @@ linux_new (const char* path)
  goto error_free_arch_specific;
  break;
  

++ libparted-open-the-device-RO-and-lazily-switch-to-RW.patch ++
--- /var/tmp/diff_new_pack.S9SOO7/_old  2016-08-25 09:48:48.0 +0200
+++ /var/tmp/diff_new_pack.S9SOO7/_new  2016-08-25 09:48:48.0 +0200
@@ -4,6 +4,11 @@
 Subject: [PATCH] libparted: open the device RO and lazily switch to RW only if
  necessary
 
+[sparschauer: Use _flush_cache() also for reads, don't switch to RW
+ in _flush_cache() to avoid a possible recursion (bnc#989751), open
+ partitions in _flush_cache() O_RDONLY instead of O_WRONLY]
+Signed-off-by: Sebastian Parschauer 
+
 Avoid useless udev events triggered by opening the device RW
 for purely read-only operations.
 
@@ -14,11 +19,11 @@
  libparted/arch/linux.h |  1 +
  2 files changed, 31 insertions(+), 3 deletions(-)
 
-diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
-index 326b956..0a50452 100644
 a/libparted/arch/linux.c
-+++ b/libparted/arch/linux.c
-@@ -294,6 +294,9 @@ static unsigned int _device_get_partition_range(PedDevice 
const* dev);
+Index: parted-3.2/libparted/arch/linux.c
+===
+--- parted-3.2.orig/libparted/arch/linux.c
 parted-3.2/libparted/arch/linux.c
+@@ -295,6 +295,9 @@ static unsigned int _device_get_partitio
  static int _device_open (PedDevice* dev, int flags);
  static int _device_open_ro (PedDevice* dev);
  static int _device_close (PedDevice* dev);
@@ -28,7 +33,7 @@
  
  static int
  _read_fd (int fd, char **buf)
-@@ -441,6 +444,24 @@ _is_virtblk_major (int major)
+@@ -442,6 +445,22 @@ _is_virtblk_major (int major)
  return _major_type_in_devices (major, "virtblk");
  }
  
@@ -46,22 +51,21 @@
 +
 +   if (!_device_open (dev, RW_MODE))
 +return;
-+
-+   _flush_cache (dev);
 +}
 +
  #ifdef ENABLE_DEVICE_MAPPER
  static int
  _dm_task_run_wait (struct dm_task *task, uint32_t cookie)
-@@ -1604,6 +1625,7 @@ _flush_cache (PedDevice* dev)
- 
- if (dev->read_only)
- return;
-+_ensure_read_write (dev);
- dev->dirty = 0;
- 
- ioctl (arch_specific->fd, BLKFLSBUF);
-@@ -1647,7 +1669,7 @@ _device_open_ro (PedDevice* dev)
+@@ -1603,7 +1622,7 @@ _flush_cache (PedDevice* dev)
+ if (!name)
+ break;
+ if (!_partition_is_mounted_by_path (name)) {
+-fd = open (name, WR_MODE, 0);
++fd = open (name, RD_MOD

commit parted for openSUSE:Factory

2016-06-26 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2016-06-26 23:51:46

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2016-05-29 
03:07:03.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2016-06-26 
23:51:49.0 +0200
@@ -1,0 +2,15 @@
+Sat Jun 18 07:08:01 UTC 2016 - jeng...@inai.de
+
+- install_info should run in %preun; otherwise the files to operate
+  are gone already.
+- Drop with-pic: only useful for static libs (which are not built)
+
+---
+Tue Jun 14 11:09:20 UTC 2016 - pu...@suse.com
+
+- Detect NVMe devices and fix the nvme partition naming scheme
+  (bsc#982169)
+  - libparted-Add-support-for-NVMe-devices.patch
+  - libparted-fix-nvme-partition-naming.patch
+
+---

New:

  libparted-Add-support-for-NVMe-devices.patch
  libparted-fix-nvme-partition-naming.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.IIiy4K/_old  2016-06-26 23:51:51.0 +0200
+++ /var/tmp/diff_new_pack.IIiy4K/_new  2016-06-26 23:51:51.0 +0200
@@ -59,6 +59,10 @@
 Patch32:libparted-Use-read-only-when-probing-devices-on-linu.patch
 Patch33:libparted-open-the-device-RO-and-lazily-switch-to-RW.patch
 Patch34:parted-implement-wipesignatures-option.patch
+
+# bsc#982169
+Patch35:libparted-Add-support-for-NVMe-devices.patch
+Patch36:libparted-fix-nvme-partition-naming.patch
 Patch100:   parted-fatresize-autoconf.patch
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -85,7 +89,7 @@
 
 %package -n libparted0
 Summary:Library for manipulating partitions
-Group:  System/Filesystems
+Group:  System/Libraries
 
 %description -n libparted0
 Libparted is a library for creating, destroying, resizing, checking
@@ -136,14 +140,15 @@
 %patch32 -p1
 %patch33 -p1
 %patch34 -p1
+%patch35 -p1
+%patch36 -p1
 %patch100 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"
-export LDFLAGS="`ncursesw6-config --libs`"
+export LIBS="`ncursesw6-config --libs`"
 AUTOPOINT=true autoreconf --force --install
 %configure --disable-static\
-   --with-pic  \
--enable-device-mapper=yes  \
--enable-dynamic-loading=no \
--enable-selinux\
@@ -152,24 +157,18 @@
 make %{?_smp_mflags}
 
 %install
-%makeinstall
+%make_install
 rm %{buildroot}%{_libdir}/*.la
 %find_lang %{name}
 
-%clean
-rm -rf %{buildroot}
-
 %post
 %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
 
-%postun
+%preun
 %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
 
-%post -n libparted0
-/sbin/ldconfig
-
-%postun -n libparted0
-/sbin/ldconfig
+%post -n libparted0 -p /sbin/ldconfig
+%postun -n libparted0 -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root)

++ libparted-Add-support-for-NVMe-devices.patch ++
>From 02bb5fe15b89b0a0ffd4019c9d04f16c0af29d46 Mon Sep 17 00:00:00 2001
From: Petr Uzel 
Date: Tue, 14 Jun 2016 10:41:18 +0200
Subject: [PATCH] Add support for NVMe devices

Recognize NVMe Devices, so "parted -s /dev/nvme0n1" now prints
"NVMe Device (nvme)" instead of "Model: Unknown (unknown)".

In order for a device to be recognized as NVMe, it has to
have a 'blkext' major number. But since this major can be
used also by other device types, we also check the device
path contains 'nvme' as a substring.

* NEWS: Mention the change
* include/parted/device.h.in(PedDeviceType): Add PED_DEVICE_NVME
* libparted/arch/linux.c(BLKEXT_MAJOR): New define.
* libparted/arch/linux.c(_is_blkext_major): New function.
* libparted/arch/linux.c(_device_probe_type): Recognize NVMe devices.
* libparted/arch/linux.c(linux_new): Handle NVMe devices.
* parted/parted.c(do_print): Add "nvme" to list of transports.
---
 include/parted/device.in.h |3 ++-
 libparted/arch/linux.c |   14 ++
 parted/parted.c|2 +-
 3 files changed, 17 insertions(+), 2 deletions(-)

Index: parted-3.2/include/parted/device.in.h
===
--- parted-3.2.orig/include/parted/device.in.h
+++ parted-3.2/include/parted/device.in.h
@@ -49,7 +49,8 @@ typedef enum {
 PED_DEVICE_VIRTBLK  = 15,
 PED_DEVICE_AOE  = 16,
 PED_DEVICE_MD   = 17,
-PED_DEVICE_LOOP = 18
+PED_DEVICE_LOOP

commit parted for openSUSE:Factory

2016-05-28 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2016-05-29 03:07:01

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2016-05-23 
16:36:45.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2016-05-29 
03:07:03.0 +0200
@@ -1,0 +2,9 @@
+Thu May 26 10:46:38 UTC 2016 - pu...@suse.com
+
+- Update parted-implement-wipesignatures-option.patch:
+  - Move functionality to libparted (bsc#980834)
+- libparted: open the device RO and lazily switch to RW only if
+  necessary (bsc#979275)
+  - libparted-open-the-device-RO-and-lazily-switch-to-RW.patch
+
+---

New:

  libparted-open-the-device-RO-and-lazily-switch-to-RW.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.Lnrb9o/_old  2016-05-29 03:07:04.0 +0200
+++ /var/tmp/diff_new_pack.Lnrb9o/_new  2016-05-29 03:07:04.0 +0200
@@ -57,7 +57,8 @@
 Patch30:libparted-avoid-libdevice-mapper-warnings.patch
 Patch31:parted-do-not-warn-when-shrinking-in-script-mode.patch
 Patch32:libparted-Use-read-only-when-probing-devices-on-linu.patch
-Patch33:parted-implement-wipesignatures-option.patch
+Patch33:libparted-open-the-device-RO-and-lazily-switch-to-RW.patch
+Patch34:parted-implement-wipesignatures-option.patch
 Patch100:   parted-fatresize-autoconf.patch
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -134,6 +135,7 @@
 %patch31 -p1
 %patch32 -p1
 %patch33 -p1
+%patch34 -p1
 %patch100 -p1
 
 %build

++ libparted-open-the-device-RO-and-lazily-switch-to-RW.patch ++
>From b9420b8e618c8ad988c410e4289273ac962ec918 Mon Sep 17 00:00:00 2001
From: Petr Uzel 
Date: Thu, 26 May 2016 09:28:21 +0200
Subject: [PATCH] libparted: open the device RO and lazily switch to RW only if
 necessary

Avoid useless udev events triggered by opening the device RW
for purely read-only operations.

References: https://bugzilla.novell.com/show_bug.cgi?id=979275
Author: Michael Matz 
---
 libparted/arch/linux.c | 33 ++---
 libparted/arch/linux.h |  1 +
 2 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 326b956..0a50452 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -294,6 +294,9 @@ static unsigned int _device_get_partition_range(PedDevice 
const* dev);
 static int _device_open (PedDevice* dev, int flags);
 static int _device_open_ro (PedDevice* dev);
 static int _device_close (PedDevice* dev);
+static int linux_close (PedDevice* dev);
+static void _flush_cache (PedDevice* dev);
+
 
 static int
 _read_fd (int fd, char **buf)
@@ -441,6 +444,24 @@ _is_virtblk_major (int major)
 return _major_type_in_devices (major, "virtblk");
 }
 
+static void
+_ensure_read_write (PedDevice *dev)
+{
+   PED_ASSERT (dev != NULL);
+   LinuxSpecific* arch_specific = LINUX_SPECIFIC (dev);
+
+   if (arch_specific->rw)
+  return;
+
+   if (!linux_close(dev))
+  return;
+
+   if (!_device_open (dev, RW_MODE))
+ return;
+
+   _flush_cache (dev);
+}
+
 #ifdef ENABLE_DEVICE_MAPPER
 static int
 _dm_task_run_wait (struct dm_task *task, uint32_t cookie)
@@ -1604,6 +1625,7 @@ _flush_cache (PedDevice* dev)
 
 if (dev->read_only)
 return;
+_ensure_read_write (dev);
 dev->dirty = 0;
 
 ioctl (arch_specific->fd, BLKFLSBUF);
@@ -1647,7 +1669,7 @@ _device_open_ro (PedDevice* dev)
 static int
 linux_open (PedDevice* dev)
 {
-return _device_open (dev, RW_MODE);
+return _device_open (dev, RD_MODE);
 }
 
 static int
@@ -1685,10 +1707,12 @@ retry:
 }
 } else {
 dev->read_only = 0;
+   if (flags == WR_MODE || flags == RW_MODE)
+   arch_specific->rw = 1;
+   else
+   arch_specific->rw = 0;
 }
 
-_flush_cache (dev);
-
 return 1;
 }
 
@@ -1920,6 +1944,7 @@ _write_lastoddsector (PedDevice* dev, const void* buffer)
 
 PED_ASSERT(dev != NULL);
 PED_ASSERT(buffer != NULL);
+_ensure_read_write (dev);
 
 arch_specific = LINUX_SPECIFIC (dev);
 
@@ -1968,6 +1993,7 @@ linux_write (PedDevice* dev, const void* buffer, 
PedSector start,
 return 1;
 }
 
+_ensure_read_write (dev);
 if (_get_linux_version() < KERNEL_VERSION (2,6,0)) {
 /* Kl

commit parted for openSUSE:Factory

2016-05-23 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2016-05-23 16:36:43

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2015-10-01 
09:27:11.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2016-05-23 
16:36:45.0 +0200
@@ -1,0 +2,13 @@
+Wed May 18 07:23:08 UTC 2016 - pu...@suse.com
+
+- implement --wipesignatures option (bsc#943623, fate#319893)
+  - parted-implement-wipesignatures-option.patch
+
+---
+Fri Mar 11 11:20:12 UTC 2016 - pu...@suse.com
+
+- libparted: Use read only when probing devices on linux
+  - libparted-Use-read-only-when-probing-devices-on-linu.patch
+  (bsc#967375)
+
+---

New:

  libparted-Use-read-only-when-probing-devices-on-linu.patch
  parted-implement-wipesignatures-option.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.surSnA/_old  2016-05-23 16:36:46.0 +0200
+++ /var/tmp/diff_new_pack.surSnA/_new  2016-05-23 16:36:46.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package parted
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -56,6 +56,8 @@
 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
+Patch32:libparted-Use-read-only-when-probing-devices-on-linu.patch
+Patch33:parted-implement-wipesignatures-option.patch
 Patch100:   parted-fatresize-autoconf.patch
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -130,6 +132,8 @@
 %patch29 -p1
 %patch30 -p1
 %patch31 -p1
+%patch32 -p1
+%patch33 -p1
 %patch100 -p1
 
 %build

++ libparted-Use-read-only-when-probing-devices-on-linu.patch ++
>From 44d5ae0115c4ecfe3158748309e9912c5aede92d Mon Sep 17 00:00:00 2001
From: "Brian C. Lane" 
Date: Thu, 6 Aug 2015 07:17:14 -0700
Subject: [PATCH] libparted: Use read only when probing devices on linux
 (#1245144)

When a device is opened for RW closing it can trigger other actions,
like udev scanning it for partition changes. Use read only for the
init_* methods and RW for actual changes to the device.

This adds _device_open which takes mode flags as an argument and turns
linux_open into a wrapper for it with RW_MODE.

_device_open_ro is added to open the device with RD_MODE and increment
the open_counter. This is used in the init_* functions.

_device_close is a wrapper around linux_close that decrements the
open_counter and is used in the init_* functions.

All of these changes are self-contained with no external API changes.
The only visible change in behavior is that when a new PedDevice is
created the device is opened in RO_MODE instead of RW_MODE.

Resolves: rhbz#1245144
---
 libparted/arch/linux.c |   62 ++---
 1 file changed, 44 insertions(+), 18 deletions(-)

Index: parted-3.2/libparted/arch/linux.c
===
--- parted-3.2.orig/libparted/arch/linux.c
+++ parted-3.2/libparted/arch/linux.c
@@ -292,7 +292,9 @@ struct blkdev_ioctl_param {
 static char* _device_get_part_path (PedDevice const *dev, int num);
 static int _partition_is_mounted_by_path (const char* path);
 static unsigned int _device_get_partition_range(PedDevice const* dev);
-
+static int _device_open (PedDevice* dev, int flags);
+static int _device_open_ro (PedDevice* dev);
+static int _device_close (PedDevice* dev);
 
 static int
 _read_fd (int fd, char **buf)
@@ -911,7 +913,7 @@ init_ide (PedDevice* dev)
 if (!_device_stat (dev, &dev_stat))
 goto error;
 
-if (!ped_device_open (dev))
+if (!_device_open_ro (dev))
 goto error;
 
 if (ioctl (arch_specific->fd, HDIO_GET_IDENTITY, &hdi)) {
@@ -980,11 +982,11 @@ init_ide (PedDevice* dev)
 if (!_device_probe_geometry (dev))
 goto error_close_dev;
 
-ped_device_close (dev);
+_device_close (dev);
 return 1;
 
 error_close_dev:
-ped_device_close (dev);
+_device_close (dev);
 error:
 return 0;
 }
@@ -1117,7 +1119,7 @@ init_scsi (PedDevice* dev)
 char* vendor;
 char* product;

commit parted for openSUSE:Factory

2015-10-01 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2015-10-01 09:27:10

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2015-06-04 
08:59:58.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2015-10-01 
09:27:11.0 +0200
@@ -1,0 +2,6 @@
+Thu Sep 10 09:18:30 UTC 2015 - fv...@suse.com
+
+- Update parted-gpt-mbr-sync.patch to fix bsc#945068
+  Basically just a copy of gpt_alloc with minor modifications now 
+
+---



Other differences:
--

++ parted-gpt-mbr-sync.patch ++
--- /var/tmp/diff_new_pack.rYARt7/_old  2015-10-01 09:27:12.0 +0200
+++ /var/tmp/diff_new_pack.rYARt7/_new  2015-10-01 09:27:12.0 +0200
@@ -86,7 +86,7 @@
  static PedDisk *
  gpt_alloc (const PedDevice *dev)
  {
-@@ -553,6 +609,36 @@ error:
+@@ -553,6 +609,50 @@ error:
  }
  
  static PedDisk *
@@ -99,18 +99,32 @@
 +  disk = _ped_disk_alloc ((PedDevice *) dev, &gpt_sync_mbr_disk_type);
 +  if (!disk)
 +goto error;
-+  disk->disk_specific = gpt_disk_data = ped_malloc (sizeof (GPTDiskData));
-+  if (!disk->disk_specific)
-+goto error_free_disk;
 +
 +  data_start = 2 + GPT_DEFAULT_PARTITION_ENTRY_ARRAY_SIZE / dev->sector_size;
 +  data_end = dev->length - 2
 +- GPT_DEFAULT_PARTITION_ENTRY_ARRAY_SIZE / dev->sector_size;
++
++  /* If the device is too small to accommodate GPT headers and one data
++ sector, reject it.  */
++  if (data_end < data_start)
++{
++  ped_exception_throw (PED_EXCEPTION_ERROR,
++ PED_EXCEPTION_OK,
++ _("device is too small for GPT"));
++  goto error_free_disk;
++}
++
++  disk->disk_specific = gpt_disk_data = ped_malloc (sizeof (GPTDiskData));
++  if (!disk->disk_specific)
++goto error_free_disk;
++
++  gpt_disk_data->AlternateLBA = dev->length - 1;
 +  ped_geometry_init (&gpt_disk_data->data_area, dev, data_start,
 + data_end - data_start + 1);
 +  gpt_disk_data->entry_count = GPT_DEFAULT_PARTITION_ENTRIES;
 +  uuid_generate ((unsigned char *) &gpt_disk_data->uuid);
 +  swap_uuid_and_efi_guid ((unsigned char *) (&gpt_disk_data->uuid));
++  gpt_disk_data->pmbr_boot = 0;
 +  return disk;
 +
 +error_free_disk:
@@ -123,7 +137,7 @@
  gpt_duplicate (const PedDisk *disk)
  {
PedDisk *new_disk;
-@@ -963,7 +1049,7 @@ gpt_read (PedDisk *disk)
+@@ -963,7 +1063,7 @@ gpt_read (PedDisk *disk)
  
/* motivation: let the user decide about the pmbr... during
   ped_disk_probe(), they probably didn't get a choice... */
@@ -132,7 +146,7 @@
  goto error;
  
GuidPartitionTableHeader_t *gpt = NULL;
-@@ -1120,11 +1206,59 @@ error:
+@@ -1120,11 +1220,59 @@ error:
return 0;
  }
  
@@ -193,7 +207,7 @@
/* The UEFI spec is not clear about what to do with the following
   elements of the Protective MBR (pmbr): BootCode (0-440B),
   UniqueMBRSignature (440B-444B) and Unknown (444B-446B).
-@@ -1138,6 +1272,8 @@ _write_pmbr (PedDevice *dev, bool pmbr_b
+@@ -1138,6 +1286,8 @@ _write_pmbr (PedDevice *dev, bool pmbr_b
memset (pmbr->PartitionRecord, 0, sizeof pmbr->PartitionRecord);
  
pmbr->Signature = PED_CPU_TO_LE16 (MSDOS_MBR_SIGNATURE);
@@ -202,7 +216,7 @@
pmbr->PartitionRecord[0].OSType = EFI_PMBR_OSTYPE_EFI;
pmbr->PartitionRecord[0].StartSector = 1;
pmbr->PartitionRecord[0].EndHead = 0xFE;
-@@ -1150,6 +1286,60 @@ _write_pmbr (PedDevice *dev, bool pmbr_b
+@@ -1150,6 +1300,60 @@ _write_pmbr (PedDevice *dev, bool pmbr_b
  pmbr->PartitionRecord[0].SizeInLBA = PED_CPU_TO_LE32 (dev->length - 1UL);
if (pmbr_boot)
  pmbr->PartitionRecord[0].BootIndicator = 0x80;
@@ -263,7 +277,7 @@
  
int write_ok = ped_device_write (dev, pmbr, GPT_PMBR_LBA,
 GPT_PMBR_SECTORS);
-@@ -1269,7 +1459,7 @@ gpt_write (const PedDisk *disk)
+@@ -1269,7 +1473,7 @@ gpt_write (const PedDisk *disk)
ptes_crc = efi_crc32 (ptes, ptes_bytes);
  
/* Write protective MBR */
@@ -272,7 +286,7 @@
  goto error_free_ptes;
  
/* Write PTH and PTEs */
-@@ -2034,6 +2224,38 @@ static PedDiskOps gpt_disk_ops =
+@@ -2034,6 +2238,38 @@ static PedDiskOps gpt_disk_ops =
PT_op_function_initializers (gpt)
  };
  
@@ -311,7 +325,7 @@
  static PedDiskType gpt_disk_type =
  {
next:   NULL,
-@@ -2042,16 +2264,26 @@ static PedDiskType gpt_disk_type =
+@@ -2042,16 +2278,26 @@ static PedDiskType gpt_disk_type =
features:   PED_DISK_TYPE_PARTITION_NAME
  };
  





commit parted for openSUSE:Factory

2015-06-04 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2015-06-04 08:59:57

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2015-05-06 
11:18:24.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2015-06-04 
08:59:58.0 +0200
@@ -1,0 +2,12 @@
+Tue May 26 11:21:37 UTC 2015 - pu...@suse.com
+
+- Remove 'udevadm' from Requires; parted no longer calls 'udevadm
+  settle'
+
+---
+Thu May 21 06:42:51 UTC 2015 - pu...@suse.com
+
+- Add note to specfile to remove parted-resize-alias-to-resizepart.patch
+  compatibility patch once bnc#931765 is resolved.
+
+---



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.EOr4Bm/_old  2015-06-04 08:59:59.0 +0200
+++ /var/tmp/diff_new_pack.EOr4Bm/_new  2015-06-04 08:59:59.0 +0200
@@ -52,11 +52,11 @@
 Patch26:lib-fs-resize-prevent-crash-resizing-FAT16.patch
 Patch27:parted-dont-crash-in-disk_set-when-disk-label-not-found.patch
 Patch28:libparted-device-mapper-uses-512b-sectors.patch
+# Remove following compatibility patch once bnc#931765 is resolved
 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
 BuildRequires:  device-mapper-devel >= 1.02.33
 BuildRequires:  e2fsprogs-devel






commit parted for openSUSE:Factory

2015-05-06 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2015-05-06 11:18:22

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2015-04-30 
10:50:39.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2015-05-06 
11:18:24.0 +0200
@@ -1,0 +2,71 @@
+Tue May  5 13:39:24 UTC 2015 - pu...@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 - pu...@suse.com
+
+- Update to parted-3.2; Notable changes:
+  - Added new partition type flag, esp, to set the type to 0xEF on
+MS-DOS.  Also aliased to boot on GPT to set the UEFI ESP GUID.
+  - You can now choose to ignore errors about partitions that
+overlap, or are longer than the disk.  This allows you to use
+parted to repair the problem.
+  - When attempting to manipulate a mounted partition, parted now
+issues a warning that you can choose to ignore, instead of an
+error.
+  - When creating a loop label, it automatically comes with a
+partition using the whole disk.
+  - parted -l no longer lists device-mapper devices other than
+dmraid whole disks.
+  - Added new Linux-specific partition GUID type code
+(0FC63DAF-8483-4772-8E79-3D69D8477DE4) for Linux filesystem
+data on GPT disks.  This type code is now assigned as the
+default partition type code for new partitions holding Linux
+filesystems.
+  - Added new "msftdata" flag to identify partitions holding NTFS
+or FAT filesystems on GPT disks.  This flag corresponds to a
+GPT type code of EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
+("Microsoft Basic Data").  Since Linux filesystem partitions
+formerly used this type code, this flag may optionally be set
+on Linux partitions to make the partition table type codes
+match former configurations in case the new Linux filesystem
+type code causes problems with some utility.  Note that this
+flag cannot be removed from NTFS or FAT partitions within
+parted except by setting a competing flag, such as "boot"
+(which sets the type code used by EFI System partitions) or
+"msftres" (which sets the "Microsoft Reserved" type code).
+  - Many bugfixes (see /usr/share/doc/packages/parted/NEWS)
+- merge parted-fix-cciss-partition-naming.patch,
+  libparted-fix-mmcblk-partition-name.patch,
+  fix-dm-partition-name.patch
+  into libparted-partition-naming.patch
+- Add parted-resize-alias-to-resizepart.patch
+- Add libparted-avoid-libdevice-mapper-warnings.patch
+- drop patches (in upstream):
+  - fix-error-informing-the-kernel.patch
+  - Fix-help-text-for-disk_-set-toggle.patch
+  - libparted-Avoid-dasd-as-default-disk-type-while-probe.patch
+  - libparted-add-support-for-EAV-DASD-partitions.patch
+  - libparted-add-support-for-implicit-FBA-DASD-partition.patch
+  - libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
+  - libparted-initialize-dasd-part-type.patch
+  - libparted-mklabel-to-support-EAV-DASD.patch
+  - libparted-mklabel-to-support-EDEV-DASD.patch
+  - parted-Add-Intel-Rapid-Start-Technology-partition.patch
+  - parted-GPT-add-support-for-PReP-GUID.patch
+  - parted-btrfs-support.patch
+  - parted-resize-command.patch
+- drop do-not-create-dm-nodes.patch: Not needed anymore since
+  parted DM handling has been reworked.
+- modified more-reliable-informing-the-kernel.patch: No longer
+  call 'udevadm settle' as it was causing issues.
+- add patches from upstream (post-3.2):
+  - lib-fs-resize-prevent-crash-resizing-FAT16.patch
+  - libparted-device-mapper-uses-512b-sectors.patch
+  - parted-dont-crash-in-disk_set-when-disk-label-not-found.patch
+- refresh patches
+
+---

Old:

  Fix-help-text-for-disk_-set-toggle.patch
  do-not-create-dm-nodes.patch
  fix-dm-partition-name.patch
  fix-error-informing-the-kernel.patch
  libparted-Avoid-dasd-as-default-disk-type-while-probe.patch
  libparted-add-support-for-EAV-DASD-partitions.patch
  libparted-add-support-for-implicit-FBA-DASD-partition.patch
  libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
  libparted-fix-mmcblk-partition-name.patch
  libparted-initialize-dasd-part-type.patch
  libparted-mklabel-to-support-EAV-DASD.patch
  libparted-mklabel-to-support-EDEV-DASD.patch
  parted-3.1.tar.xz
  parted-3.1.tar.xz.sig
  parted-Add-Intel-Rapid-Start-Technology-partition.patch
  parted-GPT-add-support-for-PReP-GUID.patch
  parted-btrfs-support.patch
  parted-fix-cciss-partition-naming.patch
  p

commit parted for openSUSE:Factory

2015-04-30 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2015-04-30 10:50:38

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2015-04-27 
12:59:27.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2015-04-30 
10:50:39.0 +0200
@@ -2,64 +1,0 @@
-Wed Feb 11 15:01:56 UTC 2015 - pu...@suse.com
-
-- Update to parted-3.2; Notable changes:
-  - Added new partition type flag, esp, to set the type to 0xEF on
-MS-DOS.  Also aliased to boot on GPT to set the UEFI ESP GUID.
-  - You can now choose to ignore errors about partitions that
-overlap, or are longer than the disk.  This allows you to use
-parted to repair the problem.
-  - When attempting to manipulate a mounted partition, parted now
-issues a warning that you can choose to ignore, instead of an
-error.
-  - When creating a loop label, it automatically comes with a
-partition using the whole disk.
-  - parted -l no longer lists device-mapper devices other than
-dmraid whole disks.
-  - Added new Linux-specific partition GUID type code
-(0FC63DAF-8483-4772-8E79-3D69D8477DE4) for Linux filesystem
-data on GPT disks.  This type code is now assigned as the
-default partition type code for new partitions holding Linux
-filesystems.
-  - Added new "msftdata" flag to identify partitions holding NTFS
-or FAT filesystems on GPT disks.  This flag corresponds to a
-GPT type code of EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
-("Microsoft Basic Data").  Since Linux filesystem partitions
-formerly used this type code, this flag may optionally be set
-on Linux partitions to make the partition table type codes
-match former configurations in case the new Linux filesystem
-type code causes problems with some utility.  Note that this
-flag cannot be removed from NTFS or FAT partitions within
-parted except by setting a competing flag, such as "boot"
-(which sets the type code used by EFI System partitions) or
-"msftres" (which sets the "Microsoft Reserved" type code).
-  - Many bugfixes (see /usr/share/doc/packages/parted/NEWS)
-- merge parted-fix-cciss-partition-naming.patch,
-  libparted-fix-mmcblk-partition-name.patch,
-  fix-dm-partition-name.patch
-  into libparted-partition-naming.patch
-- Add parted-resize-alias-to-resizepart.patch
-- Add libparted-avoid-libdevice-mapper-warnings.patch
-- drop patches (in upstream):
-  - fix-error-informing-the-kernel.patch
-  - Fix-help-text-for-disk_-set-toggle.patch
-  - libparted-Avoid-dasd-as-default-disk-type-while-probe.patch
-  - libparted-add-support-for-EAV-DASD-partitions.patch
-  - libparted-add-support-for-implicit-FBA-DASD-partition.patch
-  - libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
-  - libparted-initialize-dasd-part-type.patch
-  - libparted-mklabel-to-support-EAV-DASD.patch
-  - libparted-mklabel-to-support-EDEV-DASD.patch
-  - parted-Add-Intel-Rapid-Start-Technology-partition.patch
-  - parted-GPT-add-support-for-PReP-GUID.patch
-  - parted-btrfs-support.patch
-  - parted-resize-command.patch
-- drop do-not-create-dm-nodes.patch: Not needed anymore since
-  parted DM handling has been reworked.
-- modified more-reliable-informing-the-kernel.patch: No longer
-  call 'udevadm settle' as it was causing issues.
-- add patches from upstream (post-3.2):
-  - lib-fs-resize-prevent-crash-resizing-FAT16.patch
-  - libparted-device-mapper-uses-512b-sectors.patch
-  - parted-dont-crash-in-disk_set-when-disk-label-not-found.patch
-- refresh patches
-


Old:

  lib-fs-resize-prevent-crash-resizing-FAT16.patch
  libparted-avoid-libdevice-mapper-warnings.patch
  libparted-device-mapper-uses-512b-sectors.patch
  libparted-partition-naming.patch
  parted-3.2.tar.xz
  parted-3.2.tar.xz.sig
  parted-dont-crash-in-disk_set-when-disk-label-not-found.patch
  parted-resize-alias-to-resizepart.patch

New:

  Fix-help-text-for-disk_-set-toggle.patch
  do-not-create-dm-nodes.patch
  fix-dm-partition-name.patch
  fix-error-informing-the-kernel.patch
  libparted-Avoid-dasd-as-default-disk-type-while-probe.patch
  libparted-add-support-for-EAV-DASD-partitions.patch
  libparted-add-support-for-implicit-FBA-DASD-partition.patch
  libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
  libparted-fix-mmcblk-partition-name.patch
  libparted-initialize-dasd-part-type.patch
  libparted-mklabel-to-support-EAV-DASD.patch
  libparted-mklabel-to-support-EDEV-DASD.patch
  parted-3.1.tar.xz
  parted-3.1.tar.xz.sig
  parted-Add-Intel-Rapid-Start-Technology-partition.patch
  parted-GPT-add-support-for-PReP-GUID.

commit parted for openSUSE:Factory

2015-04-27 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2015-04-27 12:59:26

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-12-09 
09:13:17.0 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2015-04-27 
12:59:27.0 +0200
@@ -1,0 +2,64 @@
+Wed Feb 11 15:01:56 UTC 2015 - pu...@suse.com
+
+- Update to parted-3.2; Notable changes:
+  - Added new partition type flag, esp, to set the type to 0xEF on
+MS-DOS.  Also aliased to boot on GPT to set the UEFI ESP GUID.
+  - You can now choose to ignore errors about partitions that
+overlap, or are longer than the disk.  This allows you to use
+parted to repair the problem.
+  - When attempting to manipulate a mounted partition, parted now
+issues a warning that you can choose to ignore, instead of an
+error.
+  - When creating a loop label, it automatically comes with a
+partition using the whole disk.
+  - parted -l no longer lists device-mapper devices other than
+dmraid whole disks.
+  - Added new Linux-specific partition GUID type code
+(0FC63DAF-8483-4772-8E79-3D69D8477DE4) for Linux filesystem
+data on GPT disks.  This type code is now assigned as the
+default partition type code for new partitions holding Linux
+filesystems.
+  - Added new "msftdata" flag to identify partitions holding NTFS
+or FAT filesystems on GPT disks.  This flag corresponds to a
+GPT type code of EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
+("Microsoft Basic Data").  Since Linux filesystem partitions
+formerly used this type code, this flag may optionally be set
+on Linux partitions to make the partition table type codes
+match former configurations in case the new Linux filesystem
+type code causes problems with some utility.  Note that this
+flag cannot be removed from NTFS or FAT partitions within
+parted except by setting a competing flag, such as "boot"
+(which sets the type code used by EFI System partitions) or
+"msftres" (which sets the "Microsoft Reserved" type code).
+  - Many bugfixes (see /usr/share/doc/packages/parted/NEWS)
+- merge parted-fix-cciss-partition-naming.patch,
+  libparted-fix-mmcblk-partition-name.patch,
+  fix-dm-partition-name.patch
+  into libparted-partition-naming.patch
+- Add parted-resize-alias-to-resizepart.patch
+- Add libparted-avoid-libdevice-mapper-warnings.patch
+- drop patches (in upstream):
+  - fix-error-informing-the-kernel.patch
+  - Fix-help-text-for-disk_-set-toggle.patch
+  - libparted-Avoid-dasd-as-default-disk-type-while-probe.patch
+  - libparted-add-support-for-EAV-DASD-partitions.patch
+  - libparted-add-support-for-implicit-FBA-DASD-partition.patch
+  - libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
+  - libparted-initialize-dasd-part-type.patch
+  - libparted-mklabel-to-support-EAV-DASD.patch
+  - libparted-mklabel-to-support-EDEV-DASD.patch
+  - parted-Add-Intel-Rapid-Start-Technology-partition.patch
+  - parted-GPT-add-support-for-PReP-GUID.patch
+  - parted-btrfs-support.patch
+  - parted-resize-command.patch
+- drop do-not-create-dm-nodes.patch: Not needed anymore since
+  parted DM handling has been reworked.
+- modified more-reliable-informing-the-kernel.patch: No longer
+  call 'udevadm settle' as it was causing issues.
+- add patches from upstream (post-3.2):
+  - lib-fs-resize-prevent-crash-resizing-FAT16.patch
+  - libparted-device-mapper-uses-512b-sectors.patch
+  - parted-dont-crash-in-disk_set-when-disk-label-not-found.patch
+- refresh patches
+
+---

Old:

  Fix-help-text-for-disk_-set-toggle.patch
  do-not-create-dm-nodes.patch
  fix-dm-partition-name.patch
  fix-error-informing-the-kernel.patch
  libparted-Avoid-dasd-as-default-disk-type-while-probe.patch
  libparted-add-support-for-EAV-DASD-partitions.patch
  libparted-add-support-for-implicit-FBA-DASD-partition.patch
  libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
  libparted-fix-mmcblk-partition-name.patch
  libparted-initialize-dasd-part-type.patch
  libparted-mklabel-to-support-EAV-DASD.patch
  libparted-mklabel-to-support-EDEV-DASD.patch
  parted-3.1.tar.xz
  parted-3.1.tar.xz.sig
  parted-Add-Intel-Rapid-Start-Technology-partition.patch
  parted-GPT-add-support-for-PReP-GUID.patch
  parted-btrfs-support.patch
  parted-fix-cciss-partition-naming.patch
  parted-resize-command.patch

New:

  lib-fs-resize-prevent-crash-resizing-FAT16.patch
  libparted-avoid-libdevice-mapper-warnings.patch
  libparted-device-mapper-uses-512b-sectors.patch
  libparted-partition-naming.patch
  parted-3.2.tar.xz
  parted-3.2.tar.xz.sig

commit parted for openSUSE:Factory

2014-12-09 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-12-09 09:13:41

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-09-24 
13:09:02.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-12-09 
09:13:17.0 +0100
@@ -1,0 +2,8 @@
+Fri Nov 14 09:18:50 UTC 2014 - dims...@opensuse.org
+
+- No longer perform gpg validation; osc source_validator does it
+  implicit:
+  + Drop gpg-offline BuildRequires.
+  + No longer execute gpg_verify.
+
+---



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.ycmIU3/_old  2014-12-09 09:13:19.0 +0100
+++ /var/tmp/diff_new_pack.ycmIU3/_new  2014-12-09 09:13:19.0 +0100
@@ -81,9 +81,6 @@
 BuildRequires:  makeinfo
 BuildRequires:  pkg-config
 BuildRequires:  readline-devel
-%if %suse_version >= 1230
-BuildRequires:  gpg-offline
-%endif
 PreReq: %install_info_prereq
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # bug437293
@@ -121,7 +118,6 @@
 
 %lang_package
 %prep
-%{?gpg_verify: %gpg_verify %{S:1}}
 %setup -a 4
 %patch1 -p1
 %patch10 -p1



-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2014-09-24 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-09-24 13:09:00

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-09-10 
07:27:45.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-09-24 
13:09:02.0 +0200
@@ -1,0 +2,11 @@
+Thu Sep 11 10:30:04 UTC 2014 - pu...@suse.com
+
+- Add an "implicit_partition_table" disk flag to mark
+  FBA DASD disks with fake partition (bnc#894585)
+  - libparted-dasd-implicit-partition-disk-flag.patch
+- refresh following patches to fix build:
+  - parted-type.patch
+  - parted-mac.patch
+  - parted-Add-Intel-Rapid-Start-Technology-partition.patch
+
+---

New:

  libparted-dasd-implicit-partition-disk-flag.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.qwiNZB/_old  2014-09-24 13:09:04.0 +0200
+++ /var/tmp/diff_new_pack.qwiNZB/_new  2014-09-24 13:09:04.0 +0200
@@ -66,6 +66,7 @@
 Patch39:libparted-mklabel-to-support-EDEV-DASD.patch
 Patch40:libparted-make-BLKRRPART-more-robust.patch
 Patch41:
libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch
+Patch42:libparted-dasd-implicit-partition-disk-flag.patch
 Patch100:   parted-fatresize-autoconf.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
@@ -154,6 +155,7 @@
 %patch39 -p1
 %patch40 -p1
 %patch41 -p1
+%patch42 -p1
 %patch100 -p1
 
 %build

++ libparted-dasd-implicit-partition-disk-flag.patch ++
---
 include/parted/disk.in.h |4 +++-
 libparted/disk.c |2 ++
 libparted/labels/dasd.c  |   45 +
 3 files changed, 50 insertions(+), 1 deletion(-)

Index: parted-3.1/include/parted/disk.in.h
===
--- parted-3.1.orig/include/parted/disk.in.h
+++ parted-3.1/include/parted/disk.in.h
@@ -38,9 +38,11 @@ enum _PedDiskFlag {
 PED_DISK_CYLINDER_ALIGNMENT=1,
 /* This flag controls whether the boot flag of a GPT PMBR is set */
 PED_DISK_GPT_PMBR_BOOT=2,
+   /* This flag indicates that there is an implicit (aka fake) partition 
on the DASD disk */
+   PED_DISK_DASD_IMPLICIT_PARTITION=3,
 };
 #define PED_DISK_FIRST_FLAG PED_DISK_CYLINDER_ALIGNMENT
-#define PED_DISK_LAST_FLAG  PED_DISK_GPT_PMBR_BOOT
+#define PED_DISK_LAST_FLAG  PED_DISK_DASD_IMPLICIT_PARTITION
 
 /**
  * Partition types
Index: parted-3.1/libparted/disk.c
===
--- parted-3.1.orig/libparted/disk.c
+++ parted-3.1/libparted/disk.c
@@ -838,6 +838,8 @@ ped_disk_flag_get_name(PedDiskFlag flag)
 return N_("cylinder_alignment");
 case PED_DISK_GPT_PMBR_BOOT:
 return N_("pmbr_boot");
+   case PED_DISK_DASD_IMPLICIT_PARTITION:
+   return N_("implicit_partition_table");
 default:
 ped_exception_throw (
 PED_EXCEPTION_BUG,
Index: parted-3.1/libparted/labels/dasd.c
===
--- parted-3.1.orig/libparted/labels/dasd.c
+++ parted-3.1/libparted/labels/dasd.c
@@ -73,6 +73,7 @@ typedef struct {
unsigned int format_type;
unsigned int label_block;
volume_label_t vlabel;
+   unsigned int has_implicit_partition;
 } DasdDiskSpecific;
 
 static int dasd_probe (const PedDevice *dev);
@@ -107,6 +108,10 @@ static int dasd_partition_set_system (Pe
  const 
PedFileSystemType* fs_type);
 static int dasd_alloc_metadata (PedDisk* disk);
 
+static int dasd_disk_set_flag (PedDisk *disk, PedDiskFlag flag, int state);
+static int dasd_disk_is_flag_available(const PedDisk *disk, PedDiskFlag flag);
+static int dasd_disk_get_flag (const PedDisk *disk, PedDiskFlag flag);
+
 #include "pt-common.h"
 PT_define_limit_functions (dasd)
 
@@ -116,6 +121,9 @@ static PedDiskOps dasd_disk_ops = {
 
partition_set_name: NULL,
partition_get_name: NULL,
+   disk_set_flag:  dasd_disk_set_flag,
+   disk_get_flag:  dasd_disk_get_flag,
+   disk_is_flag_available: dasd_disk_is_flag_available,
 
get_partition_alignment: dasd_get_partition_alignment,
 
@@ -150,6 +158,8 @@ dasd_alloc (const PedDevice* dev)
return NULL;
}
 
+   disk_specific->has_implicit_partition = 0;
+
/

commit parted for openSUSE:Factory

2014-09-09 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-09-10 07:27:44

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-08-25 
11:03:29.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-09-10 
07:27:45.0 +0200
@@ -1,0 +2,6 @@
+Sat Sep  6 21:47:27 UTC 2014 - andreas.stie...@gmx.de
+
+- Keyring contained no less than 374 public keys.
+  Replace with project members only keyring from project page.
+
+---



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.TVCLSR/_old  2014-09-10 07:27:47.0 +0200
+++ /var/tmp/diff_new_pack.TVCLSR/_new  2014-09-10 07:27:47.0 +0200
@@ -25,7 +25,7 @@
 Url:http://www.gnu.org/software/parted/
 Source0:ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz
 Source1:ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz.sig
-Source2:parted.keyring
+Source2:
https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=parted&download=1#/%{name}.keyring
 Source3:baselibs.conf
 Source4:fatresize-0.1.tar.bz2
 # Build patches


++ parted.keyring ++
Files /var/tmp/diff_new_pack.TVCLSR/_old and /var/tmp/diff_new_pack.TVCLSR/_new 
differ

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2014-08-25 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-08-25 11:03:04

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-08-05 
10:24:22.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-08-25 
11:03:29.0 +0200
@@ -1,0 +2,5 @@
+Mon Aug 18 15:28:56 UTC 2014 - fcro...@suse.com
+
+- Add obsoletes/provides to baselibs.conf.
+
+---



Other differences:
--
++ baselibs.conf ++
--- /var/tmp/diff_new_pack.V339wP/_old  2014-08-25 11:03:30.0 +0200
+++ /var/tmp/diff_new_pack.V339wP/_new  2014-08-25 11:03:30.0 +0200
@@ -1 +1,3 @@
 libparted0
+obsoletes "parted- <= 2.3.10"
+provides "parted- = "



-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2014-08-05 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-08-05 10:24:20

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-07-21 
10:35:01.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-08-05 
10:24:22.0 +0200
@@ -1,0 +2,8 @@
+Fri Jul 25 15:43:42 UTC 2014 - pu...@suse.com
+
+- Fix a bug where cylinders can be treated by parted as exact
+  location, which prevents it from adjusting partition/start end.
+  (bnc#880369)
+  - libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch
+
+---

New:

  libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.ROYVG1/_old  2014-08-05 10:24:23.0 +0200
+++ /var/tmp/diff_new_pack.ROYVG1/_new  2014-08-05 10:24:23.0 +0200
@@ -65,6 +65,7 @@
 Patch38:libparted-Avoid-dasd-as-default-disk-type-while-probe.patch
 Patch39:libparted-mklabel-to-support-EDEV-DASD.patch
 Patch40:libparted-make-BLKRRPART-more-robust.patch
+Patch41:
libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch
 Patch100:   parted-fatresize-autoconf.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
@@ -152,6 +153,7 @@
 %patch38 -p1
 %patch39 -p1
 %patch40 -p1
+%patch41 -p1
 %patch100 -p1
 
 %build

++ libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch 
++
>From 01900e056ec250836d15b5f5c3f59a8e1454b781 Mon Sep 17 00:00:00 2001
From: Phillip Susi 
Date: Mon, 4 Nov 2013 13:10:09 -0500
Subject: [PATCH] libparted: make sure not to treat percentages as exact

If 1% of the drive size worked out ot be an even power of
two, it would trigger the exact placement.  Add an exception
for the percent units.

Petr Uzel :
Also avoid this logic when the unit is specified as cylinders.

---
 libparted/unit.c |4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Index: parted-3.1/libparted/unit.c
===
--- parted-3.1.orig/libparted/unit.c
+++ parted-3.1/libparted/unit.c
@@ -551,7 +551,9 @@ ped_unit_parse_custom (const char* str,
   do not use 4MiB as the range.  Rather, presume that they
   are specifying precisely the starting or ending number,
   and treat "4MiB" just as we would treat "4194304B".  */
-   if (is_power_of_2 (unit_size))
+   if (is_power_of_2 (unit_size) &&
+   unit != PED_UNIT_PERCENT &&
+   unit != PED_UNIT_CYLINDER)
radius = 0;
 
*sector = num * unit_size / dev->sector_size;


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2014-07-21 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-07-21 10:34:52

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-06-02 
07:03:00.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-07-21 
10:35:01.0 +0200
@@ -1,0 +2,19 @@
+Fri Jul 18 10:10:07 UTC 2014 - pu...@suse.com
+
+- Make informing the kernel by BLKRRPART (specific to s390) more
+  robust by sleeping between every retry and by placing
+  exclusive file lock on the blockdevice (bnc#886005)
+  - libparted-make-BLKRRPART-more-robust.patch
+
+---
+Wed Jul 16 13:14:09 UTC 2014 - pu...@suse.com
+
+- Improve DASD label handling; backport following patches
+  from upstream (bnc#887333):
+  - libparted-add-support-for-implicit-FBA-DASD-partition.patch
+  - libparted-add-support-for-EAV-DASD-partitions.patch
+  - libparted-mklabel-to-support-EAV-DASD.patch
+  - libparted-Avoid-dasd-as-default-disk-type-while-probe.patch
+  - libparted-mklabel-to-support-EDEV-DASD.patch
+
+---

New:

  libparted-Avoid-dasd-as-default-disk-type-while-probe.patch
  libparted-add-support-for-EAV-DASD-partitions.patch
  libparted-add-support-for-implicit-FBA-DASD-partition.patch
  libparted-make-BLKRRPART-more-robust.patch
  libparted-mklabel-to-support-EAV-DASD.patch
  libparted-mklabel-to-support-EDEV-DASD.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.yFzvid/_old  2014-07-21 10:35:02.0 +0200
+++ /var/tmp/diff_new_pack.yFzvid/_new  2014-07-21 10:35:02.0 +0200
@@ -59,6 +59,12 @@
 Patch32:libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
 Patch33:Fix-help-text-for-disk_-set-toggle.patch
 Patch34:libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch
+Patch35:libparted-add-support-for-implicit-FBA-DASD-partition.patch
+Patch36:libparted-add-support-for-EAV-DASD-partitions.patch
+Patch37:libparted-mklabel-to-support-EAV-DASD.patch
+Patch38:libparted-Avoid-dasd-as-default-disk-type-while-probe.patch
+Patch39:libparted-mklabel-to-support-EDEV-DASD.patch
+Patch40:libparted-make-BLKRRPART-more-robust.patch
 Patch100:   parted-fatresize-autoconf.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
@@ -140,6 +146,12 @@
 %patch32 -p1
 %patch33 -p1
 %patch34 -p1
+%patch35 -p1
+%patch36 -p1
+%patch37 -p1
+%patch38 -p1
+%patch39 -p1
+%patch40 -p1
 %patch100 -p1
 
 %build

++ libparted-Avoid-dasd-as-default-disk-type-while-probe.patch ++
>From 0673dabee6f5b19317b0d85e399e9f876a2c2ea7 Mon Sep 17 00:00:00 2001
From: Nageswara R Sastry 
Date: Wed, 21 Aug 2013 16:37:17 -0700
Subject: [PATCH] libparted: Avoid dasd as default disk type while probe

This patch avoids setting 'dasd' as a default disk type for
'disk image file' at the time of probe.

Signed-off-by: Nageswara R Sastry 
---
 include/parted/fdasd.in.h | 1 +
 libparted/labels/fdasd.c  | 6 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/include/parted/fdasd.in.h b/include/parted/fdasd.in.h
index 3692596..6f6a7e0 100644
--- a/include/parted/fdasd.in.h
+++ b/include/parted/fdasd.in.h
@@ -261,6 +261,7 @@ typedef struct fdasd_anchor {
struct fdasd_hd_geometry geo;
unsigned int label_block;
unsigned int FBA_layout;
+   bool is_file;
 } fdasd_anchor_t;
 
 enum offset {lower, upper};
diff --git a/libparted/labels/fdasd.c b/libparted/labels/fdasd.c
index b58b2be..7de5f34 100644
--- a/libparted/labels/fdasd.c
+++ b/libparted/labels/fdasd.c
@@ -301,6 +301,7 @@ fdasd_initialize_anchor (fdasd_anchor_t * anc)
}
anc->hw_cylinders = 0;
anc->formatted_cylinders = 0;
+   anc->is_file = 0;
 }
 
 /*
@@ -890,7 +891,7 @@ fdasd_check_volume (fdasd_anchor_t *anc, int fd)
/* Some times LDL formatted disks does not
   contain any volume label */
return 1;
-   } else {
+   } else if (! anc->is_file) {
/* didn't find VOL1 volume label */
anc->formatted_cylinders = anc->hw_cylinders;
anc->fspace_trk = anc->formatted_cylinders * anc->geo.heads
@@ -974,6 +975,7 @@ fdasd_get_geometry (const PedDevice *dev, fdasd_anchor_t 
*anc, int f)
dasd_info.FBA_layout = 0;
anc->hw_cylinders = ((st.st_size / blksize) / anc->geo.sectors) /
anc->geo.heads;
+   anc->is_file = 1;
  

commit parted for openSUSE:Factory

2014-06-01 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-06-02 07:02:59

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-05-27 
11:51:01.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-06-02 
07:03:00.0 +0200
@@ -1,0 +2,7 @@
+Thu May 29 12:55:29 UTC 2014 - pu...@suse.com
+
+- Allow bigger snap radius if cylinders are used as units
+  (bnc#879387):
+  - add: libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch
+
+---

New:

  libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.t2DWuY/_old  2014-06-02 07:03:01.0 +0200
+++ /var/tmp/diff_new_pack.t2DWuY/_new  2014-06-02 07:03:01.0 +0200
@@ -58,6 +58,7 @@
 Patch31:libparted-use-BLKRRPART-for-DASD.patch.patch
 Patch32:libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
 Patch33:Fix-help-text-for-disk_-set-toggle.patch
+Patch34:libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch
 Patch100:   parted-fatresize-autoconf.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
@@ -138,6 +139,7 @@
 %patch31 -p1
 %patch32 -p1
 %patch33 -p1
+%patch34 -p1
 %patch100 -p1
 
 %build

++ libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch ++
>From 2ef86fbe0fd8a6c4b48dd8edfbe41728a7343dac Mon Sep 17 00:00:00 2001
From: Petr Uzel 
Date: Thu, 29 May 2014 14:50:31 +0200
Subject: [PATCH] libparted: allow bigger snap radius if cylinders are used

This is partial revert of commit

   commit 18e727d492933ae1ebb16961e1df553f9299af8b
   Author: Brian C. Lane 
   Date:   Tue Jun 21 10:44:15 2011 -0700

   libparted: fix snap radius so that it is using half (#665496)

   The snap radius didn't match the documentation, it has been
   using +/- unit size instead +/- 0.5 * unit (eg. 500KB for a MB
   unit). This caused problems when specifying 1MB, 1GB, etc. as a
   partition start or end resulting in partitions being created
   that were nowhere near the specified size.

Only revert to the old behavior if cylinders are used in order to
give parted more flexibility when snapping the partition start/end.

References: bnc#879387
---
 libparted/unit.c |5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: parted-3.1/libparted/unit.c
===
--- parted-3.1.orig/libparted/unit.c
+++ parted-3.1/libparted/unit.c
@@ -540,7 +540,10 @@ ped_unit_parse_custom (const char* str,
 }
 
unit_size = ped_unit_get_size (dev, unit);
-   radius = (ped_div_round_up (unit_size, dev->sector_size) / 2) - 1;
+   if (unit == PED_UNIT_CYLINDER)
+   radius = ped_div_round_up (unit_size, dev->sector_size) - 1;
+   else
+   radius = (ped_div_round_up (unit_size, dev->sector_size) / 2) - 
1;
if (radius < 0)
radius = 0;
/* If the user specifies units in a power of 2, e.g., 4MiB, as in


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2014-05-27 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-05-27 11:51:00

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-05-10 
08:32:00.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-05-27 
11:51:01.0 +0200
@@ -1,0 +2,7 @@
+Tue May 20 10:27:17 UTC 2014 - pu...@suse.com
+
+- Fix the help text to show *disk* flags instead of partition flags
+  (bnc#872054):
+ - add: Fix-help-text-for-disk_-set-toggle.patch
+
+---

Old:

  revert-gpt-add-commands-to-manipulate-pMBR-boot-flag.patch

New:

  Fix-help-text-for-disk_-set-toggle.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.K8x3pu/_old  2014-05-27 11:51:03.0 +0200
+++ /var/tmp/diff_new_pack.K8x3pu/_new  2014-05-27 11:51:03.0 +0200
@@ -57,6 +57,7 @@
 Patch30:libparted-initialize-dasd-part-type.patch
 Patch31:libparted-use-BLKRRPART-for-DASD.patch.patch
 Patch32:libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
+Patch33:Fix-help-text-for-disk_-set-toggle.patch
 Patch100:   parted-fatresize-autoconf.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
@@ -136,6 +137,7 @@
 %patch30 -p1
 %patch31 -p1
 %patch32 -p1
+%patch33 -p1
 %patch100 -p1
 
 %build

++ Fix-help-text-for-disk_-set-toggle.patch ++
>From 3e005b4644d2a97da85c251f93d32d93e94bcccf Mon Sep 17 00:00:00 2001
From: Phillip Susi 
Date: Mon, 24 Feb 2014 11:29:43 -0500
Subject: [PATCH] Fix help text for disk_{set,toggle}

Fix the help text to show *disk* flags instead of partition flags.
---
 parted/parted.c |   23 +--
 1 file changed, 21 insertions(+), 2 deletions(-)

Index: parted-3.1/parted/parted.c
===
--- parted-3.1.orig/parted/parted.c
+++ parted-3.1/parted/parted.c
@@ -144,6 +144,7 @@ static const char* number_msg = N_(
 
 static const char* label_type_msg_start = N_("LABEL-TYPE is one of: ");
 static const char* flag_msg_start =   N_("FLAG is one of: ");
+static const char* disk_flag_msg_start =   N_("FLAG is one of: ");
 static const char* unit_msg_start =   N_("UNIT is one of: ");
 static const char* min_or_opt_msg = N_("desired alignment: minimum or 
optimal");
 static const char* part_type_msg =N_("PART-TYPE is one of: primary, 
logical, "
@@ -170,6 +171,7 @@ static const char* copyright_msg = N_(
 
 static char* label_type_msg;
 static char* flag_msg;
+static char* disk_flag_msg;
 static char* unit_msg;
 
 static char* mkpart_fs_type_msg;
@@ -1845,6 +1847,7 @@ _init_messages ()
 PedFileSystemAlias* fs_alias;
 PedDiskType*disk_type;
 PedPartitionFlagpart_flag;
+PedDiskFlag disk_flag;
 PedUnit unit;
 
 /* flags */
@@ -1863,6 +1866,22 @@ _init_messages ()
 
 flag_msg = str_list_convert (list);
 str_list_destroy (list);
+/* disk flags */
+first = 1;
+list = str_list_create (_(disk_flag_msg_start), NULL);
+for (disk_flag = ped_disk_flag_next (0); disk_flag;
+disk_flag = ped_disk_flag_next (disk_flag)) {
+if (first)
+first = 0;
+else
+str_list_append (list, ", ");
+str_list_append (list,
+ _(ped_disk_flag_get_name (disk_flag)));
+}
+str_list_append (list, "\n");
+
+disk_flag_msg = str_list_convert (list);
+str_list_destroy (list);
 
 /* units */
 first = 1;
@@ -2055,7 +2074,7 @@ command_register (commands, command_crea
 str_list_create (
 _("disk_set FLAG STATE  change the FLAG on selected 
device"),
 NULL),
-str_list_create (flag_msg, _(state_msg), NULL), 1));
+str_list_create (disk_flag_msg, _(state_msg), NULL), 1));
 
 command_register (commands, command_create (
 str_list_create_unique ("disk_toggle", _("disk_toggle"), NULL),
@@ -2064,7 +2083,7 @@ command_register (commands, command_crea
 _("disk_toggle [FLAG]   toggle the state of FLAG on "
 "selected device"),
 NULL),
-str_list_create (flag_msg, NULL), 1));
+str_list_create (disk_flag_msg, NULL), 1));
 
 command_register (commands, command_create (
str_list_create_unique ("set", _("set"), NULL),


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additi

commit parted for openSUSE:Factory

2014-05-09 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-05-10 08:31:50

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-02-19 
11:36:17.0 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-05-10 
08:32:00.0 +0200
@@ -1,0 +2,8 @@
+Tue Apr 29 13:06:09 UTC 2014 - pu...@suse.com
+
+- Support setting boot flag in pMBR (bnc#872054):
+  - drop: revert-gpt-add-commands-to-manipulate-pMBR-boot-flag.patch 
+  - add: libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
+  - refresh patches
+
+---
@@ -31,0 +40 @@
+

New:

  libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.PkWunO/_old  2014-05-10 08:32:01.0 +0200
+++ /var/tmp/diff_new_pack.PkWunO/_new  2014-05-10 08:32:01.0 +0200
@@ -43,9 +43,6 @@
 Patch16:do-not-create-dm-nodes.patch
 #PATCH-FEATURE-SUSE more-reliable-informing-the-kernel.patch bnc#657360 
petr.u...@suse.cz
 Patch17:more-reliable-informing-the-kernel.patch
-#PATCH-FEATURE-SUSE revert-gpt-add-commands-to-manipulate-pMBR-boot-flag.patch
-# (clashes with our hybrid pMBR patches)
-Patch18:revert-gpt-add-commands-to-manipulate-pMBR-boot-flag.patch
 Patch19:parted-gpt-mbr-sync.patch
 Patch20:libparted-ppc-prepboot-in-syncmbr.patch
 Patch21:parted-workaround-windows7-gpt-implementation.patch
@@ -59,6 +56,7 @@
 Patch29:libparted-dasd-do-not-use-first-tracks.patch
 Patch30:libparted-initialize-dasd-part-type.patch
 Patch31:libparted-use-BLKRRPART-for-DASD.patch.patch
+Patch32:libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
 Patch100:   parted-fatresize-autoconf.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
@@ -124,7 +122,6 @@
 %patch15 -p1
 %patch16 -p1
 %patch17 -p1
-%patch18 -p1
 %patch19 -p1
 %patch20 -p1
 %patch21 -p1
@@ -138,6 +135,7 @@
 %patch29 -p1
 %patch30 -p1
 %patch31 -p1
+%patch32 -p1
 %patch100 -p1
 
 %build

++ dummy-bootcode-only-for-x86.patch ++
--- /var/tmp/diff_new_pack.PkWunO/_old  2014-05-10 08:32:01.0 +0200
+++ /var/tmp/diff_new_pack.PkWunO/_new  2014-05-10 08:32:01.0 +0200
@@ -1,7 +1,11 @@
-Index: parted-2.4/libparted/labels/dos.c
+---
+ libparted/labels/dos.c |7 +++
+ 1 file changed, 7 insertions(+)
+
+Index: parted-3.1/libparted/labels/dos.c
 ===
 parted-2.4.orig/libparted/labels/dos.c
-+++ parted-2.4/libparted/labels/dos.c
+--- parted-3.1.orig/libparted/labels/dos.c
 parted-3.1/libparted/labels/dos.c
 @@ -1260,6 +1260,12 @@ msdos_write (const PedDisk* disk)
return 0;
DosRawTable *table = (DosRawTable *) s0;

++ libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch ++
>From c261a9b340e2982a49e055ea6332fd0f49f3d531 Mon Sep 17 00:00:00 2001
From: "Brian C. Lane" 
Date: Wed, 11 Sep 2013 12:24:51 -0700
Subject: [PATCH] libparted: copy pmbr_boot when duplicating GPT disk

* libparted/labels/gpt.c (gpt_duplicate): copy pmbr_boot flag
---
 libparted/labels/gpt.c |1 +
 1 file changed, 1 insertion(+)

Index: parted-3.1/libparted/labels/gpt.c
===
--- parted-3.1.orig/libparted/labels/gpt.c
+++ parted-3.1/libparted/labels/gpt.c
@@ -660,6 +660,7 @@ gpt_duplicate (const PedDisk *disk)
  old_disk_data->data_area.length);
   new_disk_data->entry_count = old_disk_data->entry_count;
   new_disk_data->uuid = old_disk_data->uuid;
+  new_disk_data->pmbr_boot = old_disk_data->pmbr_boot;
   return new_disk;
 }
 
++ libparted-ppc-prepboot-in-syncmbr.patch ++
--- /var/tmp/diff_new_pack.PkWunO/_old  2014-05-10 08:32:01.0 +0200
+++ /var/tmp/diff_new_pack.PkWunO/_new  2014-05-10 08:32:01.0 +0200
@@ -6,7 +6,7 @@
 ===
 --- parted-3.1.orig/libparted/labels/gpt.c
 +++ parted-3.1/libparted/labels/gpt.c
-@@ -1181,6 +1181,9 @@ _part_to_ostype (PedPartition* part)
+@@ -1183,6 +1183,9 @@ _part_to_ostype (PedPartition* part)
  if (strncmp (part->fs_type->name, "hfs", 3) == 0) return 0xaf;
  if (strstr (part->fs_type->name, "swap")) return 0x82;
  }


++ parted-Add-Intel-Rapid-Start-Technology-partition.patch ++
--- /var/tmp/diff_new_pack.PkWunO/_old  2014-05-10 08:32:01.0 +0200
+++ /var/tmp/diff_new_pack.PkWunO/_new  2014-0

commit parted for openSUSE:Factory

2014-02-19 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-02-19 11:36:16

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-02-17 
09:40:03.0 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-02-19 
11:36:17.0 +0100
@@ -1,0 +2,9 @@
+Mon Feb 17 13:32:19 UTC 2014 - pu...@suse.com
+
+- Fixup last commit - call BLKRRPART only for DASDs
+- added patches:
+  * libparted-use-BLKRRPART-for-DASD.patch.patch
+- removed patches:
+  * revert-libparted-remove-now-worse-than-useless-_kern.patch
+  * revert-linux-remove-DASD-restriction-on-_disk_sync_p.patch
+---

Old:

  revert-libparted-remove-now-worse-than-useless-_kern.patch
  revert-linux-remove-DASD-restriction-on-_disk_sync_p.patch

New:

  libparted-use-BLKRRPART-for-DASD.patch.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.uUdUPA/_old  2014-02-19 11:36:18.0 +0100
+++ /var/tmp/diff_new_pack.uUdUPA/_new  2014-02-19 11:36:18.0 +0100
@@ -58,8 +58,7 @@
 Patch28:parted-resize-command.patch
 Patch29:libparted-dasd-do-not-use-first-tracks.patch
 Patch30:libparted-initialize-dasd-part-type.patch
-Patch31:revert-linux-remove-DASD-restriction-on-_disk_sync_p.patch
-Patch32:revert-libparted-remove-now-worse-than-useless-_kern.patch
+Patch31:libparted-use-BLKRRPART-for-DASD.patch.patch
 Patch100:   parted-fatresize-autoconf.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
@@ -139,7 +138,6 @@
 %patch29 -p1
 %patch30 -p1
 %patch31 -p1
-%patch32 -p1
 %patch100 -p1
 
 %build

++ libparted-use-BLKRRPART-for-DASD.patch.patch ++
>From ac422c32ae3be0e599f7b3f4ab6961b61129c4ba Mon Sep 17 00:00:00 2001
From: Petr Uzel 
Date: Fri, 14 Feb 2014 09:12:47 +0100
Subject: [PATCH] libparted-used-BLKRRPART-for-DASD.patch

Addresses: bnc#862139

This reverts upstream commit 9fa0e1800db5b9f094ae481fd95a51da03f19e95.
This reverts upstream commit 1223b9fc07859cb619c80dc057bd05458f9b5669.
and some fixups on top
---
 libparted/arch/linux.c |   50 -
 1 file changed, 41 insertions(+), 9 deletions(-)

Index: parted-3.1/libparted/arch/linux.c
===
--- parted-3.1.orig/libparted/arch/linux.c
+++ parted-3.1/libparted/arch/linux.c
@@ -2898,6 +2898,34 @@ _dm_reread_part_table (PedDisk* disk)
 #endif
 
 static int
+_kernel_reread_part_table (PedDevice* dev)
+{
+LinuxSpecific*  arch_specific = LINUX_SPECIFIC (dev);
+int retry_count = 9;
+
+sync();
+while (ioctl (arch_specific->fd, BLKRRPART)) {
+retry_count--;
+sync();
+if (retry_count == 3)
+sleep(1); /* Pause to allow system to settle */
+
+if (!retry_count) {
+ped_exception_throw (
+PED_EXCEPTION_WARNING,
+PED_EXCEPTION_IGNORE,
+_("WARNING: the kernel failed to re-read the partition 
"
+  "table on %s (%s).  As a result, it may not "
+  "reflect all of your changes until after reboot."),
+dev->path, strerror (errno));
+return 0;
+}
+}
+
+return 1;
+}
+
+static int
 _have_blkpg ()
 {
 static int have_blkpg = -1;
@@ -2919,15 +2947,19 @@ linux_disk_commit (PedDisk* disk)
 return _dm_reread_part_table (disk);
 #endif
 if (disk->dev->type != PED_DEVICE_FILE) {
-
-   /* We now require BLKPG support.  If this assertion fails,
-  please write to the mailing list describing your system.
-  Assuming it's never triggered, ...
-  FIXME: remove this assertion in 2012.  */
-   assert (_have_blkpg ());
-
-   if (!_disk_sync_part_table (disk))
-   return 0;
+/* The ioctl() command BLKPG_ADD_PARTITION does not notify
+ * the devfs system; consequently, /proc/partitions will not
+ * be up to date, and the proper links in /dev are not
+ * created.  Therefore, if using DevFS, we must get the kernel
+ * to re-read and grok the partition table.
+ */
+/* Work around kernel dasd proble

commit parted for openSUSE:Factory

2014-02-17 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-02-17 09:40:02

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-02-03 
11:40:44.0 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-02-17 
09:40:03.0 +0100
@@ -1,0 +2,16 @@
+Fri Feb 14 08:30:06 UTC 2014 - pu...@suse.com
+
+- Use BLKRRPART on DASD disks (instead of BLKPG_*) (bnc#862139) 
+- added patches:
+  * revert-libparted-remove-now-worse-than-useless-_kern.patch
+  * revert-linux-remove-DASD-restriction-on-_disk_sync_p.patch
+
+---
+Thu Feb 13 15:40:56 UTC 2014 - pu...@suse.com
+
+- reserve first 2 tracks on DASD disks for metadata (bnc#862138)
+  * add: libparted-dasd-do-not-use-first-tracks.patch
+- initialize memory for newly allocated partition (bnc#862138)
+  * add: libparted-initialize-dasd-part-type.patch
+
+---

New:

  libparted-dasd-do-not-use-first-tracks.patch
  libparted-initialize-dasd-part-type.patch
  revert-libparted-remove-now-worse-than-useless-_kern.patch
  revert-linux-remove-DASD-restriction-on-_disk_sync_p.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.6zByxD/_old  2014-02-17 09:40:04.0 +0100
+++ /var/tmp/diff_new_pack.6zByxD/_new  2014-02-17 09:40:04.0 +0100
@@ -56,6 +56,10 @@
 Patch26:parted-btrfs-support.patch
 Patch27:parted-GPT-add-support-for-PReP-GUID.patch
 Patch28:parted-resize-command.patch
+Patch29:libparted-dasd-do-not-use-first-tracks.patch
+Patch30:libparted-initialize-dasd-part-type.patch
+Patch31:revert-linux-remove-DASD-restriction-on-_disk_sync_p.patch
+Patch32:revert-libparted-remove-now-worse-than-useless-_kern.patch
 Patch100:   parted-fatresize-autoconf.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
@@ -132,6 +136,10 @@
 %patch26 -p1
 %patch27 -p1
 %patch28 -p1
+%patch29 -p1
+%patch30 -p1
+%patch31 -p1
+%patch32 -p1
 %patch100 -p1
 
 %build

++ libparted-dasd-do-not-use-first-tracks.patch ++
---
 libparted/labels/dasd.c |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: parted-3.1/libparted/labels/dasd.c
===
--- parted-3.1.orig/libparted/labels/dasd.c
+++ parted-3.1/libparted/labels/dasd.c
@@ -803,7 +803,8 @@ _primary_constraint (PedDisk* disk)
if (!ped_alignment_init (&end_align, -1,
 disk->dev->hw_geom.sectors 
* sector_size))
return NULL;
-   if (!ped_geometry_init (&max_geom, disk->dev, 0, disk->dev->length))
+   if (!ped_geometry_init (&max_geom, disk->dev, 2 * 
disk->dev->hw_geom.sectors * sector_size,
+   disk->dev->length - 2 * 
disk->dev->hw_geom.sectors * sector_size))
return NULL;
 
return ped_constraint_new(&start_align, &end_align, &max_geom,
++ libparted-initialize-dasd-part-type.patch ++
---
 libparted/labels/dasd.c |2 ++
 1 file changed, 2 insertions(+)

Index: parted-3.1/libparted/labels/dasd.c
===
--- parted-3.1.orig/libparted/labels/dasd.c
+++ parted-3.1/libparted/labels/dasd.c
@@ -659,6 +659,8 @@ dasd_partition_new (const PedDisk* disk,
goto error;
 
part->disk_specific = ped_malloc (sizeof (DasdPartitionData));
+   if (part->disk_specific)
+   memset(part->disk_specific, 0, sizeof(DasdPartitionData));
return part;
 
 error:


++ revert-libparted-remove-now-worse-than-useless-_kern.patch ++
>From 59627048c1b5b6e6aed9198bb11c397b3ad8cddd Mon Sep 17 00:00:00 2001
From: Petr Uzel 
Date: Fri, 14 Feb 2014 09:18:32 +0100
Subject: [PATCH] Revert "libparted: remove now-worse-than-useless
 _kernel_reread_part_table"

This reverts commit 1223b9fc07859cb619c80dc057bd05458f9b5669.
---
 libparted/arch/linux.c |   30 ++
 1 file changed, 30 insertions(+)

Index: parted-3.1/libparted/arch/linux.c
===
--- parted-3.1.orig/libparted/arch/linux.c
+++ parted-3.1/libparted/arch/linux.c
@@ -2897,6 +2897,34 @@ _dm_reread_part_table (PedDisk* disk)
 #endif
 
 static int
+_kernel_reread_part_table (PedDevice* dev)
+{
+LinuxSpecific*  arch_specific = LINUX_SPECIFIC (dev);
+int retry_count = 9;
+
+syn

commit parted for openSUSE:Factory

2014-02-03 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-02-03 11:40:43

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-01-24 
21:42:21.0 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-02-03 
11:40:44.0 +0100
@@ -1,0 +2,6 @@
+Fri Jan 24 13:17:34 UTC 2014 - pu...@suse.com
+
+- include new fatresize(8) utility
+- added patches:
+  * parted-fatresize-autoconf.patch
+---

New:

  fatresize-0.1.tar.bz2
  parted-fatresize-autoconf.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.PUsGts/_old  2014-02-03 11:40:44.0 +0100
+++ /var/tmp/diff_new_pack.PUsGts/_new  2014-02-03 11:40:44.0 +0100
@@ -27,6 +27,7 @@
 Source1:ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz.sig
 Source2:parted.keyring
 Source3:baselibs.conf
+Source4:fatresize-0.1.tar.bz2
 # Build patches
 Patch1: parted-2.4-ncursesw6.patch
 
@@ -55,6 +56,7 @@
 Patch26:parted-btrfs-support.patch
 Patch27:parted-GPT-add-support-for-PReP-GUID.patch
 Patch28:parted-resize-command.patch
+Patch100:   parted-fatresize-autoconf.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -109,7 +111,7 @@
 %lang_package
 %prep
 %{?gpg_verify: %gpg_verify %{S:1}}
-%setup -q
+%setup -a 4
 %patch1 -p1
 %patch10 -p1
 %patch11 -p1
@@ -130,6 +132,7 @@
 %patch26 -p1
 %patch27 -p1
 %patch28 -p1
+%patch100 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"


++ parted-fatresize-autoconf.patch ++
---
 Makefile.am  |2 +-
 configure.ac |1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

Index: parted-3.1/Makefile.am
===
--- parted-3.1.orig/Makefile.am
+++ parted-3.1/Makefile.am
@@ -1,5 +1,5 @@
 ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = po lib include libparted parted partprobe doc debug tests
+SUBDIRS = po lib include libparted parted partprobe fatresize doc debug tests
 
 EXTRA_DIST =   \
   .version \
Index: parted-3.1/configure.ac
===
--- parted-3.1.orig/configure.ac
+++ parted-3.1/configure.ac
@@ -610,6 +610,7 @@ libparted/tests/Makefile
 libparted.pc
 parted/Makefile
 partprobe/Makefile
+fatresize/Makefile
 doc/Makefile
 doc/C/Makefile
 doc/pt_BR/Makefile

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2014-01-24 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2014-01-24 21:42:20

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2014-01-23 
15:51:02.0 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2014-01-24 
21:42:21.0 +0100
@@ -1,0 +2,7 @@
+Wed Jan 22 16:15:13 UTC 2014 - pu...@suse.com
+
+- Do not fail when shrinking the partition in non-interactive mode.  
+- modified patches:
+  * parted-resize-command.patch
+
+---



Other differences:
--

++ parted-resize-command.patch ++
--- /var/tmp/diff_new_pack.EfItwr/_old  2014-01-24 21:42:22.0 +0100
+++ /var/tmp/diff_new_pack.EfItwr/_new  2014-01-24 21:42:22.0 +0100
@@ -76,7 +76,7 @@
 +  start, end))
 +goto error_destroy_constraint;
 +/* warn when shrinking partition - might lose data */
-+if (part->geom.end < oldend)
++if (!opt_script_mode && (part->geom.end < oldend))
 +if (ped_exception_throw (
 +PED_EXCEPTION_WARNING,
 +PED_EXCEPTION_YES_NO,


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2013-12-31 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2013-12-31 10:08:05

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2013-09-23 
11:17:37.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2013-12-31 
10:08:07.0 +0100
@@ -1,0 +2,6 @@
+Mon Dec 30 09:15:06 UTC 2013 - pu...@suse.com
+
+- Fix partition device names on MMC devices (bnc#847580)
+  - libparted-fix-mmcblk-partition-name.patch
+
+---

New:

  libparted-fix-mmcblk-partition-name.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.LABgIv/_old  2013-12-31 10:08:08.0 +0100
+++ /var/tmp/diff_new_pack.LABgIv/_new  2013-12-31 10:08:08.0 +0100
@@ -53,6 +53,7 @@
 Patch23:parted-fix-gpt-sync-on-BE-systems.patch
 Patch24:parted-btrfs-support.patch
 Patch25:parted-Add-Intel-Rapid-Start-Technology-partition.patch
+Patch26:libparted-fix-mmcblk-partition-name.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -130,6 +131,7 @@
 %patch23 -p1
 %patch24 -p1
 %patch25 -p1
+%patch26 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"

++ libparted-fix-mmcblk-partition-name.patch ++
---
 libparted/arch/linux.c |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: parted-2.4/libparted/arch/linux.c
===
--- parted-2.4.orig/libparted/arch/linux.c
+++ parted-2.4/libparted/arch/linux.c
@@ -2227,7 +2227,8 @@ _device_get_part_path (PedDevice *dev, i
 (int) (path_len - 5), dev->path, num);
 } else {
const char *p;
-   if (dev->type == PED_DEVICE_CPQARRAY)
+   if (dev->type == PED_DEVICE_CPQARRAY ||
+   dev->type == PED_DEVICE_SDMMC)
p = "p";
else
p = (dev->type == PED_DEVICE_DAC960


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2013-09-23 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2013-09-23 10:42:11

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2013-04-23 
11:35:45.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2013-09-23 
11:17:37.0 +0200
@@ -1,0 +2,8 @@
+Tue Sep 17 08:27:12 UTC 2013 - m...@suse.com
+
+- Add parted-Add-Intel-Rapid-Start-Technology-partition.patch:
+  * Add Intel Fast Flash(iFFS) partition type support for Intel Rapid
+Start Technology. Added type 0x84 on MS-DOS and 
+D3BFE2DE-3DAF-11DF-BA40-E3A556D89593 on GPT disk type.
+
+---

New:

  parted-Add-Intel-Rapid-Start-Technology-partition.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.0IdybS/_old  2013-09-23 11:17:38.0 +0200
+++ /var/tmp/diff_new_pack.0IdybS/_new  2013-09-23 11:17:38.0 +0200
@@ -52,6 +52,7 @@
 Patch22:fix-error-informing-the-kernel.patch
 Patch23:parted-fix-gpt-sync-on-BE-systems.patch
 Patch24:parted-btrfs-support.patch
+Patch25:parted-Add-Intel-Rapid-Start-Technology-partition.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -128,6 +129,7 @@
 %patch22 -p1
 %patch23 -p1
 %patch24 -p1
+%patch25 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"


++ parted-Add-Intel-Rapid-Start-Technology-partition.patch ++
>From e6a23531e0cb40c2cc75f1e8fbb86ab872cb6f1b Mon Sep 17 00:00:00 2001
From: "Brian C. Lane" 
Date: Mon, 26 Aug 2013 16:27:00 -0700
Subject: [PATCH 65/69] libparted: Add Intel Rapid Start Technology partition
 flag.

This adds support for the irst partition type flag. Sets the type to
0x84 on MS-DOS and D3BFE2DE-3DAF-11DF-BA-40-E3A556D89593 on GPT.

---
 doc/C/parted.8 |2 +-
 include/parted/disk.h  |5 +++--
 libparted/disk.c   |2 ++
 libparted/labels/dos.c |   21 +
 libparted/labels/gpt.c |   37 +
 5 files changed, 64 insertions(+), 3 deletions(-)

--- parted-2.4.orig/doc/C/parted.8
+++ parted-2.4/doc/C/parted.8
@@ -132,7 +132,7 @@ or an LVM logical volume if necessary.
 .B set \fIpartition\fP \fIflag\fP \fIstate\fP
 Change the state of the \fIflag\fP on \fIpartition\fP to \fIstate\fP.
 Supported flags are: "boot", "root", "swap", "hidden", "raid", "lvm", "lba",
-"legacy_boot" and "palo".
+"legacy_boot", "irst" and "palo".
 \fIstate\fP should be either "on" or "off".
 .TP
 .B unit \fIunit\fP
--- parted-2.4.orig/libparted/disk.c
+++ parted-2.4/libparted/disk.c
@@ -2472,6 +2472,8 @@ ped_partition_flag_get_name (PedPartitio
 return N_("diag");
 case PED_PARTITION_LEGACY_BOOT:
 return N_("legacy_boot");
+case PED_PARTITION_IRST:
+return N_("irst");
 
default:
ped_exception_throw (
--- parted-2.4.orig/libparted/labels/dos.c
+++ parted-2.4/libparted/labels/dos.c
@@ -85,6 +85,7 @@ static const char MBR_BOOT_CODE[] = {
 #define PARTITION_LDM  0x42
 #define PARTITION_LINUX_SWAP   0x82
 #define PARTITION_LINUX0x83
+#define PARTITION_IRST 0x84
 #define PARTITION_LINUX_EXT0x85
 #define PARTITION_LINUX_LVM0x8e
 #define PARTITION_HFS  0xaf
@@ -159,6 +160,7 @@ typedef struct {
int palo;
int prep;
int diag;
+   int irst;
OrigState*  orig;   /* used for CHS stuff */
 } DosPartitionData;
 
@@ -924,6 +926,7 @@ raw_part_parse (const PedDisk* disk, con
dos_data->lba = raw_part_is_lba (raw_part);
dos_data->palo = raw_part->type == PARTITION_PALO;
dos_data->prep = raw_part->type == PARTITION_PREP;
+   dos_data->irst = raw_part->type == PARTITION_IRST;
dos_data->orig = ped_malloc (sizeof (OrigState));
if (!dos_data->orig) {
ped_partition_destroy (part);
@@ -1339,6 +1342,7 @@ msdos_partition_new (const PedDisk* disk
dos_data->lba = 0;
dos_data->palo = 0;
dos_data->prep = 0;
+   dos_data->irst = 0;
} else {
part->disk_specific = NULL;
}
@@ -1374,6 +1378,7 @@ msdos_partition_duplicate (const PedPart
new_dos_data->lba = old_dos_data->lba;
new_dos_data->palo = old_dos_data->palo;
new_dos_data->prep = old_dos_data->prep;
+   new_dos_data->irst = old_dos_data->

commit parted for openSUSE:Factory

2013-04-23 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2013-04-23 11:35:44

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted", Maintainer is "pu...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2013-04-17 
07:43:30.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2013-04-23 
11:35:45.0 +0200
@@ -1,0 +2,8 @@
+Mon Apr 22 15:06:02 UTC 2013 - pu...@suse.com
+
+- fix hybrid pMBR (gpt_sync_mbr) on BE systems (bnc#809205)
+  - parted-fix-gpt-sync-on-BE-systems.patch 
+- detect btrfs filesystem (bnc#810779)
+  - parted-btrfs-support.patch
+
+---

New:

  parted-btrfs-support.patch
  parted-fix-gpt-sync-on-BE-systems.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.b1lOxF/_old  2013-04-23 11:35:48.0 +0200
+++ /var/tmp/diff_new_pack.b1lOxF/_new  2013-04-23 11:35:48.0 +0200
@@ -50,6 +50,8 @@
 Patch20:parted-stdio.h.patch
 Patch21:parted-workaround-windows7-gpt-implementation.patch
 Patch22:fix-error-informing-the-kernel.patch
+Patch23:parted-fix-gpt-sync-on-BE-systems.patch
+Patch24:parted-btrfs-support.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -124,6 +126,8 @@
 %patch20 -p1
 %patch21 -p1
 %patch22 -p1
+%patch23 -p1
+%patch24 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"


++ parted-btrfs-support.patch ++
commit 85e5fcd1bb0fe91d8908e8a638e9827979b6feff
Author: Luca Bruno 
Date:   Thu Feb 12 15:15:30 2009 +0100

Initial btrfs support, only recognize it for now

Add initial btrfs support to libparted; just discovering
the declared magic entry at the right place to recognize
filesystem type, for the moment.

Signed-off-by: Luca Bruno 

---
 configure.ac   |4 -
 libparted/fs/Makefile.am   |3 -
 libparted/fs/btrfs/Makefile.am |8 ++
 libparted/fs/btrfs/btrfs.c |  110 +
 libparted/libparted.c  |4 +
 5 files changed, 126 insertions(+), 3 deletions(-)

Index: parted-2.4/configure.ac
===
@@ -626,6 +625,7 @@ libparted/Makefile
 libparted/labels/Makefile
 libparted/fs/Makefile
 libparted/fs/amiga/Makefile
+libparted/fs/btrfs/Makefile
 libparted/fs/ext2/Makefile
 libparted/fs/fat/Makefile
 libparted/fs/hfs/Makefile
Index: parted-2.4/libparted/fs/Makefile.am
===
--- parted-2.4.orig/libparted/fs/Makefile.am
+++ parted-2.4/libparted/fs/Makefile.am
@@ -4,7 +4,7 @@
 # This file may be modified and/or distributed without restriction.
 
 SUBDIRS   = amiga ext2 ufs fat ntfs hfs linux_swap xfs jfs reiserfs \
-   nilfs2 # bfs
+   nilfs2 btrfs # bfs
 
 partedincludedir  =-I$(top_srcdir)/include
 noinst_LTLIBRARIES=libfs.la
@@ -25,6 +25,7 @@ libfs_la_LIBADD   = $(UUID_LIBS)  \
xfs/libxfs.la   \
jfs/libjfs.la   \
reiserfs/libreiserfs.la \
+   btrfs/libbtrfs.la   \
nilfs2/libnilfs2.la
 #  bfs/libbfs.la
 
Index: parted-2.4/libparted/fs/btrfs/Makefile.am
===
--- /dev/null
+++ parted-2.4/libparted/fs/btrfs/Makefile.am
@@ -0,0 +1,8 @@
+partedincludedir   = -I$(top_srcdir)/include
+
+noinst_LTLIBRARIES = libbtrfs.la
+libbtrfs_la_SOURCES= btrfs.c
+
+INCLUDES = $(partedincludedir) $(INTLINCS)
+
+MAINTAINERCLEANFILES = Makefile.in
Index: parted-2.4/libparted/fs/btrfs/btrfs.c
===
--- /dev/null
+++ parted-2.4/libparted/fs/btrfs/btrfs.c
@@ -0,0 +1,110 @@
+/*
+libparted - a library for manipulating disk partitions
+Copyright (C) 2009 Free Software Foundation, Inc.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+Yo

commit parted for openSUSE:Factory

2013-04-16 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2013-04-17 07:43:28

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted", Maintainer is "pu...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2012-11-22 
16:52:43.0 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2013-04-17 
07:43:30.0 +0200
@@ -1,0 +2,6 @@
+Mon Apr 15 12:24:12 UTC 2013 - idon...@suse.com
+
+- Add Source URL, see https://en.opensuse.org/SourceUrls
+- Add GPG checking
+
+---

Old:

  parted-2.4.tar.bz2

New:

  parted-2.4.tar.gz
  parted-2.4.tar.gz.sig
  parted.keyring



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.ZWL7kQ/_old  2013-04-17 07:43:32.0 +0200
+++ /var/tmp/diff_new_pack.ZWL7kQ/_new  2013-04-17 07:43:32.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package parted
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -23,8 +23,10 @@
 License:GPL-3.0+
 Group:  System/Filesystems
 Url:http://www.gnu.org/software/parted/
-Source0:%{name}-%{version}.tar.bz2
-Source1:baselibs.conf
+Source0:ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.gz
+Source1:ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.gz.sig
+Source2:parted.keyring
+Source3:baselibs.conf
 Patch0: always-resize-part.dif
 Patch1: parted-type.patch
 Patch2: parted-mac.patch
@@ -60,6 +62,9 @@
 BuildRequires:  libuuid-devel
 BuildRequires:  pkg-config
 BuildRequires:  readline-devel
+%if %suse_version >= 1230
+BuildRequires:  gpg-offline
+%endif
 PreReq: %install_info_prereq
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # bug437293
@@ -97,6 +102,7 @@
 
 %lang_package
 %prep
+%{?gpg_verify: %gpg_verify %{S:1}}
 %setup -q
 %patch0
 %patch1 -p1

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2012-11-22 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2012-11-22 16:52:41

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted", Maintainer is "pu...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2012-10-03 
09:21:42.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2012-11-22 
16:52:43.0 +0100
@@ -1,0 +2,8 @@
+Wed Nov 21 10:32:05 UTC 2012 - pu...@suse.com
+
+- add fix-error-informing-the-kernel.patch:
+  Informing the kernel about partition changes still fails if first
+  logical partition starts right after the extended partition. Fix
+  it.
+
+---

New:

  fix-error-informing-the-kernel.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.WrAMoX/_old  2012-11-22 16:52:45.0 +0100
+++ /var/tmp/diff_new_pack.WrAMoX/_new  2012-11-22 16:52:45.0 +0100
@@ -47,6 +47,7 @@
 Patch19:dummy-bootcode-only-for-x86.patch
 Patch20:parted-stdio.h.patch
 Patch21:parted-workaround-windows7-gpt-implementation.patch
+Patch22:fix-error-informing-the-kernel.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -116,6 +117,7 @@
 %patch19 -p1
 %patch20 -p1
 %patch21 -p1
+%patch22 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"

++ fix-error-informing-the-kernel.patch ++
---
 libparted/arch/linux.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: parted-2.4/libparted/arch/linux.c
===
--- parted-2.4.orig/libparted/arch/linux.c
+++ parted-2.4/libparted/arch/linux.c
@@ -2376,7 +2376,7 @@ _blkpg_add_partition (PedDisk* disk, con
 linux_part.start = part->geom.start * disk->dev->sector_size;
 /* see fs/partitions/msdos.c:msdos_partition(): "leave room for LILO" 
*/
 if (part->type & PED_PARTITION_EXTENDED)
-linux_part.length = part->geom.length == 1 ? 512 : 1024;
+linux_part.length = PED_SECTOR_SIZE_DEFAULT;
 else
 linux_part.length = part->geom.length * disk->dev->sector_size;
 linux_part.pno = part->num;
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2012-10-03 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2012-10-03 09:21:39

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted", Maintainer is "pu...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2012-07-30 
20:38:26.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2012-10-03 
09:21:42.0 +0200
@@ -1,0 +2,6 @@
+Thu Sep 27 13:40:56 UTC 2012 - pu...@suse.com
+
+- add parted-workaround-windows7-gpt-implementation.patch
+  (bnc#781688) 
+
+---

New:

  parted-workaround-windows7-gpt-implementation.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.MfWxQG/_old  2012-10-03 09:21:44.0 +0200
+++ /var/tmp/diff_new_pack.MfWxQG/_new  2012-10-03 09:21:44.0 +0200
@@ -46,6 +46,7 @@
 Patch18:parted-fix-cciss-partition-naming.patch
 Patch19:dummy-bootcode-only-for-x86.patch
 Patch20:parted-stdio.h.patch
+Patch21:parted-workaround-windows7-gpt-implementation.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -114,6 +115,7 @@
 %patch18 -p1
 %patch19 -p1
 %patch20 -p1
+%patch21 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"

++ parted-workaround-windows7-gpt-implementation.patch ++
bnc#781688
Index: parted-2.4/libparted/labels/gpt.c
===
--- parted-2.4.orig/libparted/labels/gpt.c
+++ parted-2.4/libparted/labels/gpt.c
@@ -488,7 +488,7 @@ _has_hybrid_pmbr (const PedDevice *dev)
 
   if ((mbr.PartitionRecord[0].OSType == EFI_PMBR_OSTYPE_EFI) &&
   (mbr.PartitionRecord[0].StartingLBA == PED_CPU_TO_LE32(1)) &&
-  (mbr.PartitionRecord[0].SizeInLBA == 
PED_CPU_TO_LE32(efi_gpt_expected_size)))
+  ((mbr.PartitionRecord[0].SizeInLBA == 
PED_CPU_TO_LE32(efi_gpt_expected_size)) || (mbr.PartitionRecord[0].SizeInLBA == 
PED_CPU_TO_LE32(0x
 /* pMBR is not hybrid */
 has_hybrid_pmbr = 0;
 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2012-07-30 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2012-07-30 20:38:05

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted", Maintainer is "pu...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2012-07-03 
16:46:41.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2012-07-30 
20:38:26.0 +0200
@@ -1,0 +2,5 @@
+Fri Jul 27 09:14:44 UTC 2012 - a...@suse.de
+
+- Fix build with missing gets declaration (glibc 2.16)
+
+---

New:

  parted-stdio.h.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.l7OBP4/_old  2012-07-30 20:38:30.0 +0200
+++ /var/tmp/diff_new_pack.l7OBP4/_new  2012-07-30 20:38:30.0 +0200
@@ -45,6 +45,7 @@
 Patch17:fix-nilfs2-probe-function.patch
 Patch18:parted-fix-cciss-partition-naming.patch
 Patch19:dummy-bootcode-only-for-x86.patch
+Patch20:parted-stdio.h.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -112,6 +113,7 @@
 %patch17 -p1
 %patch18 -p1
 %patch19 -p1
+%patch20 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"

++ parted-stdio.h.patch ++
Index: parted-2.4/lib/stdio.in.h
===
--- parted-2.4.orig/lib/stdio.in.h
+++ parted-2.4/lib/stdio.in.h
@@ -731,11 +731,13 @@ _GL_CXXALIAS_RPL (gets, char *, (char *s
 _GL_CXXALIAS_SYS (gets, char *, (char *s));
 #  undef gets
 # endif
+# if HAVE_RAW_DECL_GETS
 _GL_CXXALIASWARN (gets);
 /* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning.  Assume it is
always declared, since it is required by C89.  */
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+# endif
 #endif
 
 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2012-07-03 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2012-07-03 16:46:40

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted", Maintainer is "pu...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2011-12-31 
17:20:15.0 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2012-07-03 
16:46:41.0 +0200
@@ -1,0 +2,14 @@
+Tue Jul  3 13:31:20 UTC 2012 - pu...@suse.com
+
+- copy dummy bootcode to MBR only on x86 because it can cause
+  problems to certain ARM machine (bnc#769789)
+  - add: dummy-bootcode-only-for-x86.patch
+
+---
+Tue Apr 17 13:59:13 UTC 2012 - pu...@suse.com
+
+- fix informing the kernel about partitions on cciss devices
+  (bnc#757225)
+  - add: parted-fix-cciss-partition-naming.patch
+
+---

New:

  dummy-bootcode-only-for-x86.patch
  parted-fix-cciss-partition-naming.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.BTIgRG/_old  2012-07-03 16:46:42.0 +0200
+++ /var/tmp/diff_new_pack.BTIgRG/_new  2012-07-03 16:46:42.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package parted
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,6 +15,7 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:   parted
 Version:2.4
 Release:0
@@ -42,6 +43,8 @@
 Patch15:parted-use-ext-range.patch
 Patch16:parted-improve-loop-support.patch
 Patch17:fix-nilfs2-probe-function.patch
+Patch18:parted-fix-cciss-partition-naming.patch
+Patch19:dummy-bootcode-only-for-x86.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -78,8 +81,8 @@
 Group:  Development/Libraries/C and C++
 Requires:   device-mapper-devel >= 1.02.33
 Requires:   e2fsprogs-devel
-Requires:   libreiserfs-devel
 Requires:   libparted0 = %version
+Requires:   libreiserfs-devel
 # bug437293
 %ifarch ppc64
 Obsoletes:  parted-devel-64bit
@@ -107,6 +110,8 @@
 %patch15 -p1
 %patch16 -p1
 %patch17 -p1
+%patch18 -p1
+%patch19 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"

++ dummy-bootcode-only-for-x86.patch ++
Index: parted-2.4/libparted/labels/dos.c
===
--- parted-2.4.orig/libparted/labels/dos.c
+++ parted-2.4/libparted/labels/dos.c
@@ -1260,6 +1260,12 @@ msdos_write (const PedDisk* disk)
return 0;
DosRawTable *table = (DosRawTable *) s0;
 
+/*
+ *  Some ARM devices, such as the OMAP3 series, have a buggy boot rom that
+ *  simply goes into nirvana if it finds non-0 in the first 4 bytes of the SD
+ *  card.
+ */
+#if defined(__x86_64__) || defined(__i386__)
/* either no bootrecord at all, or AIX IPL signature ... */
if ( (!table->boot_code[0]) ||
( table->boot_code[0] == (char) 0xc9 &&
@@ -1270,6 +1276,7 @@ msdos_write (const PedDisk* disk)
memset (table->boot_code, 0, 512);
memcpy (table->boot_code, MBR_BOOT_CODE, sizeof 
(MBR_BOOT_CODE));
}
+#endif
 
/* If there is no unique identifier, generate a random one */
if (!table->mbr_signature)
++ parted-fix-cciss-partition-naming.patch ++
Index: parted-2.4/libparted/arch/linux.c
===
--- parted-2.4.orig/libparted/arch/linux.c
+++ parted-2.4/libparted/arch/linux.c
@@ -2226,8 +2226,11 @@ _device_get_part_path (PedDevice *dev, i
 result = zasprintf ("%.*s/part%d",
 (int) (path_len - 5), dev->path, num);
 } else {
-char const *p = (dev->type == PED_DEVICE_DAC960
- || dev->type == PED_DEVICE_CPQARRAY
+   const char *p;
+   if (dev->type == PED_DEVICE_CPQARRAY)
+   p = "p";
+   else
+   p = (dev->type == PED_DEVICE_DAC960
  || dev->type == PED_DEVICE_ATARAID
  || dev->type == PED_DEVICE_DM
  || isdigit (dev->path[path_len - 1])
-- 
To uns

commit parted for openSUSE:Factory

2011-12-31 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2011-12-31 17:20:13

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted", Maintainer is "pu...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2011-11-22 
17:49:23.0 +0100
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2011-12-31 
17:20:15.0 +0100
@@ -1,0 +2,7 @@
+Fri Dec 30 08:42:23 UTC 2011 - pu...@suse.com
+
+- fix crash in nilfs2 probe function if there is tiny (1s)
+  partition on the disk (bnc#735763)
+  - fix-nilfs2-probe-function.patch
+
+---

New:

  fix-nilfs2-probe-function.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.A6AscD/_old  2011-12-31 17:20:17.0 +0100
+++ /var/tmp/diff_new_pack.A6AscD/_new  2011-12-31 17:20:17.0 +0100
@@ -15,15 +15,13 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-
-
 Name:   parted
 Version:2.4
-Release:15
-License:GPL-3.0+
+Release:0
 Summary:GNU partitioner
-Url:http://www.gnu.org/software/parted/
+License:GPL-3.0+
 Group:  System/Filesystems
+Url:http://www.gnu.org/software/parted/
 Source0:%{name}-%{version}.tar.bz2
 Source1:baselibs.conf
 Patch0: always-resize-part.dif
@@ -43,6 +41,7 @@
 Patch14:parted-gpt-sync-mbr-label.patch
 Patch15:parted-use-ext-range.patch
 Patch16:parted-improve-loop-support.patch
+Patch17:fix-nilfs2-probe-function.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -51,8 +50,9 @@
 BuildRequires:  libreiserfs-devel
 BuildRequires:  libselinux-devel
 BuildRequires:  libsepol-devel
+BuildRequires:  libtool
 BuildRequires:  libuuid-devel
-BuildRequires:  libtool pkg-config
+BuildRequires:  pkg-config
 BuildRequires:  readline-devel
 PreReq: %install_info_prereq
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
@@ -66,17 +66,14 @@
 and copying partitions, and the file systems on them.
 
 %package -n libparted0
-License:GPL-3.0+
 Summary:Library for manipulating partitions
 Group:  System/Filesystems
-AutoReqProv:on
 
 %description -n libparted0
 Libparted is a library for creating, destroying, resizing, checking
 and copying partitions and the file systems on them.
 
 %package devel
-License:GPL-3.0+
 Summary:Parted Include Files and Libraries necessary for Development
 Group:  Development/Libraries/C and C++
 Requires:   device-mapper-devel >= 1.02.33
@@ -109,6 +106,7 @@
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
+%patch17 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"

++ fix-nilfs2-probe-function.patch ++
>From 2147402b83b27a35011cad032d0519c4a0672280 Mon Sep 17 00:00:00 2001
From: Jim Meyering 
Date: Sat, 25 Jun 2011 08:49:58 +0200
Subject: [PATCH] libparted: fix a bug in the nilfs2 probe function

* libparted/fs/nilfs2/nilfs2.c (nilfs2_probe): Reject this partition
if we get a negative sb2 offset.  Passing a negative offset to
ped_geometry_read_alloc would evoke a failed assertion.
Bug introduced by 2010-07-09 commit d463e7de.
* NEWS: (Bug fixes): Mention it.
Reported by Daniel Fandrich in
http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10466/focus=10472
---
 NEWS |3 +++
 libparted/fs/nilfs2/nilfs2.c |5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)

Index: parted-2.4/libparted/fs/nilfs2/nilfs2.c
===
--- parted-2.4.orig/libparted/fs/nilfs2/nilfs2.c
+++ parted-2.4/libparted/fs/nilfs2/nilfs2.c
@@ -108,13 +108,14 @@ nilfs2_probe (PedGeometry* geom)
struct nilfs2_super_block *sb = NULL;
struct nilfs2_super_block *sb2 = NULL;
PedSector length = geom->length;
-   PedSector sb2off;
 
/* ignore if sector size is not 512bytes for now  */
if (geom->dev->sector_size != PED_SECTOR_SIZE_DEFAULT)
return NULL;
 
-   sb2off = NILFS_SB2_OFFSET(length);
+   PedSector sb2off = NILFS_SB2_OFFSET(length);
+   if (sb2off <= 2)
+   return NULL;
 
if (ped_geometry_read_alloc(geom, &sb_v, 2, 1))
sb = sb_v;
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2011-12-06 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2011-12-06 18:36:01

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted", Maintainer is "pu...@suse.com"

Changes:




Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.swB8qp/_old  2011-12-06 19:03:12.0 +0100
+++ /var/tmp/diff_new_pack.swB8qp/_new  2011-12-06 19:03:12.0 +0100
@@ -20,7 +20,7 @@
 Name:   parted
 Version:2.4
 Release:15
-License:GPLv3+
+License:GPL-3.0+
 Summary:GNU partitioner
 Url:http://www.gnu.org/software/parted/
 Group:  System/Filesystems
@@ -66,7 +66,7 @@
 and copying partitions, and the file systems on them.
 
 %package -n libparted0
-License:GPLv3+
+License:GPL-3.0+
 Summary:Library for manipulating partitions
 Group:  System/Filesystems
 AutoReqProv:on
@@ -76,7 +76,7 @@
 and copying partitions and the file systems on them.
 
 %package devel
-License:GPLv3+
+License:GPL-3.0+
 Summary:Parted Include Files and Libraries necessary for Development
 Group:  Development/Libraries/C and C++
 Requires:   device-mapper-devel >= 1.02.33

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2011-11-22 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2011-11-22 17:49:11

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted", Maintainer is "pu...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2011-10-27 
13:57:25.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2011-11-22 
17:49:23.0 +0100
@@ -1,0 +2,5 @@
+Sun Nov 20 06:27:06 UTC 2011 - co...@suse.com
+
+- add libtool as buildrequire to avoid implicit dependency
+
+---



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.FF5YEv/_old  2011-11-22 17:49:26.0 +0100
+++ /var/tmp/diff_new_pack.FF5YEv/_new  2011-11-22 17:49:26.0 +0100
@@ -52,7 +52,7 @@
 BuildRequires:  libselinux-devel
 BuildRequires:  libsepol-devel
 BuildRequires:  libuuid-devel
-BuildRequires:  pkg-config
+BuildRequires:  libtool pkg-config
 BuildRequires:  readline-devel
 PreReq: %install_info_prereq
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2011-10-27 Thread h_root
Hello community,

here is the log from the commit of package parted for openSUSE:Factory checked 
in at 2011-10-27 13:51:18

Comparing /work/SRC/openSUSE:Factory/parted (Old)
 and  /work/SRC/openSUSE:Factory/.parted.new (New)


Package is "parted", Maintainer is "pu...@suse.com"

Changes:

--- /work/SRC/openSUSE:Factory/parted/parted.changes2011-09-27 
16:08:06.0 +0200
+++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes   2011-10-27 
13:57:25.0 +0200
@@ -1,0 +2,6 @@
+Wed Oct 26 17:22:16 UTC 2011 - pu...@suse.com
+
+- improve loop support, fix geometry reporting on loopback devices:
+  parted-improve-loop-support.patch (bnc#726603)
+
+---

New:

  parted-improve-loop-support.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.5nPWVT/_old  2011-10-27 13:57:33.0 +0200
+++ /var/tmp/diff_new_pack.5nPWVT/_new  2011-10-27 13:57:33.0 +0200
@@ -42,6 +42,7 @@
 Patch13:parted-2.4-ncursesw6.patch
 Patch14:parted-gpt-sync-mbr-label.patch
 Patch15:parted-use-ext-range.patch
+Patch16:parted-improve-loop-support.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -107,6 +108,7 @@
 %patch13
 %patch14 -p1
 %patch15 -p1
+%patch16 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"

++ parted-improve-loop-support.patch ++
Index: parted-2.4/NEWS
===
--- parted-2.4.orig/NEWS
+++ parted-2.4/NEWS
@@ -2,6 +2,10 @@ GNU parted NEWS
 
 * Noteworthy changes in release 2.4 (2011-05-18) [stable]
 
+** New features
+
+  parted has improved support for partitionable loopback devices
+
 ** Bug fixes
 
   parted no longer allows the modification of certain in-use partitions.
Index: parted-2.4/include/parted/device.h
===
--- parted-2.4.orig/include/parted/device.h
+++ parted-2.4/include/parted/device.h
@@ -48,7 +48,8 @@ typedef enum {
 PED_DEVICE_SDMMC= 14,
 PED_DEVICE_VIRTBLK  = 15,
 PED_DEVICE_AOE  = 16,
-PED_DEVICE_MD   = 17
+PED_DEVICE_MD   = 17,
+PED_DEVICE_LOOP = 18
 } PedDeviceType;
 
 typedef struct _PedDevice PedDevice;
Index: parted-2.4/libparted/arch/linux.c
===
--- parted-2.4.orig/libparted/arch/linux.c
+++ parted-2.4/libparted/arch/linux.c
@@ -586,7 +586,7 @@ _device_probe_type (PedDevice* dev)
 } else if (_is_virtblk_major(dev_major)) {
 dev->type = PED_DEVICE_VIRTBLK;
 } else if (dev_major == LOOP_MAJOR) {
-dev->type = PED_DEVICE_FILE;
+dev->type = PED_DEVICE_LOOP;
 } else if (dev_major == MD_MAJOR) {
 dev->type = PED_DEVICE_MD;
 } else {
@@ -1376,6 +1376,11 @@ linux_new (const char* path)
 goto error_free_arch_specific;
 break;
 
+case PED_DEVICE_LOOP:
+if (!init_generic (dev, _("Loopback device")))
+goto error_free_arch_specific;
+break;
+
 case PED_DEVICE_DM:
 {
   char* type;
@@ -2411,6 +2416,61 @@ _blkpg_remove_partition (PedDisk* disk,
 BLKPG_DEL_PARTITION);
 }
 
+/* Read the integer from /sys/block/DEV_BASE/ENTRY and set *VAL
+   to that value, where DEV_BASE is the last component of DEV->path.
+   Upon success, return true.  Otherwise, return false. */
+static bool
+_sysfs_int_entry_from_dev(PedDevice const* dev, const char *entry, int *val)
+{
+charpath[128];
+int r = snprintf(path, sizeof(path), "/sys/block/%s/%s",
+last_component(dev->path), entry);
+if (r < 0 || r >= sizeof(path))
+return false;
+
+FILE *fp = fopen(path, "r");
+if (!fp)
+return false;
+
+bool ok = fscanf(fp, "%d", val) == 1;
+fclose(fp);
+
+return ok;
+}
+
+/* Return the maximum number of partitions that the loopback device can hold.
+   First, check the loop-module-exported max_part parameter (since linux-3.0).
+   If that is not available, fall back to checking ext_range, which seems to
+   have (for some reason) different semantics compared to other devices;
+   specifically, ext_range <= 1 means that the loopback device does
+   not support partitions.  */
+static unsigned int
+_loop_get_partition_range(PedDevice const* dev)
+{
+int max_part;
+  

commit parted for openSUSE:Factory

2011-09-27 Thread h_root

Hello community,

here is the log from the commit of package parted for openSUSE:Factory
checked in at Tue Sep 27 16:08:08 CEST 2011.




--- parted/parted.changes   2011-09-07 17:20:03.0 +0200
+++ /mounts/work_src_done/STABLE/parted/parted.changes  2011-09-27 
11:17:42.0 +0200
@@ -1,0 +2,7 @@
+Mon Sep 26 08:41:49 UTC 2011 - pu...@suse.com
+
+- improve parted-gpt-sync-mbr-label.patch: do not
+  sync partitions that can not be represented by the DOS label
+  (bnc#710402)
+
+---

calling whatdependson for head-i586




Other differences:
--
++ parted-gpt-sync-mbr-label.patch ++
--- /var/tmp/diff_new_pack.62zgzn/_old  2011-09-27 16:08:04.0 +0200
+++ /var/tmp/diff_new_pack.62zgzn/_new  2011-09-27 16:08:04.0 +0200
@@ -195,7 +195,21 @@
/* Search for an EFI System Partition */
esp = _find_first_part(disk);
if (!esp || !esp->fs_type || strncmp (esp->fs_type->name, "fat", 3) != 0)
-@@ -1203,8 +1282,7 @@ _write_pmbr (const PedDisk *disk)
+@@ -1191,6 +1270,13 @@ _write_pmbr (const PedDisk *disk)
+   i--;
+   continue;
+   }
++
++  /* partition can not be represented by dos label - don't sync it */
++  if (part->geom.start > 0x ||
++  (part->geom.end - part->geom.start + 1) > 0x) {
++  continue;
++  }
++
+   pmbr->PartitionRecord[i].OSType  = _part_to_ostype(part);
+   pmbr->PartitionRecord[i].StartHead = 0xFE;
+   pmbr->PartitionRecord[i].StartSector   = 0xFF;
+@@ -1203,8 +1289,7 @@ _write_pmbr (const PedDisk *disk)
pmbr->PartitionRecord[i].BootIndicator = 0x80;
pmbr->PartitionRecord[i].SizeInLBA = _part_32bitmax(part->geom.end - 
part->geom.start + 1);
}
@@ -205,7 +219,7 @@
int write_ok = ped_device_write (dev, pmbr, GPT_PMBR_LBA,
 GPT_PMBR_SECTORS);
free (s0);
-@@ -1902,6 +1980,38 @@ static PedDiskOps gpt_disk_ops =
+@@ -1902,6 +1987,38 @@ static PedDiskOps gpt_disk_ops =
PT_op_function_initializers (gpt)
  };
  
@@ -244,7 +258,7 @@
  static PedDiskType gpt_disk_type =
  {
next:   NULL,
-@@ -1910,16 +2020,26 @@ static PedDiskType gpt_disk_type =
+@@ -1910,16 +2027,26 @@ static PedDiskType gpt_disk_type =
features:   PED_DISK_TYPE_PARTITION_NAME
  };
  






Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2011-09-09 Thread h_root

Hello community,

here is the log from the commit of package parted for openSUSE:Factory
checked in at Fri Sep 9 11:50:14 CEST 2011.




--- parted/parted.changes   2011-09-05 14:34:13.0 +0200
+++ /mounts/work_src_done/STABLE/parted/parted.changes  2011-09-07 
17:20:03.0 +0200
@@ -1,0 +2,8 @@
+Wed Sep  7 15:05:08 UTC 2011 - pu...@suse.com
+
+- change do-not-create-dm-nodes.patch so that parted does
+  not remove dm partition mappings and leaves the job up
+  to kpartx -u called via udev
+  (bnc#712177, bnc#679780)
+
+---

calling whatdependson for head-i586




Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.63K8ny/_old  2011-09-09 11:50:08.0 +0200
+++ /var/tmp/diff_new_pack.63K8ny/_new  2011-09-09 11:50:08.0 +0200
@@ -19,7 +19,7 @@
 
 Name:   parted
 Version:2.4
-Release:13
+Release:15
 License:GPLv3+
 Summary:GNU partitioner
 Url:http://www.gnu.org/software/parted/

++ do-not-create-dm-nodes.patch ++
--- /var/tmp/diff_new_pack.63K8ny/_old  2011-09-09 11:50:08.0 +0200
+++ /var/tmp/diff_new_pack.63K8ny/_new  2011-09-09 11:50:08.0 +0200
@@ -1,8 +1,8 @@
-Index: parted-1.9.0/libparted/arch/linux.c
+Index: parted-2.4/libparted/arch/linux.c
 ===
 parted-1.9.0.orig/libparted/arch/linux.c   2009-10-07 14:14:58.0 
+0200
-+++ parted-1.9.0/libparted/arch/linux.c2009-10-07 14:22:58.0 
+0200
-@@ -30,6 +30,7 @@
+--- parted-2.4.orig/libparted/arch/linux.c
 parted-2.4/libparted/arch/linux.c
+@@ -33,6 +33,7 @@
  #include 
  #include 
  #include 
@@ -10,7 +10,7 @@
  #include 
  #include 
  #include 
-@@ -2551,29 +2552,41 @@ err:
+@@ -2770,29 +2771,39 @@ err:
  static int
  _dm_reread_part_table (PedDisk* disk)
  {
@@ -28,9 +28,8 @@
 +  FILE*   f;
  
  sync();
- if (!_dm_remove_parts(disk->dev))
+-if (!_dm_remove_parts(disk->dev))
 -rc = 0;
-+return 0;
  
 -for (i = 1; i <= last; i++) {
 -PedPartition*  part;






Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2011-09-05 Thread h_root

Hello community,

here is the log from the commit of package parted for openSUSE:Factory
checked in at Mon Sep 5 16:43:46 CEST 2011.




--- parted/parted.changes   2011-08-25 12:50:38.0 +0200
+++ parted/parted.changes   2011-09-05 14:34:13.0 +0200
@@ -1,0 +2,5 @@
+Mon Sep  5 12:08:48 UTC 2011 - pu...@suse.com
+
+- add parted-use-ext-range.patch (bnc#715695) 
+
+---

calling whatdependson for head-i586


New:

  parted-use-ext-range.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.ahY41M/_old  2011-09-05 16:43:11.0 +0200
+++ /var/tmp/diff_new_pack.ahY41M/_new  2011-09-05 16:43:11.0 +0200
@@ -19,7 +19,7 @@
 
 Name:   parted
 Version:2.4
-Release:11
+Release:13
 License:GPLv3+
 Summary:GNU partitioner
 Url:http://www.gnu.org/software/parted/
@@ -41,6 +41,7 @@
 Patch12:more-reliable-informing-the-kernel.patch
 Patch13:parted-2.4-ncursesw6.patch
 Patch14:parted-gpt-sync-mbr-label.patch
+Patch15:parted-use-ext-range.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -105,6 +106,7 @@
 %patch12 -p1
 %patch13
 %patch14 -p1
+%patch15 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"

++ parted-use-ext-range.patch ++
Index: parted-2.4/libparted/arch/linux.c
===
--- parted-2.4.orig/libparted/arch/linux.c
+++ parted-2.4/libparted/arch/linux.c
@@ -2413,7 +2413,7 @@ _blkpg_remove_partition (PedDisk* disk,
 
 /*
  * The number of partitions that a device can have depends on the kernel.
- * If we don't find this value in /sys/block/DEV/range, we will use our own
+ * If we don't find this value in /sys/block/DEV/ext_range, we will use our own
  * value.
  */
 static unsigned int
@@ -2424,7 +2424,7 @@ _device_get_partition_range(PedDevice* d
 FILE*   fp;
 boolok;
 
-r = snprintf(path, sizeof(path), "/sys/block/%s/range",
+r = snprintf(path, sizeof(path), "/sys/block/%s/ext_range",
  last_component(dev->path));
 if (r < 0 || r >= sizeof(path))
 return MAX_NUM_PARTS;





Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2011-08-26 Thread h_root

Hello community,

here is the log from the commit of package parted for openSUSE:Factory
checked in at Fri Aug 26 09:25:10 CEST 2011.




--- parted/parted.changes   2011-08-16 11:12:59.0 +0200
+++ /mounts/work_src_done/STABLE/parted/parted.changes  2011-08-25 
12:50:38.0 +0200
@@ -1,0 +2,6 @@
+Thu Aug 25 10:22:09 UTC 2011 - pu...@novell.com
+
+- add parted-gpt-sync-mbr-label.patch (bnc#710402) 
+  - this patch implements support for special label 'gpt-sync-mbr'
+
+---

calling whatdependson for head-i586


New:

  parted-gpt-sync-mbr-label.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.s5a5VR/_old  2011-08-26 09:24:32.0 +0200
+++ /var/tmp/diff_new_pack.s5a5VR/_new  2011-08-26 09:24:32.0 +0200
@@ -19,7 +19,7 @@
 
 Name:   parted
 Version:2.4
-Release:9
+Release:11
 License:GPLv3+
 Summary:GNU partitioner
 Url:http://www.gnu.org/software/parted/
@@ -40,6 +40,7 @@
 #PATCH-FEATURE-OPENSUSE more-reliable-informing-the-kernel.patch bnc#657360 
petr.u...@suse.cz
 Patch12:more-reliable-informing-the-kernel.patch
 Patch13:parted-2.4-ncursesw6.patch
+Patch14:parted-gpt-sync-mbr-label.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -103,6 +104,7 @@
 %patch11 -p1
 %patch12 -p1
 %patch13
+%patch14 -p1
 
 %build
 export CFLAGS="%{optflags} `ncursesw6-config --cflags`"

++ parted-gpt-sync-mbr-label.patch ++
Index: parted-2.4/libparted/labels/gpt.c
===
--- parted-2.4.orig/libparted/labels/gpt.c
+++ parted-2.4/libparted/labels/gpt.c
@@ -51,11 +51,6 @@
 #  define _(String) (String)
 #endif /* ENABLE_NLS */
 
-/* IA64 always has a properly working EFI implementation */
-#ifndef __ia64__
-#define GPT_SYNC_MBR
-#endif
-
 #define EFI_PMBR_OSTYPE_EFI 0xEE
 #define MSDOS_MBR_SIGNATURE 0xaa55
 
@@ -290,6 +285,7 @@ typedef struct _GPTPartitionData
 } GPTPartitionData;
 
 static PedDiskType gpt_disk_type;
+static PedDiskType gpt_sync_mbr_disk_type;
 
 static inline uint32_t
 pth_get_size (const PedDevice *dev)
@@ -458,8 +454,50 @@ _pmbr_is_valid (const LegacyMBR_t *mbr)
   return 0;
 }
 
+/* checks if device has a hybrid protective MBR partition table
+ *
+ * If the 1st partition has type 0xEE that spans the entire
+ * size of the disk from sector 1 to the last sector
+ * (or 2 TiB, whichever is smaller), we consider it 'normal' GPT.
+ * Otherwise it is synced GPT with hybridized pMBR.
+ */
+static inline int
+_has_hybrid_pmbr (const PedDevice *dev)
+{
+  int has_hybrid_pmbr = 1;
+
+  PED_ASSERT (dev != NULL);
+
+  void *label;
+  if (!ptt_read_sector (dev, 0, &label))
+return 0;
+
+  LegacyMBR_t mbr;
+  memcpy(&mbr, label, sizeof(mbr));
+
+  if (mbr.Signature != PED_CPU_TO_LE16 (MSDOS_MBR_SIGNATURE)) {
+free(label);
+return 0;
+  }
+
+  uint32_t efi_gpt_expected_size;
+  if ((dev->length - 1ULL) > 0xULL)
+efi_gpt_expected_size = 0x;
+  else
+efi_gpt_expected_size = dev->length - 1UL;
+
+  if ((mbr.PartitionRecord[0].OSType == EFI_PMBR_OSTYPE_EFI) &&
+  (mbr.PartitionRecord[0].StartingLBA == PED_CPU_TO_LE32(1)) &&
+  (mbr.PartitionRecord[0].SizeInLBA == 
PED_CPU_TO_LE32(efi_gpt_expected_size)))
+/* pMBR is not hybrid */
+has_hybrid_pmbr = 0;
+
+  free(label);
+  return has_hybrid_pmbr;
+}
+
 static int
-gpt_probe (const PedDevice *dev)
+_gpt_probe_generic(const PedDevice *dev)
 {
   GuidPartitionTableHeader_t *gpt = NULL;
   int gpt_sig_found = 0;
@@ -512,6 +550,19 @@ gpt_probe (const PedDevice *dev)
   return ok;
 }
 
+static int
+gpt_probe (const PedDevice *dev)
+{
+  return _gpt_probe_generic(dev) && !_has_hybrid_pmbr(dev);
+}
+
+
+static int
+gpt_sync_mbr_probe (const PedDevice *dev)
+{
+  return _gpt_probe_generic(dev) && _has_hybrid_pmbr(dev);
+}
+
 static PedDisk *
 gpt_alloc (const PedDevice *dev)
 {
@@ -543,6 +594,36 @@ error:
 }
 
 static PedDisk *
+gpt_sync_mbr_alloc (const PedDevice *dev)
+{
+  PedDisk *disk;
+  GPTDiskData *gpt_disk_data;
+  PedSector data_start, data_end;
+
+  disk = _ped_disk_alloc ((PedDevice *) dev, &gpt_sync_mbr_disk_type);
+  if (!disk)
+goto error;
+  disk->disk_specific = gpt_disk_data = ped_malloc (sizeof (GPTDiskData));
+  if (!disk->disk_specific)
+goto error_free_disk;
+
+  data_start = 2 + GPT_DEFAULT_PARTITION_ENTRY_ARRAY_SIZE / dev->sector_size;
+  data_end = dev->length - 2
+- GPT_DEFAULT_PARTITION_ENTRY_ARRAY_SIZE / dev->sector_size;
+  ped_geometry_init (&gpt_disk_data->data_area, dev, data_start,
+ data_end - data_start + 1);
+  gpt_disk_data->entry_count = GPT_DEFAULT_PARTITION_ENTRIES;
+  uuid_generate ((unsigned char *) &gpt_disk_data->

commit parted for openSUSE:Factory

2011-08-17 Thread h_root

Hello community,

here is the log from the commit of package parted for openSUSE:Factory
checked in at Wed Aug 17 09:52:38 CEST 2011.




--- parted/parted.changes   2011-07-31 03:51:53.0 +0200
+++ /mounts/work_src_done/STABLE/parted/parted.changes  2011-08-16 
11:12:59.0 +0200
@@ -1,0 +2,6 @@
+Tue Aug 16 09:07:50 UTC 2011 - pu...@novell.com
+
+- update parted-gpt-mbr-sync.patch so that it no longer
+  creates synced partitions one sector shorter (bnc#700465)
+
+---

calling whatdependson for head-i586




Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.wfmHXG/_old  2011-08-17 09:44:51.0 +0200
+++ /var/tmp/diff_new_pack.wfmHXG/_new  2011-08-17 09:44:51.0 +0200
@@ -19,7 +19,7 @@
 
 Name:   parted
 Version:2.4
-Release:7
+Release:9
 License:GPLv3+
 Summary:GNU partitioner
 Url:http://www.gnu.org/software/parted/

++ parted-gpt-mbr-sync.patch ++
--- /var/tmp/diff_new_pack.wfmHXG/_old  2011-08-17 09:44:52.0 +0200
+++ /var/tmp/diff_new_pack.wfmHXG/_new  2011-08-17 09:44:52.0 +0200
@@ -4,9 +4,9 @@
 
 Index: libparted/labels/gpt.c
 ===
 libparted/labels/gpt.c.orig2010-05-06 15:46:05.0 +0200
-+++ libparted/labels/gpt.c 2010-07-08 13:29:33.0 +0200
-@@ -50,6 +50,11 @@
+--- libparted/labels/gpt.c.orig
 libparted/labels/gpt.c
+@@ -51,6 +51,11 @@
  #  define _(String) (String)
  #endif /* ENABLE_NLS */
  
@@ -18,7 +18,7 @@
  #define EFI_PMBR_OSTYPE_EFI 0xEE
  #define MSDOS_MBR_SIGNATURE 0xaa55
  
-@@ -1056,11 +1061,60 @@ error:
+@@ -1072,11 +1077,60 @@ error:
return 0;
  }
  
@@ -80,7 +80,7 @@
/* The UEFI spec is not clear about what to do with the following
   elements of the Protective MBR (pmbr): BootCode (0-440B),
   UniqueMBRSignature (440B-444B) and Unknown (444B-446B).
-@@ -1070,10 +1124,13 @@ _write_pmbr (PedDevice *dev)
+@@ -1086,10 +1140,13 @@ _write_pmbr (PedDevice *dev)
  return 0;
LegacyMBR_t *pmbr = s0;
  
@@ -94,7 +94,7 @@
pmbr->PartitionRecord[0].OSType = EFI_PMBR_OSTYPE_EFI;
pmbr->PartitionRecord[0].StartSector = 1;
pmbr->PartitionRecord[0].EndHead = 0xFE;
-@@ -1084,6 +1141,54 @@ _write_pmbr (PedDevice *dev)
+@@ -1100,6 +1157,53 @@ _write_pmbr (PedDevice *dev)
  pmbr->PartitionRecord[0].SizeInLBA = PED_CPU_TO_LE32 (0x);
else
  pmbr->PartitionRecord[0].SizeInLBA = PED_CPU_TO_LE32 (dev->length - 1UL);
@@ -133,7 +133,6 @@
 +  continue;
 +  }
 +  pmbr->PartitionRecord[i].OSType  = _part_to_ostype(part);
-+  pmbr->PartitionRecord[i].StartSector = 1;
 +  pmbr->PartitionRecord[i].StartHead = 0xFE;
 +  pmbr->PartitionRecord[i].StartSector   = 0xFF;
 +  pmbr->PartitionRecord[i].StartTrack= 0xFF;
@@ -143,13 +142,13 @@
 +  pmbr->PartitionRecord[i].StartingLBA = _part_32bitmax(part->geom.start);
 +  if(((GPTPartitionData*)part->disk_specific)->boot)
 +  pmbr->PartitionRecord[i].BootIndicator = 0x80;
-+  pmbr->PartitionRecord[i].SizeInLBA = _part_32bitmax(part->geom.end - 
part->geom.start);
++  pmbr->PartitionRecord[i].SizeInLBA = _part_32bitmax(part->geom.end - 
part->geom.start + 1);
 +  }
 +#endif
  
int write_ok = ped_device_write (dev, pmbr, GPT_PMBR_LBA,
 GPT_PMBR_SECTORS);
-@@ -1198,7 +1303,7 @@ gpt_write (const PedDisk *disk)
+@@ -1216,7 +1320,7 @@ gpt_write (const PedDisk *disk)
ptes_crc = efi_crc32 (ptes, ptes_size);
  
/* Write protective MBR */






Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2011-08-02 Thread h_root

Hello community,

here is the log from the commit of package parted for openSUSE:Factory
checked in at Tue Aug 2 14:56:06 CEST 2011.




--- parted/parted.changes   2011-05-19 15:25:01.0 +0200
+++ /mounts/work_src_done/STABLE/parted/parted.changes  2011-07-31 
03:51:53.0 +0200
@@ -1,0 +2,6 @@
+Sun Jul 31 01:50:07 UTC 2011 - crrodrig...@opensuse.org
+
+- Use ncursesw6 instead of plain-old ncurses5 
+- Disable automake silent rules
+
+---

calling whatdependson for head-i586


New:

  parted-2.4-ncursesw6.patch



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.QcZchM/_old  2011-08-02 14:55:50.0 +0200
+++ /var/tmp/diff_new_pack.QcZchM/_new  2011-08-02 14:55:50.0 +0200
@@ -19,7 +19,7 @@
 
 Name:   parted
 Version:2.4
-Release:1
+Release:7
 License:GPLv3+
 Summary:GNU partitioner
 Url:http://www.gnu.org/software/parted/
@@ -39,7 +39,7 @@
 Patch11:do-not-create-dm-nodes.patch
 #PATCH-FEATURE-OPENSUSE more-reliable-informing-the-kernel.patch bnc#657360 
petr.u...@suse.cz
 Patch12:more-reliable-informing-the-kernel.patch
-
+Patch13:parted-2.4-ncursesw6.patch
 Requires:   /sbin/udevadm
 BuildRequires:  check-devel
 BuildRequires:  device-mapper-devel >= 1.02.33
@@ -102,15 +102,19 @@
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
+%patch13
 
 %build
+export CFLAGS="%{optflags} `ncursesw6-config --cflags`"
+export LDFLAGS="`ncursesw6-config --libs`"
 AUTOPOINT=true autoreconf --force --install
 %configure --disable-static \
--with-pic \
--enable-device-mapper=yes  \
--enable-dynamic-loading=no \
--enable-selinux\
-   --disable-Werror
+   --disable-Werror \
+--disable-silent-rules
 make %{?_smp_mflags}
 
 %install

++ parted-2.4-ncursesw6.patch ++
--- configure.ac.orig
+++ configure.ac
@@ -178,7 +178,8 @@ AM_CPPFLAGS="$AM_CPPFLAGS -D_REENTRANT"
 
 dnl Check for programs.
 AC_ISC_POSIX
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
 AC_PROG_GCC_TRADITIONAL
 AM_PROG_CC_C_O
 
@@ -384,7 +385,7 @@ dnl Check for termcap
 if test "$with_readline" = yes; then
OLD_LIBS="$LIBS"
LIBS=""
-   AC_SEARCH_LIBS([tgetent], [tinfo ncurses curses termcap termlib],
+   AC_SEARCH_LIBS([tgetent], [tinfo ncursesw curses termcap termlib],
[PARTED_LIBS="$PARTED_LIBS $LIBS"],
[AC_MSG_ERROR(dnl
 [termcap could not be found which is required for the





Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit parted for openSUSE:Factory

2011-05-20 Thread h_root

Hello community,

here is the log from the commit of package parted for openSUSE:Factory
checked in at Fri May 20 14:48:57 CEST 2011.




--- parted/parted.changes   2010-12-09 10:45:03.0 +0100
+++ /mounts/work_src_done/STABLE/parted/parted.changes  2011-05-19 
15:25:01.0 +0200
@@ -1,0 +2,55 @@
+Thu May 19 13:05:08 UTC 2011 - pu...@novell.com
+
+- update to parted-2.4 
+ * Bug fixes
+  - parted no longer allows the modification of certain in-use
+partitions.  In particular, before this fix, parted would
+permit removal or modification of any in-use partition on a
+dmraid and any in-use partition beyond the 15th on a regular
+scsi disk.
+  - Improve support of DASD devices on the s390 architecture.
+Parted now supports all DASD types (CKD and FBA), DASD formats
+(CDL, LDL, CMS non-reserved, and CMS reserved), and DASD
+drivers (ECKD, FBA, and DIAG) in all combinations supported by
+the Linux kernel.  As before, only CDL format on CKD DASD using
+the ECKD driver is supported for read-write operations (create,
+delete, move, re-size, etc.).  However, the implicit partition
+present on LDL- and CMS-formatted disks is now correctly
+recognized for read-only operations.  In detail:
+- parted now correctly handles LDL-format disks with a block
+  size other than 4096 (bug fix)
+- parted now recognizes the CMS disk format, both reserved and
+  non-reserved (enhancement)
+- parted now supports FBA DASD devices (enhancement)
+- parted now supports the DIAG driver when running in a virtual
+  machine under z/VM (enhancement)
+  - libparted: raise the limit on the maximum start sector and the
+maximum number of sectors in a "loop" partition table from 2^32
+to 2^64.
+  - libparted once again recognizes a whole-disk FAT partition
+  - libparted now recognizes scsi disks with a high major (128-135)
+as scsi disks
+  - an msdos partition table on a very small device (smaller than
+one cylinder) is now recognized.
+  - libparted: zero-length devices (other than files) are ignored
+rather than throwing an exception.
+  - libparted: gpt label creation can no longer divide by zero with
+a defective device or when a concurrent writer modifies the
+PE-size bytes in the small interval between the write and
+subsequent read of the primary GPT header.
+ * Changes in behavior
+  - "parted $dev print" now prints information about the device
+(model, size, transport, sector size) even when it fails to
+recognize the disk label.
+  - specifying partition start or end values using MiB, GiB, etc.
+suffixes now makes parted do what I want, i.e., use that
+precise value, and not some other that is up to 500KiB or
+500MiB away from what I specified.  Before, to get that
+behavior, you would have had to use carefully chosen values
+with units of bytes ("B") or sectors ("s") to obtain the same
+result, and with sectors, your usage would not be portable
+between devices with varying sector sizes.  This change does
+not affect how parted handles suffixes like KB, MB, GB, etc.
+- drop always_print_geom.diff (merged upstream)
+
+---

calling whatdependson for head-i586


Old:

  always_print_geom.diff
  parted-2.3.tar.bz2

New:

  parted-2.4.tar.bz2



Other differences:
--
++ parted.spec ++
--- /var/tmp/diff_new_pack.EzsZW6/_old  2011-05-20 14:48:28.0 +0200
+++ /var/tmp/diff_new_pack.EzsZW6/_new  2011-05-20 14:48:28.0 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package parted (Version 2.3)
+# spec file for package parted
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,8 +18,8 @@
 
 
 Name:   parted
-Version:2.3
-Release:5
+Version:2.4
+Release:1
 License:GPLv3+
 Summary:GNU partitioner
 Url:http://www.gnu.org/software/parted/
@@ -31,7 +31,6 @@
 Patch2: parted-mac.patch
 Patch3: parted-wipeaix.patch
 Patch5: hfs_fix.dif
-Patch6: always_print_geom.diff
 Patch7: fix-function-def.patch
 Patch8: parted-gpt-mbr-sync.patch
 #PATCH-FEATURE-OPENSUSE fix-dm-partition-name.patch bnc471440,447591 
petr.u...@suse.cz
@@ -98,7 +97,6 @@
 %patch2 -p1
 %patch3 -p1
 %patch5 -p1
-%patch6
 %patch7
 %patch8
 %patch10 -p1

++ fix-dm-partition-name.patch ++
--- /var/tmp/diff_new_pack.EzsZW6/_old  2011-05-20 14:48:28.0 +0200
+++ /var/tmp/diff_new_pack.EzsZW6/_new  2011-05-20 14:48:28.0 +0200
@@ -1,13 +1,13 @@
-Index: parted-2.3/libp