~ubuntu-branches/ubuntu/utopic/parted/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/patches/dmraid.patch

  • Committer: Package Import Robot
  • Author(s): Phillip Susi
  • Date: 2013-08-12 10:11:10 UTC
  • mfrom: (7.2.25 sid)
  • Revision ID: package-import@ubuntu.com-20130812101110-b6xi9i5tcoq7deo0
Tags: 2.3-14
* Merge fix-head-size-assertion.patch from Ubuntu: change an
  assert so it correctly recovers instead of aborting the program
  (closes: #620273).
* Merge dm_p_separator.patch from Ubuntu: parted would add a
  'p' between the base device name and the partition number for
  all device-mapper devices instead of only if the base name
  ended in a digit.
* Merge remove-dev_t-dep.patch from Ubuntu: parted was making
  bad assumptions about the meaning of the values of dev_t,
  causing it to fail to detect in-use partitions on all dmraid
  disks, and regular disk partitions > #16.
* Merge skip-floppy.patch from Ubuntu: add floppies to the list
  of ignored devices since they can not be partitioned anyhow,
  and often people have no floppy though their bios thinks they do,
  and touching it causes hangs.
* Merge gptsync.patch from Ubuntu: On Intel Mac systems, write a
  synced MBR rather than a protective MBR.
* Merge loop-partitions.patch from Ubuntu: backport some changes
  to allow the use of partitions on loop devices.  This also
  allows more than 16 partitions.
* Merge dmraid.patch from Ubuntu: Don't probe dmraid partition
  devices.  Also set UUID of newly created dmraid partition devices.
* Merge dm-part-sync.patch from Ubuntu: refactor device-mapper
  partition sync code so it does not fail when unmodified partitions
  are mounted.
* Merge udevadm-settle.patch from Ubuntu: Run udevadm settle around
  partition table rereads, to avoid races.
* Merge 16-dos-partitions.patch from Ubuntu: the kernel was not
  being informed of partitions above #16 on dos partition tables
  (closes: #667638).
* Merge hfs-probe-corrupt.patch from Ubuntu: don't let a corrupt
  FS evoke failed assertion.
* Backport online resize patches: 0001-parted-resizepart-command.patch,
  0003-libparted-Add-support-for-BLKPG-ioctl-partition-resi.patch,
  and 0004-parted-make-_partition_warn_busy-actually-a-warning.patch
* Merge fewer-gpt-entries.patch: Backport upstream patches to handle
  GPT labels with fewer than 128 partition entries (LP: #1187560).
* debian/patches/avoid-disturbing-partitions.patch: Don't remove and
  re-add unmodified partitions (LP: #1060484).
* debian/patches/linux-specific-gpt-type.patch: Backport upstream
  changes to use a linux specific partition type code instead of
  Microsoft's, which causes Windows to offer to format the partition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
From: Phillip Susi <psusi@ubuntu.com>
2
2
Subject: Hide non dmraid whole disk dm devices
3
 
Description: Don't probe dm devices unless they are dmraid whole
4
 
 disk devices, not partitions.  Also set UUID of newly created
5
 
 dmraid partition devices.
 
3
Description: Don't probe dmraid partition devices.  Also set
 
4
 UUID of newly created dmraid partition devices.
6
5
Forwarded: yes
7
6
 
8
 
Index: b/libparted/arch/linux.c
9
 
===================================================================
10
7
--- a/libparted/arch/linux.c
11
8
+++ b/libparted/arch/linux.c
12
 
@@ -268,6 +268,9 @@
 
9
@@ -267,6 +267,9 @@
13
10
 
14
11
 static char* _device_get_part_path (PedDevice* dev, int num);
15
12
 static int _partition_is_mounted_by_path (const char* path);
19
16
 
20
17
 static int
21
18
 _read_fd (int fd, char **buf)
22
 
@@ -485,13 +488,52 @@
 
19
@@ -484,13 +487,52 @@
23
20
                if (stat (buf, &st) != 0)
24
21
                        continue;
25
22
 
73
70
 #endif
74
71
 
75
72
 static int
76
 
@@ -2669,20 +2711,26 @@
 
73
@@ -2664,20 +2706,26 @@
77
74
         return 0;
78
75
 }
79
76
 
102
99
         if (!dm_task_run(task))
103
100
                 goto err;
104
101
 
105
 
@@ -2695,14 +2743,20 @@
 
102
@@ -2690,14 +2738,20 @@
106
103
         if (!deps)
107
104
                 goto err;
108
105