r1982 - in trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian: . patches patches/series

maks andries maks-guest@haydn.debian.org
Tue, 07 Dec 2004 16:21:58 -0700


Author: maks-guest
Date: 2004-12-07 16:21:34 -0700 (Tue, 07 Dec 2004)
New Revision: 1982

Added:
   trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/fs-partitions-check.dpatch
Modified:
   trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/changelog
   trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/series/2.6.8-9
Log:
restore BLKRRPART ioctl behaviour, 
2.6.8 change broke userspace partitioning programm.


Modified: trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/changelog
===================================================================
--- trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/changelog	2004-12-07 09:46:43 UTC (rev 1981)
+++ trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/changelog	2004-12-07 23:21:34 UTC (rev 1982)
@@ -19,6 +19,9 @@
   * [SECURITY] Fix buffer overrun in x86_64's sys32_ni_syscall
     (Andres Salomon).
 
+  * Restore BLKRRPART semantics - breaks partitioning programms on empty disks
+    (Maximilian Attems).
+
  -- dann frazier <dannf@debian.org>  Fri, 03 Dec 2004 00:13:41 -0700
 
 kernel-source-2.6.8 (2.6.8-10) unstable; urgency=high

Added: trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/fs-partitions-check.dpatch
===================================================================
--- trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/fs-partitions-check.dpatch	2004-12-07 09:46:43 UTC (rev 1981)
+++ trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/fs-partitions-check.dpatch	2004-12-07 23:21:34 UTC (rev 1982)
@@ -0,0 +1,24 @@
+#! /bin/sh -e 
+## <PATCHNAME>.dpatch by <PATCH_AUTHOR@EMAI>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Description: restore BLKRRPART ioctl semantics
+## DP: Patch author: Andries Brouwer
+## DP: Upstream status: backport 2.6.10-rc3-bk2
+## DP: Reference: http://marc.theaimsgroup.com/?l=linux-kernel&m=110229798426631&w=2
+
+. $(dirname $0)/DPATCH
+
+@DPATCH@
+diff -Nru a/fs/partitions/check.c b/fs/partitions/check.c
+--- a/fs/partitions/check.c	2004-12-07 15:08:27 -08:00
++++ b/fs/partitions/check.c	2004-12-07 15:08:27 -08:00
+@@ -395,7 +395,7 @@
+ 	if (disk->fops->revalidate_disk)
+ 		disk->fops->revalidate_disk(disk);
+ 	if (!get_capacity(disk) || !(state = check_partition(disk, bdev)))
+-		return -EIO;
++		return 0;
+ 	for (p = 1; p < state->limit; p++) {
+ 		sector_t size = state->parts[p].size;
+ 		sector_t from = state->parts[p].from;

Modified: trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/series/2.6.8-9
===================================================================
--- trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/series/2.6.8-9	2004-12-07 09:46:43 UTC (rev 1981)
+++ trunk/kernel/source/kernel-source-2.6.8-2.6.8/debian/patches/series/2.6.8-9	2004-12-07 23:21:34 UTC (rev 1982)
@@ -25,3 +25,4 @@
 + smbfs-overflow-fixes.dpatch
 + sparc32-initrd-memcpy.dpatch
 + sparc64-sunsab-break-fix.dpatch
++ fs-partitions-check.dpatch