--- multipath-tools-0.4.8.orig/debian/NEWS
+++ multipath-tools-0.4.8/debian/NEWS
@@ -0,0 +1,21 @@
+multipath-tools (0.4.7-2) unstable; urgency=low
+
+  udev, which provides scsi_id, moved the binary to /lib/udev.
+  The old name will stop working in the future.
+  
+  The default config now uses /lib/udev/scsi_id. And you have to
+  update /etc/multipath.conf by hand to reflect the new location.
+
+ -- Bastian Blank <waldi@debian.org>  Wed, 29 Mar 2006 12:08:32 +0200
+
+multipath-tools (0.4.5-1) unstable; urgency=low
+
+  This version removes creation of devices via udev in /dev. All
+  device-mapper devices are created by libdevmapper in /dev/mapper.
+
+  To readd the creation of devices in /dev, add the following line to
+  the udev rules (e.g. /etc/udev/rules.d/multipath.rules):
+  KERNEL=="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c", OPTIONS+="last_rule"
+
+ -- Bastian Blank <waldi@debian.org>  Mon, 19 Sep 2005 15:03:31 +0200
+
--- multipath-tools-0.4.8.orig/debian/README.source
+++ multipath-tools-0.4.8/debian/README.source
@@ -0,0 +1,57 @@
+This package uses quilt to manage all modifications to the upstream
+source.  Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To configure quilt to use debian/patches instead of patches, you want
+either to export QUILT_PATCHES=debian/patches in your environment
+or use this snippet in your ~/.quiltrc:
+
+    for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
+        if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
+                export QUILT_PATCHES=debian/patches
+        fi
+    done
+
+To get the fully patched source after unpacking the source package, cd to
+the root level of the source package and run:
+
+    quilt push -a
+
+The last patch listed in debian/patches/series will become the current
+patch.
+
+To add a new set of changes, first run quilt push -a, and then run:
+
+    quilt new <patch>
+
+where <patch> is a descriptive name for the patch, used as the filename in
+debian/patches.  Then, for every file that will be modified by this patch,
+run:
+
+    quilt add <file>
+
+before editing those files.  You must tell quilt with quilt add what files
+will be part of the patch before making changes or quilt will not work
+properly.  After editing the files, run:
+
+    quilt refresh
+
+to save the results as a patch.
+
+Alternately, if you already have an external patch and you just want to
+add it to the build system, run quilt push -a and then:
+
+    quilt import -P <patch> /path/to/patch
+    quilt push -a
+
+(add -p 0 to quilt import if needed). <patch> as above is the filename to
+use in debian/patches.  The last quilt push -a will apply the patch to
+make sure it works properly.
+
+To remove an existing patch from the list of patches that will be applied,
+run:
+
+    quilt delete <patch>
+
+You may need to run quilt pop -a to unapply patches first before running
+this command.
--- multipath-tools-0.4.8.orig/debian/changelog
+++ multipath-tools-0.4.8/debian/changelog
@@ -0,0 +1,363 @@
+multipath-tools (0.4.8-14) unstable; urgency=low
+
+  * [6dad4a0] kpartx: use uint64_t to account slices start/size based on
+    65d108fbe. Fixes handling of devices >2TB.
+    (Closes: #512601) - thanks to Vincent McIntyre for testing
+  * [1fe965c] fix failure to gather block device information. Cherry-pick
+    88f88d from upstream: With the new sysfs layout the parent device of a
+    block device is 'block', and only the parent of this is the 'real' parent.
+    Fixes problems on kernels >= 2.6.27.
+    (LP: #307032) - thanks to Jens Langner for forwarding this.
+  * [85c6d6e] README.Debian: explain howto best access multipath devices
+    (Closes: #510911) - thanks to Vincent McIntyre
+  * [a2bf65e] FAQ: fix URL to FAQ - thanks to Vincent McIntyre
+  * [e65a06d] README.Debian: doc typo
+  * [a1de95f] add ja debconf translation
+    (Closes: #512857) - thanks to Hideki Yamane
+  * [8400b79] rules: drop redo-patches target handled via external script now
+  * [50eb583] control: fix maintainer name
+  * [fe7e471] drop superflous headers and footers of patches, no functional
+    changes
+
+ -- Guido Günther <agx@sigxcpu.org>  Thu, 29 Jan 2009 10:17:36 +0100
+
+multipath-tools (0.4.8-13) unstable; urgency=low
+
+  [ Guido Günther ]
+  * [5585feb] simplify udev dependency
+  * [4cc8116] add a versioned dependency on dmsetup (Closes: #497686)
+  * [9887760] blacklist cciss devices (Closes: #500991)
+
+ -- Guido Günther <agx@sigxcpu.org>  Fri, 03 Oct 2008 12:42:46 +0200
+
+multipath-tools (0.4.8-12) unstable; urgency=low
+
+  * [2ee3c11] udev as of 0.124 doesn't support 'scsi_id -s' anymore
+  * [736eaa3] ...unfortunately older udev's don't support 'scsi_id -d'
+    properly so add a conflict
+  * [49961fa] update bugnumbers for the "dmsetup export" fun
+  * [82d47a3] bump standards version
+  * [18fb979] add README.source
+
+ -- Guido Guenther <agx@sigxcpu.org>  Thu, 21 Aug 2008 09:28:30 +0200
+
+multipath-tools (0.4.8-11) unstable; urgency=low
+
+  * [3dadace] use the full path to dmsetup so we don't have to worry about
+    $PATH
+  * [33642da] update initramfs during postinst/postrm (Closes: #477839)
+  * [41391c9] Conflict on etch's multipath-tools-initramfs - together with the
+    multipath-tools-initramfs NMU from Bernd Zeimetz this provides a clean
+    upgrade path from etch to lenny for multipath-tools-initramfs users.
+  * [4f8a5d1] Call multipath via udev on block device add/change events This
+    helps slow devices when either /etc/init.d/multipath-tools-boot or the
+    initramfs script are being run although the devices are not ready yet.
+    (Closes: #489850) - many thanks to Janusz Dziemidowicz for his suggestions
+    and testing 
+  * [5cbb079] add swedish debconf translation (Closes: #492107) - thanks to
+    Martin Ågren
+  * [12639e9] redo quilt patches - no code changes
+
+ -- Guido Guenther <agx@sigxcpu.org>  Wed, 30 Jul 2008 17:59:03 -0400
+
+multipath-tools (0.4.8-10) unstable; urgency=low
+
+  * [183da2c] Add russion debconf translation (Closes: #486353) - thanks
+    to Yuri Kozlov
+  * [02b7853] Add pt, de, and fr translations (Closes: #482035, #482845,
+    #482905) - thanks to the Portuguese Translation Team, Helge
+    Kreutzmann and Jean Guillou
+
+ -- Guido Guenther <agx@sigxcpu.org>  Thu, 19 Jun 2008 13:06:09 +0200
+
+multipath-tools (0.4.8-9) unstable; urgency=low
+
+  * [958c4b1] attach multipath.conf to bugreports
+  * [2ac083e] make multipath-tools-boot arch all
+  * [2eb8b51] Warn about outdated /etc/multipath.conf via debconf. The
+    changed location of udev's /sbin/scsi_id already hit two people.
+    Since this renders the system unbootable we should warn about it at
+    priority critical. (Closes: #481447)
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sat, 17 May 2008 15:13:40 +0200
+
+multipath-tools (0.4.8-8) unstable; urgency=low
+
+  * libdevmapper doesn't ship the init script anymore so drop that and depend
+    on checkroot instead so we have a defined boot order (Closes: 470063)
+  * multipath-tools.init: remove superflous stop link in S in the LSB header
+  * add boot breakage warning to multipath-tools boot
+  * depend on libdevmapper-dev (>= 2:1.02.20) instead of (>= 2:1.02.20-1)
+    since this eases backports
+  * bump standards version
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sun, 09 Mar 2008 18:55:38 +0100
+
+multipath-tools (0.4.8-7) unstable; urgency=low
+
+  * add watch file
+  * move multipath-tools-boot startup to S21 to allow module-loading
+    (Closes: #457804)
+
+ -- Guido Guenther <agx@sigxcpu.org>  Tue, 08 Jan 2008 13:49:18 +0100
+
+multipath-tools (0.4.8-6) unstable; urgency=low
+
+  * depend on a libaio that resides in /lib (>= 0.3.106-8) so we can...
+  * ...drop link-libaio-static.diff
+  * fix_wwid_blacklist.diff: pulled from upstream to fix blacklisting by
+    wwid
+  * kpartx-docfix.diff: document -g
+  * kpartx-remove-dead-code.diff: remove unused commandline option
+  * kpartx-fix-extpart-rm.diff: fix partition removal of extended
+    partitions
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sat, 01 Dec 2007 15:41:36 +0100
+
+multipath-tools (0.4.8-5) unstable; urgency=low
+
+  * apply kpartx-fix-udev-dmraid.diff to our shipped udev rules too
+  * fix itemized list in control file (Closes: #441176)
+  * link statically against libaio since it's in /usr/lib and
+    multipath{,d} are in /sbin and we can avoid a libaio udeb for now
+  * build a udeb for d-i support (Closes: #440334)
+
+ -- Guido Guenther <agx@sigxcpu.org>  Fri, 07 Sep 2007 19:47:05 +0200
+
+multipath-tools (0.4.8-4) unstable; urgency=low
+
+  * split out initramfs support into a separate package (Closes: #440206)
+  * copy persistent bindings into initramfs
+  * debian/rules: don't ignore errors on clean (to make lintian happy)
+  * multipath-tools-boot.sh: add Default-Stop pseudo header
+
+ -- Guido Guenther <agx@sigxcpu.org>  Fri, 31 Aug 2007 09:47:35 +0200
+
+multipath-tools (0.4.8-3) unstable; urgency=low
+
+  * add a prerm script to handle updates from broken versions that don't allow
+    for a stopped multipathd in the init script, really (closes: #439126).
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sun, 26 Aug 2007 10:24:49 +0200
+
+multipath-tools (0.4.8-2) unstable; urgency=low
+
+  * initramfs: mpath_prio_tpc has been renamed to mpath_prio_rdac
+  * fetch patches by Hannes Reinecke from dm-devel:
+  	* fix udev rule for dmraid: kpartx-fix-udev-dmraid.diff
+        * fix extended partition calculation in kpartx: kpartx-fix-extpart.diff
+  * fix DEB_BUILD_OTIIONS=nostrip (Closes: #437596)
+
+ -- Guido Guenther <agx@sigxcpu.org>  Mon, 13 Aug 2007 18:32:12 +0200
+
+multipath-tools (0.4.8-1) unstable; urgency=low
+
+  * new upstream release
+  * drop clariion-fix-read-buffer.diff, applied upstream
+  * init script: don't fail the stop target if multipathd
+  * conflict with multipath-tools-initramfs
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sat, 04 Aug 2007 13:08:52 +0200
+
+multipath-tools (0.4.7-9) unstable; urgency=low
+
+  * fix segfault on EMC Clariions
+  * add initramfs hooks to support rootfs on multipath
+  * version the dependency on dmsetup since the one from etch doesn't
+    support -oattr needed by dmsetup_env
+  * use LSB functions in init scripts
+
+ -- Guido Guenther <agx@sigxcpu.org>  Tue, 31 Jul 2007 14:01:00 +0200
+
+multipath-tools (0.4.7-8) unstable; urgency=low
+
+  * since Debian's dmestup doesn't include the "export" patch used by other
+    distros (#434241), work around this by implementing a minimal dmsetup_env
+    that can be used by kpartx.udev (Closes: #376161)
+  * add LSB headers to init scripts
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sat, 28 Jul 2007 17:34:48 +0200
+
+multipath-tools (0.4.7-7) unstable; urgency=low
+
+  * create build dirs (Closes: #425910)
+  * forward to upstream git b413c9dbe554c2d50aba7c6446ec86f850cf8dde
+  * drop libmultipath-cache-sysfs_devices.diff, applied upstream
+
+ -- Guido Guenther <agx@sigxcpu.org>  Fri, 27 Jul 2007 22:25:29 +0200
+
+multipath-tools (0.4.7-6) unstable; urgency=low
+
+  * kpartx.udev: fix path to kpartx_id
+  * install kpartx_id
+  * debian/control: add XS-Vcs-Browser
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sun, 22 Jul 2007 15:38:05 +0200
+
+multipath-tools (0.4.7-5) unstable; urgency=low
+
+  * forward to upstream git 00fe3ac6ff515bec4a2c7385d6e2e4a7ed5dfb36 
+  * new patch: libmultipath-cache-sysfs_devices.diff (Closes: #433949)
+
+ -- Guido Guenther <agx@sigxcpu.org>  Fri, 20 Jul 2007 23:15:27 +0200
+
+multipath-tools (0.4.7-4) unstable; urgency=low
+
+  * move to git
+  * Drop patches applied upstream:
+  	  * fix-segfault-on-disappearing-paths.diff
+          * exclude-quilt.diff
+          * scsi_id.diff
+          * Makefile_cleanups.diff
+  * use dh_installudev
+  * no need to build-depend on libsysfs-dev anymore
+  * build-depend on libaio-dev
+
+ -- Guido Guenther <agx@sigxcpu.org>  Fri, 29 Jun 2007 11:31:28 -0400
+
+multipath-tools (0.4.7-3) experimental; urgency=low
+
+  * forward to upstream git as of 178b93111d54828a89ad280c0aaaea0812343a6a
+    (Closes: #427532, #365363)
+  * adjust scsi_id.patch to apply again
+  * drop udev.patch, not needed
+  * make sure multipath-tools-init runs after udev so the /dev/mapper/
+    entries appear in the correct place
+  * debhelper version 5 (Closes: #425910)
+  * split out kpartx into a separate package (Closes: #422600)
+
+ -- Guido Guenther <agx@sigxcpu.org>  Fri, 08 Jun 2007 11:51:00 +0200
+
+multipath-tools (0.4.7-2) unstable; urgency=low
+
+  [ Bastian Blank ]
+  * Use /lib/udev/scsi_id. (closes: #358985)
+
+  [ Guido Guenther ]
+  * Acknowledge NMU - thanks John! (closes: #382244)
+  * use quilt for the git patch
+  * remove Bastian and Andres from Uploaders on their request
+  * cleanup pp_hds_modular so the package is rebuildable several times
+  * scsi_id.diff, Makefile-cleanups.diff, remove-arch-ifdefs.diff, udev.diff:
+    split out Debian's modifications into separate patches
+  * remove now superflous multipath.sh (closes: #350814)
+  * bump standards version to 3.7.2 (no source changes) 
+
+ -- Guido Guenther <agx@sigxcpu.org>  Wed, 20 Dec 2006 17:40:59 +0100
+
+multipath-tools (0.4.7-1.1) unstable; urgency=medium
+
+  * Added missing dependency on dmsetup.  Closes: #381068.
+  * Fixed PID file handling.  Closes: #294066.
+  * Pulled in numerous fixes from upstream git tree to fix
+    various segfaults, spewing garbage onto the console, etc.
+    Tree is now synced to upstream git as of commit
+    40b575955cc189aa993e6a030b66b5fef6bcf288 on July 19, 2006, 
+    which is the current state of the upstream tree.  Closes: #382214.
+
+ -- John Goerzen <jgoerzen@complete.org>  Wed,  9 Aug 2006 11:52:08 -0500
+
+multipath-tools (0.4.7-1) unstable; urgency=low
+
+  * New upstream version. 
+    - Build against libsysfs2. (closes: #355775)
+  * Acknowledge NMU. (closes: #337081)
+
+ -- Bastian Blank <waldi@debian.org>  Fri, 17 Mar 2006 17:23:03 +0100
+
+multipath-tools (0.4.6-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Bastian Blank <waldi@debian.org>  Thu, 09 Feb 2006 22:12:52 +0100
+
+multipath-tools (0.4.5-3) unstable; urgency=low
+
+  * Fix kpartx compiling errors and dos support.
+
+ -- Bastian Blank <waldi@debian.org>  Fri, 30 Sep 2005 13:01:55 +0200
+
+multipath-tools (0.4.5-2) unstable; urgency=low
+
+  * Move boot init script before udev and load dm-multipath module.
+
+ -- Bastian Blank <waldi@debian.org>  Wed, 28 Sep 2005 19:35:49 +0200
+
+multipath-tools (0.4.5-1) unstable; urgency=low
+
+  * New upstream version.
+  * Move device check logic to udev rules.
+  * Don't longer create devices in /dev by default.
+
+ -- Bastian Blank <waldi@debian.org>  Mon, 19 Sep 2005 16:32:00 +0200
+
+multipath-tools (0.4.2.4-2) unstable; urgency=medium
+
+  * New maintainer.
+  * Rebuild against new libdevmapper.
+
+ -- Bastian Blank <waldi@debian.org>  Fri, 04 Mar 2005 15:16:30 +0100
+
+multipath-tools (0.4.2.4-1) unstable; urgency=low
+
+  * New upstream.
+    NOTE: This is actually upstream's 0.4.2 but 0.4.2.3 came first for some
+    reason.
+  * Use start-stop-daemon to control the multipathd daemon and do it's own
+    PID file handling (which is now commented out of the daemon itself)
+
+ -- Patrick Caulfield <patrick@debian.org>  Fri, 28 Jan 2005 15:15:01 +0000
+
+multipath-tools (0.4.2.3-1) unstable; urgency=low
+
+  * New upstream
+  * Remove initrd files as they break things.
+    Closes: #288150
+  * Fix some duplicate patching.
+
+ -- Patrick Caulfield <patrick@debian.org>  Mon, 17 Jan 2005 11:19:20 +0000
+
+multipath-tools (0.4.1-1) unstable; urgency=low
+
+  * New upstream
+    Closes: #295926, #286789
+  * Include initrd scripts contributed by Guido Guenther
+    Closes: #286791
+
+ -- Patrick Caulfield <patrick@debian.org>  Thu, 13 Jan 2005 09:25:42 +0000
+
+multipath-tools (0.4.0-1) unstable; urgency=low
+
+  * New upstream
+
+ -- Patrick Caulfield <patrick@debian.org>  Fri, 24 Dec 2004 11:54:44 +0000
+
+multipath-tools (0.3.9-1) unstable; urgency=low
+
+  * New upstream
+
+ -- Patrick Caulfield <patrick@debian.org>  Tue,  7 Dec 2004 13:15:15 +0000
+
+multipath-tools (0.3.8-1) unstable; urgency=low
+
+  * New upstream
+  * Fix error in preinst, when upgrading.
+  * Don't clean klibc directory. 
+    Closes: #283043
+
+ -- Patrick Caulfield <patrick@debian.org>  Mon, 29 Nov 2004 08:56:50 +0000
+
+multipath-tools (0.3.7-1) unstable; urgency=low
+
+  * New upstream
+
+ -- Patrick Caulfield <patrick@debian.org>  Sat, 13 Nov 2004 11:14:35 +0000
+
+multipath-tools (0.3.6-1) unstable; urgency=low
+
+  * Initial upload. Based loosely on upstream's work
+    Closes: #277898
+
+ -- Patrick Caulfield <patrick@debian.org>  Wed,  3 Nov 2004 10:16:34 +0000
+
+
--- multipath-tools-0.4.8.orig/debian/compat
+++ multipath-tools-0.4.8/debian/compat
@@ -0,0 +1 @@
+5
--- multipath-tools-0.4.8.orig/debian/control
+++ multipath-tools-0.4.8/debian/control
@@ -0,0 +1,57 @@
+Source: multipath-tools
+Section: admin
+Priority: extra
+Maintainer: Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>
+Uploaders: Guido Günther <agx@sigxcpu.org>
+Build-Depends: debhelper (>= 5.0.45), po-debconf, libdevmapper-dev (>= 2:1.02.20), libreadline5-dev, quilt (>= 0.40), libaio-dev
+XS-Vcs-Git: git://git.debian.org/git/pkg-lvm/multipath-tools.git
+XS-Vcs-Browser: http://git.debian.org/?p=pkg-lvm/multipath-tools.git
+Standards-Version: 3.8.0
+
+Package: multipath-tools
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, udev (>= 0.124), initscripts (>= 2.85-16),
+ kpartx (>= ${binary:Version}), lsb-base (>= 3), libaio1 (>= 0.3.106-8)
+Conflicts: multipath-tools-initramfs (<= 1.0.1)
+Suggests: multipath-tools-boot
+Description: maintain multipath block device access
+ These tools are in charge of maintaining the disk multipath device maps and
+ react to path and map events.
+ .
+ If you install this package you may have to change the way you address block
+ devices. See README.Debian for details.
+
+Package: kpartx
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, udev (>> 0.086), dmsetup (>= 2:1.02.24)
+Replaces: multipath-tools (<< 0.4.7-3)
+Description: create device mappings for partitions
+ Kpartx can be used to set up device mappings for the partitions of any
+ partitioned block device. It is part of the Linux multipath-tools.
+
+Package: multipath-tools-boot
+Architecture: all
+Depends: ${misc:Depends}, initramfs-tools, multipath-tools (>= ${binary:Version})
+Replaces: multipath-tools-initramfs (<< 1.0.1+nmu1)
+Conflicts: multipath-tools-initramfs (<< 1.0.1+nmu1)
+Description: Support booting from multipath devices
+ This package contains the necessary support for booting from a multipath
+ device:
+ .
+  * copy over multipath.conf and persistent bindings if necessary
+  * load the necessary kernel modules
+  * detect multipath block devices
+ .
+ Don't install this package if you're not booting from a multipath device.
+
+Package: multipath-udeb
+XC-Package-Type: udeb
+Architecture: any
+Depends: ${shlibs:Depends}, multipath-modules
+Section: debian-installer
+Description: maintain multipath block device access
+ This is a udeb, or a microdeb, for the debian-installer.
+ .
+ These tools are in charge of maintaining the disk multipath device maps and
+ react to path and map events.
+
--- multipath-tools-0.4.8.orig/debian/copyright
+++ multipath-tools-0.4.8/debian/copyright
@@ -0,0 +1,12 @@
+This is the Debian GNU/Linux prepackaged version of multipath-tools.
+
+Copyright (C) 2003,2004 Christophe Varoqui <christophe.varoqui@free.fr>
+
+multipath-tools is licensed under the GNU GPL version 2.
+libsysfs is licensed under the GNU LGPL version 2.1 or later.
+libdevmapper is licensed under the GNU LGPL version 2.
+
+On Debian systems, the complete text of the GNU General Public License
+and of the GNU Lesser Public License can be found in
+/usr/share/common-licenses/GPL and /usr/share/common-licenses/LGPL .
+
--- multipath-tools-0.4.8.orig/debian/dmsetup_env
+++ multipath-tools-0.4.8/debian/dmsetup_env
@@ -0,0 +1,31 @@
+#!/bin/sh
+#
+# Debian's dmsetup is lacking the export patch, so gather the minimum
+# information here in order to get proper partition mappings via kpartx
+# 
+# See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=434241
+#      http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487881
+#      http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493078
+
+MAJOR=$1
+MINOR=$2
+
+if [ -z "$MAJOR" -o -z "$MINOR" ]; then
+    echo "usage: $0 major minor"
+    exit 1
+fi
+
+DMSETUP="/sbin/dmsetup -c --noheadings info -j$MAJOR  -m$MINOR"
+
+DM_UUID=`$DMSETUP -oUUID`
+if [ -n "$DM_UUID" ]; then 
+    echo DM_UUID=$DM_UUID
+    ATTRS=`$DMSETUP -oattr`
+    case "$ATTRS" in
+        L-*) # this is the only state needed for the kpartx udev rules
+            echo DM_TABLE_STATE=LIVE
+	    echo DM_STATE=ACTIVE
+	    ;;
+    esac
+fi
+echo DM_NAME=`$DMSETUP -oname`
--- multipath-tools-0.4.8.orig/debian/kpartx.install
+++ multipath-tools-0.4.8/debian/kpartx.install
@@ -0,0 +1,4 @@
+/usr/share/man/man8/kpartx.8.gz
+/sbin/kpartx
+/lib/udev/kpartx_id
+/lib/udev/dmsetup_env
--- multipath-tools-0.4.8.orig/debian/kpartx.manpages
+++ multipath-tools-0.4.8/debian/kpartx.manpages
@@ -0,0 +1 @@
+kpartx/kpartx.8
--- multipath-tools-0.4.8.orig/debian/kpartx.postinst
+++ multipath-tools-0.4.8/debian/kpartx.postinst
@@ -0,0 +1,49 @@
+#!/bin/sh
+# postinst script for kpartx
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+RULE=/etc/udev/rules.d/kpartx.rules
+
+case "$1" in
+    configure)
+	if [ -n "$2" ] && dpkg --compare-versions "$2" lt "0.4.7-4"; then
+	    if [ -L $RULE ] && ! readlink -e $RULE; then
+	    	echo -n "Removing dangling $RULE symlink..."
+		rm $RULE
+		echo "done."
+	    fi
+	fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
--- multipath-tools-0.4.8.orig/debian/kpartx.udev
+++ multipath-tools-0.4.8/debian/kpartx.udev
@@ -0,0 +1,40 @@
+#
+# persistent links for device-mapper devices
+# only hardware-backed device-mapper devices (ie multipath, dmraid,
+# and kpartx) have meaningful persistent device names
+#
+
+KERNEL!="dm-*", GOTO="kpartx_end"
+ACTION=="remove", GOTO="kpartx_end"
+
+# This is a temporary hack until Debian's dmsetup properly supports "dmsetup
+# export". For more information see: #434241, #487881, #493078
+IMPORT{program}="/lib/udev/dmsetup_env %M %m"
+
+ENV{DM_TABLE_STATE}!="LIVE", GOTO="kpartx_end"
+
+ENV{DM_UUID}=="?*", IMPORT{program}=="kpartx_id %M %m $env{DM_UUID}"
+
+OPTIONS="link_priority=50"
+
+# Create persistent links for multipath tables
+ENV{DM_UUID}=="mpath-*", \
+	SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}"
+
+# Create persistent links for dmraid tables
+ENV{DM_UUID}=="dmraid-*", \
+        SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}"
+
+# Create persistent links for partitions
+ENV{DM_PART}=="?*", \
+        SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}-part$env{DM_PART}"
+
+# Create dm tables for partitions
+ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="mpath-*", \
+        RUN+="/sbin/kpartx -a -p -part /dev/$kernel"
+ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="dmraid-*", \
+        RUN+="/sbin/kpartx -a -p -part /dev/$kernel"
+
+LABEL="kpartx_end"
+
+
--- multipath-tools-0.4.8.orig/debian/multipath-tools-boot.config
+++ multipath-tools-0.4.8/debian/multipath-tools-boot.config
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+CONF=/etc/multipath.conf
+
+# if the user still references /sbin/scsi_id warn him:
+if [ -e "$CONF" ] && grep -sq '^[[:space:]]*getuid_callout[[:space:]]*\"/sbin/scsi_id[[:space:]]\+' $CONF; then
+    . /usr/share/debconf/confmodule
+    db_input critical multipath-tools-boot/scsi_id || true
+    db_go || true
+fi
+
--- multipath-tools-0.4.8.orig/debian/multipath-tools-boot.postinst
+++ multipath-tools-0.4.8/debian/multipath-tools-boot.postinst
@@ -0,0 +1,34 @@
+#!/bin/sh
+# postinst script for multipath-tools
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+case "$1" in
+    configure)
+	if [ -x /usr/sbin/update-initramfs -a -e /etc/initramfs-tools/initramfs.conf ]; then
+		update-initramfs -u
+	fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
--- multipath-tools-0.4.8.orig/debian/multipath-tools-boot.postrm
+++ multipath-tools-0.4.8/debian/multipath-tools-boot.postrm
@@ -0,0 +1,45 @@
+#!/bin/sh
+# postrm script for multipath-tools-boot
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove)
+	if [ -x /usr/sbin/update-initramfs -a -e /etc/initramfs-tools/initramfs.conf ]; then
+		update-initramfs -u
+	fi
+    ;;
+
+    purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
--- multipath-tools-0.4.8.orig/debian/multipath-tools-boot.templates
+++ multipath-tools-0.4.8/debian/multipath-tools-boot.templates
@@ -0,0 +1,10 @@
+Template: multipath-tools-boot/scsi_id
+Type: note
+_Description: The location of the getuid callout has changed
+ Your /etc/multipath.conf still has a getuid_callout pointing to /sbin/scsi_id
+ but the binary has moved to /lib/udev/scsi_id in udev 0.113-1. Please update
+ your configuration. This is best done by removing the getuid_callout option
+ entirely.
+ .
+ Don't forget to update your initramfs after these changes. Otherwise your
+ system might not boot from multipath.
--- multipath-tools-0.4.8.orig/debian/multipath-tools.README.Debian
+++ multipath-tools-0.4.8/debian/multipath-tools.README.Debian
@@ -0,0 +1,65 @@
+Additional information for users of multipath-tools from Debian.
+
+What are these weird numbers in /dev/mapper?
+============================================
+Modern Fibre-Channel connected storage devices are identified by
+World-Wide-Numbers. If multipath-tools detects one of these devices,
+it uses that as the default identifier in /dev/mapper.
+If you want multipath-tools to use easier-to-read names, set
+  user_friendly_names = yes
+in the 'defaults' section of /etc/multipath.conf.
+
+Where did my FC-connected filesystem go?
+========================================
+If you were previously mounting a device connected to your system by
+Fibre Channel and then installed multipath-tools, you need to change
+the way you mount the device. The device must now be accessed using
+the identifier by which device-mapper knows it.
+
+For example if you have in /dev/mapper a file like this:
+   brw-rw---- 1 root disk 254,  8 2009-01-05 14:35 /dev/mapper/36000393000007d3901000000fef00a2d
+
+then you can mount the filesystem like this:
+  mount /dev/mapper/36000393000007d3901000000fef00a2d /mnt
+or this
+  mount /dev/disk/by-id/scsi-36000393000007d3901000000fef00a2d /mnt
+You should prefer the latter, as this will work whether or not
+multipath-tools is installed.
+
+Note that with multipath-tools installed you cannot use the device's node
+in /dev, e.g.
+  mount /dev/sdc1 /mnt
+  mount: /dev/sdc1 already mounted or /mnt busy
+The device is 'busy' because it is part of a multipath map.
+See the output of 'multipath -l' to confirm this.
+
+Preventing multipath-tools mapping any devices
+==============================================
+You may wish to prevent multipath-tools mapping any of your storage devices.
+To do this replace the contents of /etc/multipath.conf with:
+
+  blacklist {
+         devnode "*"
+  }
+
+Booting from multipathed devices
+================================
+To enable booting from multipathed devices install the multipath-tools-boot
+package. Be sure to update your bootloader configuration (e.g.
+/boot/grub/menu.lst) to point to the multipathed root device afterwards.
+
+By default this will be
+
+  /dev/mapper/<WWID>-part<N>
+
+unless you use an alias in /etc/multipath.conf.
+
+If you set user_friendly_names = yes in /etc/multipath.conf, the path
+to the device will be
+
+  /dev/mapper/mpath<X>-part<N>
+
+If you make changes in multipath.conf, remember to run update-initramfs
+so the updated version of the configuration gets included in the initramfs.
+
+ -- Guido Günther <agx@sigxcpu.org>  Tue, 20 Feb 2008 13:49:18 +0100
--- multipath-tools-0.4.8.orig/debian/multipath-tools.docs
+++ multipath-tools-0.4.8/debian/multipath-tools.docs
@@ -0,0 +1,2 @@
+FAQ
+README
--- multipath-tools-0.4.8.orig/debian/multipath-tools.examples
+++ multipath-tools-0.4.8/debian/multipath-tools.examples
@@ -0,0 +1,2 @@
+multipath.conf.annotated
+multipath.conf.synthetic
--- multipath-tools-0.4.8.orig/debian/multipath-tools.init
+++ multipath-tools-0.4.8/debian/multipath-tools.init
@@ -0,0 +1,57 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          multipath-tools
+# Required-Start:    udev $syslog
+# Required-Stop:     udev $syslog
+# Should-Start:      iscsi
+# Should-Stop:       iscsi
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: multipath daemon
+# Description:
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/sbin/multipathd
+NAME=multipathd
+DESC="multipath daemon"
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+if [ -f /etc/default/multipath-tools ] ; then
+	. /etc/default/multipath-tools
+fi
+
+set -e
+
+case "$1" in
+  start)
+	log_daemon_msg "Starting $DESC" "$NAME"
+	start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+	log_end_msg $?
+	;;
+  stop)
+	log_daemon_msg "Stopping $DESC" "$NAME"
+	start-stop-daemon --oknodo --stop --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON
+	log_end_msg $?
+	;;
+  reload|force-reload)
+	log_daemon_msg "Reloading $DESC" "$NAME"
+	start-stop-daemon --stop --signal 1 --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON
+	log_end_msg $?
+	;;
+  restart|force-reload)
+  	$0 stop
+	sleep 1
+	$0 start
+	;;
+  *)
+	N=/etc/init.d/multipath-tools
+	echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- multipath-tools-0.4.8.orig/debian/multipath-tools.install
+++ multipath-tools-0.4.8/debian/multipath-tools.install
@@ -0,0 +1,6 @@
+/sbin/multi*
+/sbin/mpath_*
+/sbin/devmap_name
+/usr/share/man/man*/multi*gz
+/usr/share/man/man*/mpath*gz
+/usr/share/man/man*/devmap*gz
--- multipath-tools-0.4.8.orig/debian/multipath-tools.multipath-tools-boot.init
+++ multipath-tools-0.4.8/debian/multipath-tools.multipath-tools-boot.init
@@ -0,0 +1,49 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          multipath-tools-boot
+# Required-Start:    checkroot module-init-tools
+# Required-Stop:     checkroot module-init-tools
+# Should-Start:      iscsi
+# Should-Stop:       iscsi
+# Default-Start:     S
+# Default-Stop:
+# Short-Description: early multipath boot script
+# Description:
+### END INIT INFO
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/sbin/multipath
+NAME=multipath-tools-boot
+DESC="Discovering and coalescing multipaths"
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+VERBOSITY=0
+if [ -f /etc/default/multipath-tools ] ; then
+	. /etc/default/multipath-tools
+fi
+
+set -e
+
+case "$1" in
+  start)
+	log_action_begin_msg "$DESC"
+	modprobe dm-multipath 2> /dev/null || true
+	$DAEMON -v $VERBOSITY
+	log_action_end_msg $?
+	;;
+  stop)
+	;;
+  restart|force-reload)
+  	$0 start
+	;;
+  *)
+	N=/etc/init.d/$NAME
+	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- multipath-tools-0.4.8.orig/debian/multipath-tools.postinst
+++ multipath-tools-0.4.8/debian/multipath-tools.postinst
@@ -0,0 +1,49 @@
+#!/bin/sh
+# postinst script for multipath-tools
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+RULE=/etc/udev/rules.d/multipath.rules
+
+case "$1" in
+    configure)
+	if [ -n "$2" ] && dpkg --compare-versions "$2" lt "0.4.7-4"; then
+	    if [ -L $RULE ] && ! readlink -e $RULE; then
+	    	echo -n "Removing dangling $RULE symlink..."
+		rm $RULE
+		echo "done."
+	    fi
+	fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
--- multipath-tools-0.4.8.orig/debian/multipath-tools.preinst
+++ multipath-tools-0.4.8/debian/multipath-tools.preinst
@@ -0,0 +1,32 @@
+#! /bin/sh
+# preinst script for multipath-tools
+
+set -e
+
+case "$1" in
+    install)
+    ;;
+
+    upgrade)
+	if dpkg --compare-versions "$2" lt "0.4.7-3"; then
+	    [ -e /etc/rcS.d/S03multipath-tools-boot ] && rm /etc/rcS.d/S03multipath-tools-boot
+	fi
+	if dpkg --compare-versions "$2" lt "0.4.8-7"; then
+	    [ -e /etc/rcS.d/S04multipath-tools-boot ] && rm /etc/rcS.d/S04multipath-tools-boot
+	fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+
--- multipath-tools-0.4.8.orig/debian/multipath-tools.prerm
+++ multipath-tools-0.4.8/debian/multipath-tools.prerm
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# multipath-tools prerm script
+set -e
+
+FIXED=0.4.8-1
+# fix upgrades from versions << $FIXED where the init script would return an
+# error on stop when the daemon isn't running:
+if [ "$1" = "failed-upgrade" ] && dpkg --compare-versions "$2" lt "$FIXED"; then
+    if [ -x "/etc/init.d/multipath-tools" ]; then
+	echo "Ignoring broken stop target in versions << $FIXED..."
+	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+		invoke-rc.d multipath-tools stop || true
+	else
+		/etc/init.d/multipath-tools stop || true
+	fi
+	exit 0
+    fi
+fi
+
+#DEBHELPER#
+
--- multipath-tools-0.4.8.orig/debian/multipath-udeb.install
+++ multipath-tools-0.4.8/debian/multipath-udeb.install
@@ -0,0 +1,3 @@
+/sbin/multipath
+/sbin/mpath_*
+/sbin/kpartx
--- multipath-tools-0.4.8.orig/debian/multipath.udev
+++ multipath-tools-0.4.8/debian/multipath.udev
@@ -0,0 +1,12 @@
+#
+# udev rules for multipathing.
+# The persistent symlinks are created with the kpartx rules
+#
+
+# socket for uevents
+RUN+="socket:/org/kernel/dm/multipath_event"
+
+# Coalesce multipath devices before multipathd is running (initramfs, early
+# boot)
+ACTION=="add|change", SUBSYSTEM=="block", RUN+="/sbin/multipath -v0 /dev/%k"
+
--- multipath-tools-0.4.8.orig/debian/rules
+++ multipath-tools-0.4.8/debian/rules
@@ -0,0 +1,82 @@
+#!/usr/bin/make -f
+
+include /usr/share/quilt/quilt.make
+
+INITRAMFS=$(CURDIR)/debian/multipath-tools-boot/usr/share/initramfs-tools/
+
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+        INSTALL_PROGRAM = install -s
+else
+        INSTALL_PROGRAM = install
+endif
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp: patch
+	dh_testdir
+
+	$(MAKE)
+
+	touch $@
+
+clean-tree:
+	$(MAKE) clean
+
+clean: clean-tree unpatch
+	dh_testdir
+	rm -f build-stamp
+	dh_clean
+	debconf-updatepo
+
+install:
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	mkdir -p $(CURDIR)/debian/tmp/sbin
+	$(MAKE) install INSTALL_PROGRAM=$(INSTALL_PROGRAM) DESTDIR=$(CURDIR)/debian/tmp
+	install -m 755 debian/dmsetup_env $(CURDIR)/debian/tmp/lib/udev/
+	dh_install -pmultipath-tools --sourcedir=$(CURDIR)/debian/tmp
+	dh_install -pkpartx --sourcedir=$(CURDIR)/debian/tmp
+	dh_install -pmultipath-udeb --sourcedir=$(CURDIR)/debian/tmp
+	# initramfs stuff:
+	install -D -m 755 debian/initramfs/hooks $(INITRAMFS)/hooks/multipath
+	install -D -m 755 debian/initramfs/local-top \
+		$(INITRAMFS)/scripts/local-top/multipath
+	# reportbug:
+	for pkg in "multipath-tools" "multipath-tools-boot"; do \
+	    install -D -m 755 debian/reportbug/script debian/$${pkg}/usr/share/bug/$${pkg}/script; \
+	done
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+	dh_installinit -pmultipath-tools
+	dh_installinit -pmultipath-tools --name=multipath-tools-boot --no-start -- start 21 S .
+	dh_installudev -pkpartx
+	dh_installudev -pmultipath-tools --name=multipath
+	dh_installdebconf -pmultipath-tools-boot
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary:	binary-indep binary-arch
+.PHONY: binary binary-arch binary-indep unpack configure build clean 
--- multipath-tools-0.4.8.orig/debian/watch
+++ multipath-tools-0.4.8/debian/watch
@@ -0,0 +1,3 @@
+# format version number, currently 3; this line is compulsory!
+version=3
+http://christophe.varoqui.free.fr/multipath-tools/multipath-tools-([\d\.]*)\.tar\.bz2
--- multipath-tools-0.4.8.orig/debian/patches/0001-get-rid-of-arch-specific-ifdef-spaghettis.patch
+++ multipath-tools-0.4.8/debian/patches/0001-get-rid-of-arch-specific-ifdef-spaghettis.patch
@@ -0,0 +1,45 @@
+From: Bastian Blank <waldi@debian.org>
+Date: Tue, 24 Jun 2008 16:38:37 +0200
+Subject: [PATCH] get rid of arch specific ifdef spaghettis
+
+---
+ kpartx/lopart.c |   19 ++-----------------
+ 1 files changed, 2 insertions(+), 17 deletions(-)
+
+diff --git a/kpartx/lopart.c b/kpartx/lopart.c
+index b18d6fa..6d02a18 100644
+--- a/kpartx/lopart.c
++++ b/kpartx/lopart.c
+@@ -26,29 +26,14 @@
+ #include <sys/stat.h>
+ #include <sys/mman.h>
+ #include <sysmacros.h>
+-
+-#if defined(__hppa__) || defined(__powerpc64__) || defined (__alpha__) \
+- || defined (__x86_64__)
+-typedef unsigned long __kernel_old_dev_t;
+-#elif defined(__powerpc__) || defined(__ia64__)
+-typedef unsigned int __kernel_old_dev_t;
+-#else
+-typedef unsigned short __kernel_old_dev_t;
+-#endif
+-
+-#define dev_t __kernel_old_dev_t
++#include <stdint.h>
+ 
+ #include <linux/loop.h>
+ 
+ #include "lopart.h"
+ #include "xstrncpy.h"
+ 
+-#if !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) \
+-        && !defined (__s390x__)
+-#define int2ptr(x)	((void *) ((int) x))
+-#else
+-#define int2ptr(x)	((void *) ((long) x))
+-#endif
++#define int2ptr(x)	((void *) ((uintptr_t) x))
+ 
+ static char *
+ xstrdup (const char *s)
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/0002--libmultipath-filter_wwid-is-called-with-the-wron.patch
+++ multipath-tools-0.4.8/debian/patches/0002--libmultipath-filter_wwid-is-called-with-the-wron.patch
@@ -0,0 +1,26 @@
+From: Stefan Bader <shbader@de.ibm.com>
+Date: Tue, 24 Jun 2008 16:38:37 +0200
+Subject: [PATCH] [libmultipath] filter_wwid() is called with the wrong lists from filter_path()
+
+When filter_path() calls filter_wwid() it passes the devnode lists instead
+of the wwid lists.
+
+Signed-off-by: Christophe Varoqui <christophe.varoqui@free.fr>
+---
+ libmultipath/blacklist.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
+index 0c277cb..9a058f7 100644
+--- a/libmultipath/blacklist.c
++++ b/libmultipath/blacklist.c
+@@ -299,7 +299,7 @@ _filter_path (struct config * conf, struct path * pp)
+ 	r = _filter_devnode(conf->blist_devnode, conf->elist_devnode,pp->dev);
+ 	if (r)
+ 		return r;
+-	r = _filter_wwid(conf->blist_wwid, conf->elist_devnode, pp->wwid);
++	r = _filter_wwid(conf->blist_wwid, conf->elist_wwid, pp->wwid);
+ 	if (r)
+ 		return r;
+ 	r = _filter_device(conf->blist_device, conf->elist_device,
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/0003--kpartx-Fix-udev-rules-for-dmraid.patch
+++ multipath-tools-0.4.8/debian/patches/0003--kpartx-Fix-udev-rules-for-dmraid.patch
@@ -0,0 +1,34 @@
+From: Hannes Reinecke <hare@suse.de>
+Date: Tue, 24 Jun 2008 16:38:37 +0200
+Subject: [PATCH] [kpartx] Fix udev rules for dmraid
+
+The kpartx_id program is located under /lib/udev, so we don't need to
+call it with the full pathname.
+And we should also create persistent links for dmraid tables.
+---
+ kpartx/kpartx.rules |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules
+index f32c718..5a62d57 100644
+--- a/kpartx/kpartx.rules
++++ b/kpartx/kpartx.rules
+@@ -9,7 +9,7 @@ ACTION=="remove", GOTO="kpartx_end"
+ 
+ ENV{DM_TABLE_STATE}!="LIVE", GOTO="kpartx_end"
+ 
+-ENV{DM_UUID}=="?*", IMPORT{program}=="/lib/udev/kpartx_id %M %m $env{DM_UUID}"
++ENV{DM_UUID}=="?*", IMPORT{program}=="kpartx_id %M %m $env{DM_UUID}"
+ 
+ OPTIONS="link_priority=50"
+ 
+@@ -18,7 +18,7 @@ ENV{DM_UUID}=="mpath-*", \
+ 	SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}"
+ 
+ # Create persistent links for dmraid tables
+-ENV{DM_UUID}=="mpath-*", \
++ENV{DM_UUID}=="dmraid-*", \
+         SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}"
+ 
+ # Create persistent links for partitions
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/0004--kpartx-fix-extended-partition-handling.patch
+++ multipath-tools-0.4.8/debian/patches/0004--kpartx-fix-extended-partition-handling.patch
@@ -0,0 +1,95 @@
+From: Hannes Reinecke <hare@suse.de>
+Date: Tue, 24 Jun 2008 16:38:38 +0200
+Subject: [PATCH] [kpartx] fix extended partition handling
+
+When creating the device-mapper table for an extended partition we
+should calculate the size relative to the containing partition, not
+to the entire device.
+
+Signed-off-by: Hannes Reinecke <hare@suse.de>
+---
+ kpartx/kpartx.c |   23 ++++++++++++++---------
+ 1 files changed, 14 insertions(+), 9 deletions(-)
+
+diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
+index dbe2ee2..c1fe005 100644
+--- a/kpartx/kpartx.c
++++ b/kpartx/kpartx.c
+@@ -265,7 +265,7 @@ main(int argc, char **argv){
+ 	}
+ 
+ 	if (dm_prereq(DM_TARGET, 0, 0, 0) && (what == ADD || what == DELETE)) {
+-		fprintf(stderr, "device mapper prerequisites not met\n"); 
++		fprintf(stderr, "device mapper prerequisites not met\n");
+ 		exit(1);
+ 	}
+ 
+@@ -387,10 +387,10 @@ main(int argc, char **argv){
+ 					slices[j].minor = m++;
+ 
+ 					start = slices[j].start - slices[k].start;
+-					printf("%s%s%d : 0 %lu /dev/dm-%d %lu\n",
++					printf("%s%s%d : 0 %lu %s%s%d %lu\n",
+ 					       mapname, delim, j+1,
+ 					       (unsigned long) slices[j].size,
+-					       slices[k].minor, start);
++					       mapname, delim, k, start);
+ 					c--;
+ 				}
+ 				/* Terminate loop if nothing more to resolve */
+@@ -431,7 +431,7 @@ main(int argc, char **argv){
+ 			break;
+ 
+ 		case ADD:
+-			for (j=0, c = 0; j<n; j++) {
++			for (j = 0, c = 0; j < n; j++) {
+ 				if (slices[j].size == 0)
+ 					continue;
+ 
+@@ -477,6 +477,7 @@ main(int argc, char **argv){
+ 			d = c;
+ 			while (c) {
+ 				for (j = 0; j < n; j++) {
++					unsigned long start;
+ 					int k = slices[j].container - 1;
+ 
+ 					if (slices[j].size == 0)
+@@ -487,7 +488,7 @@ main(int argc, char **argv){
+ 						continue;
+ 
+ 					/* Skip all simple slices */
+-					if (k < 0)
++					if (slices[j].container == 0)
+ 						continue;
+ 
+ 					/* Check container slice */
+@@ -502,10 +503,11 @@ main(int argc, char **argv){
+ 					}
+ 					strip_slash(partname);
+ 
++					start = slices[j].start - slices[k].start;
+ 					if (safe_sprintf(params, "%d:%d %lu",
+ 							 slices[k].major,
+ 							 slices[k].minor,
+-							 (unsigned long)slices[j].start)) {
++							 start)) {
+ 						fprintf(stderr, "params too small\n");
+ 						exit(1);
+ 					}
+@@ -524,9 +526,12 @@ main(int argc, char **argv){
+ 						&slices[j].minor);
+ 
+ 					if (verbose)
+-						printf("add map %s : 0 %lu %s %s\n",
+-						       partname, slices[j].size,
+-						       DM_TARGET, params);
++						printf("add map %s (%d:%d): 0 %lu %s\n",
++						       partname,
++						       slices[j].major,
++						       slices[j].minor,
++						       slices[j].size,
++						       params);
+ 					c--;
+ 				}
+ 				/* Terminate loop */
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/0005--kpartx-remove-partitions-in-reverse-order.patch
+++ multipath-tools-0.4.8/debian/patches/0005--kpartx-remove-partitions-in-reverse-order.patch
@@ -0,0 +1,27 @@
+From: =?utf-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
+Date: Tue, 24 Jun 2008 16:38:38 +0200
+Subject: [PATCH] [kpartx] remove partitions in reverse order
+
+otherwise we try to remove the extended partition of MSDOS labels
+(/dev/mapper/mpathX-part[1-4]) before the logical partition
+/dev/mapper/mpathX-partY (Y>5) which fails.
+
+Signed-Off-By: Guido Guenther <agx@sigxcpu.org>
+---
+ kpartx/kpartx.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
+index c1fe005..6771e41 100644
+--- a/kpartx/kpartx.c
++++ b/kpartx/kpartx.c
+@@ -401,7 +401,7 @@ main(int argc, char **argv){
+ 			break;
+ 
+ 		case DELETE:
+-			for (j = 0; j < n; j++) {
++			for (j = n-1; j >= 0; j--) {
+ 				if (safe_sprintf(partname, "%s%s%d",
+ 					     mapname, delim, j+1)) {
+ 					fprintf(stderr, "partname too small\n");
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/0006--kpartx-documentation-fixes.patch
+++ multipath-tools-0.4.8/debian/patches/0006--kpartx-documentation-fixes.patch
@@ -0,0 +1,36 @@
+From: =?utf-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
+Date: Tue, 24 Jun 2008 16:38:38 +0200
+Subject: [PATCH] [kpartx] documentation fixes
+
+---
+ kpartx/kpartx.8 |    3 +++
+ kpartx/kpartx.c |    1 +
+ 2 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/kpartx/kpartx.8 b/kpartx/kpartx.8
+index 87b07ce..c61f312 100644
+--- a/kpartx/kpartx.8
++++ b/kpartx/kpartx.8
+@@ -26,6 +26,9 @@ List partition mappings that would be added -a
+ .B \-p
+ set device name-partition number delimiter
+ .TP
++.B \-g
++force GUID partition table (GPT)
++.TP
+ .B \-v
+ Operate verbosely
+ .SH "SEE ALSO"
+diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
+index 6771e41..e3550bb 100644
+--- a/kpartx/kpartx.c
++++ b/kpartx/kpartx.c
+@@ -94,6 +94,7 @@ usage(void) {
+ 	printf("\t-d del partition devmappings\n");
+ 	printf("\t-l list partitions devmappings that would be added by -a\n");
+ 	printf("\t-p set device name-partition number delimiter\n");
++	printf("\t-g force GUID partition table (GPT)\n");
+ 	printf("\t-v verbose\n");
+ 	return 1;
+ }
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/0007--kpartx-remove-dead-code.patch
+++ multipath-tools-0.4.8/debian/patches/0007--kpartx-remove-dead-code.patch
@@ -0,0 +1,64 @@
+From: =?utf-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
+Date: Tue, 24 Jun 2008 16:38:39 +0200
+Subject: [PATCH] [kpartx] remove dead code
+
+---
+ kpartx/kpartx.c |   16 ++--------------
+ 1 files changed, 2 insertions(+), 14 deletions(-)
+
+diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
+index e3550bb..f859bd3 100644
+--- a/kpartx/kpartx.c
++++ b/kpartx/kpartx.c
+@@ -82,7 +82,7 @@ initpts(void)
+ 	addpts("sun", read_sun_pt);
+ }
+ 
+-static char short_opts[] = "ladgvnp:t:";
++static char short_opts[] = "ladgvp:t:";
+ 
+ /* Used in gpt.c */
+ int force_gpt=0;
+@@ -188,8 +188,7 @@ main(int argc, char **argv){
+ 	struct slice all;
+ 	struct pt *ptp;
+ 	enum action what = LIST;
+-	char *p, *type, *diskdevice, *device, *progname;
+-	int lower, upper;
++	char *type, *diskdevice, *device, *progname;
+ 	int verbose = 0;
+ 	char partname[PARTNAME_SIZE], params[PARTNAME_SIZE + 16];
+ 	char * loopdev = NULL;
+@@ -203,7 +202,6 @@ main(int argc, char **argv){
+ 	initpts();
+ 	init_crc32();
+ 
+-	lower = upper = 0;
+ 	type = device = diskdevice = NULL;
+ 	memset(&all, 0, sizeof(all));
+ 	memset(&partname, 0, sizeof(partname));
+@@ -240,14 +238,6 @@ main(int argc, char **argv){
+ 		case 'v':
+ 			verbose = 1;
+ 			break;
+-		case 'n':
+-			p = optarg;
+-			lower = atoi(p);
+-			if ((p[1] == '-') && p[2])
+-				upper = atoi(p+2);
+-			else
+-				upper = lower;
+-			break;
+ 		case 'p':
+ 			delim = optarg;
+ 			break;
+@@ -332,8 +322,6 @@ main(int argc, char **argv){
+ 		perror(device);
+ 		exit(1);
+ 	}
+-	if (!lower)
+-		lower = 1;
+ 
+ 	/* add/remove partitions to the kernel devmapper tables */
+ 	for (i = 0; i < ptct; i++) {
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/0008-udev-as-of-0.124-doesn-t-support-scsi_id-s-anymor.patch
+++ multipath-tools-0.4.8/debian/patches/0008-udev-as-of-0.124-doesn-t-support-scsi_id-s-anymor.patch
@@ -0,0 +1,102 @@
+From: Guido Guenther <agx@sigxcpu.org>
+Date: Fri, 15 Aug 2008 15:38:00 +0200
+Subject: [PATCH] udev as of 0.124 doesn't support 'scsi_id -s' anymore
+
+---
+ libmultipath/defaults.h    |    2 +-
+ libmultipath/hwtable.c     |    4 ++--
+ multipath.conf.annotated   |    4 ++--
+ multipath.conf.synthetic   |    4 ++--
+ multipath/multipath.conf.5 |    2 +-
+ 5 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/libmultipath/defaults.h b/libmultipath/defaults.h
+index df7d971..3047ae5 100644
+--- a/libmultipath/defaults.h
++++ b/libmultipath/defaults.h
+@@ -1,4 +1,4 @@
+-#define DEFAULT_GETUID		"/lib/udev/scsi_id -g -u -s /block/%n"
++#define DEFAULT_GETUID		"/lib/udev/scsi_id -g -u -d /dev/%n"
+ #define DEFAULT_UDEVDIR		"/dev"
+ #define DEFAULT_SELECTOR	"round-robin 0"
+ #define DEFAULT_FEATURES	"0"
+diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
+index ef761d7..e8fb5f9 100644
+--- a/libmultipath/hwtable.c
++++ b/libmultipath/hwtable.c
+@@ -157,7 +157,7 @@ static struct hwentry default_hw[] = {
+ 		/* HP Smart Array */
+ 		.vendor        = "HP",
+ 		.product       = "LOGICAL VOLUME.*",
+-		.getuid        = "/lib/udev/scsi_id -n -g -u -s /block/%n",
++		.getuid        = "/lib/udev/scsi_id -n -g -u -d /dev/%n",
+ 		.getprio       = NULL,
+ 		.features      = DEFAULT_FEATURES,
+ 		.hwhandler     = DEFAULT_HWHANDLER,
+@@ -199,7 +199,7 @@ static struct hwentry default_hw[] = {
+ 	{
+ 		.vendor        = "EMC",
+ 		.product       = "SYMMETRIX",
+-		.getuid        = "/lib/udev/scsi_id -g -u -ppre-spc3-83 -s /block/%n",
++		.getuid        = "/lib/udev/scsi_id -g -u -ppre-spc3-83 -d /dev/%n",
+ 		.getprio       = NULL,
+ 		.features      = DEFAULT_FEATURES,
+ 		.hwhandler     = DEFAULT_HWHANDLER,
+diff --git a/multipath.conf.annotated b/multipath.conf.annotated
+index e6cfe9a..76c2204 100644
+--- a/multipath.conf.annotated
++++ b/multipath.conf.annotated
+@@ -49,7 +49,7 @@
+ #	#           path identifier. Absolute path required
+ #	# default : /lib/udev/scsi_id -g -u -s
+ #	#
+-#	getuid_callout	"/lib/udev/scsi_id -g -u -s /block/%n"
++#	getuid_callout	"/lib/udev/scsi_id -g -u -d /dev/%n"
+ #
+ #	#
+ #	# name    : prio_callout
+@@ -293,7 +293,7 @@
+ #		#           path identifier. Absolute path required
+ #		# default : /lib/udev/scsi_id -g -u -s
+ #		#
+-#		getuid_callout          "/lib/udev/scsi_id -g -u -s /block/%n"
++#		getuid_callout          "/lib/udev/scsi_id -g -u -d /dev/%n"
+ #
+ #		#
+ #		# name    : prio_callout
+diff --git a/multipath.conf.synthetic b/multipath.conf.synthetic
+index 633d625..41ebdec 100644
+--- a/multipath.conf.synthetic
++++ b/multipath.conf.synthetic
+@@ -7,7 +7,7 @@
+ #	polling_interval 	10
+ #	selector		"round-robin 0"
+ #	path_grouping_policy	multibus
+-#	getuid_callout		"/lib/udev/scsi_id -g -u -s /block/%n"
++#	getuid_callout		"/lib/udev/scsi_id -g -u -d /dev/%n"
+ #	prio_callout		/bin/true
+ #	path_checker		directio
+ #	rr_min_io		100
+@@ -52,7 +52,7 @@
+ #		vendor			"COMPAQ  "
+ #		product			"HSV110 (C)COMPAQ"
+ #		path_grouping_policy	multibus
+-#		getuid_callout          "/lib/udev/scsi_id -g -u -s /block/%n"
++#		getuid_callout          "/lib/udev/scsi_id -g -u -d /dev/%n"
+ #		path_checker		directio
+ #		path_selector		"round-robin 0"
+ #		hardware_handler	"0"
+diff --git a/multipath/multipath.conf.5 b/multipath/multipath.conf.5
+index c8ab6b0..233a154 100644
+--- a/multipath/multipath.conf.5
++++ b/multipath/multipath.conf.5
+@@ -109,7 +109,7 @@ Default value is \fImultibus\fR.
+ The default program and args to callout to obtain a unique path
+ identifier. Should be specified with an absolute path. Default value
+ is
+-.I /lib/udev/scsi_id -g -u -s
++.I /lib/udev/scsi_id -g -u -d /dev/%n
+ .TP
+ .B prio_callout
+ The default program and args to callout to obtain a path priority
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/0009-blacklist-cciss-devices.patch
+++ multipath-tools-0.4.8/debian/patches/0009-blacklist-cciss-devices.patch
@@ -0,0 +1,29 @@
+From: =?utf-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
+Date: Fri, 3 Oct 2008 12:39:48 +0200
+Subject: [PATCH] blacklist cciss devices
+
+cciss support isn't complete in 0.4.8 and the half functioning causes
+problems in d-i among other things.
+Closes: #500991
+---
+ libmultipath/blacklist.c |    6 ++++++
+ 1 files changed, 6 insertions(+), 0 deletions(-)
+
+diff --git a/libmultipath/blacklist.c b/libmultipath/blacklist.c
+index 9a058f7..fbec749 100644
+--- a/libmultipath/blacklist.c
++++ b/libmultipath/blacklist.c
+@@ -121,6 +121,12 @@ setup_default_blist (struct config * conf)
+ 	if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
+ 		return 1;
+ 
++	str = STRDUP("^cciss!c[0-9]d[0-9]*");
++	if (!str)
++		return 1;
++	if (store_ble(conf->blist_devnode, str, ORIGIN_DEFAULT))
++		return 1;
++
+ 	vector_foreach_slot (conf->hwtable, hwe, i) {
+ 		if (hwe->bl_product) {
+ 			if (alloc_ble_device(conf->blist_device))
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/0010-fix-URL-to-FAQ.patch
+++ multipath-tools-0.4.8/debian/patches/0010-fix-URL-to-FAQ.patch
@@ -0,0 +1,20 @@
+From: Vincent McIntyre <Vincent.McIntyre@csiro.au>
+Date: Fri, 9 Jan 2009 18:18:46 +0100
+Subject: [PATCH] fix URL to FAQ
+
+---
+ FAQ |    3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/FAQ b/FAQ
+index 35dc2f9..ad717b4 100644
+--- a/FAQ
++++ b/FAQ
+@@ -1,4 +1,5 @@
+-More at http://christophe.varoqui.free.fr/wiki/wakka.php?wiki=FAQ
++More at http://christophe.varoqui.free.fr/faq.html
++See also http://christophe.varoqui.free.fr/usage.html
+ 
+ 1. How to set up System-on-multipath ?
+ ======================================
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/0011--kpartx-use-uint64_t-to-account-slices-start-size.patch
+++ multipath-tools-0.4.8/debian/patches/0011--kpartx-use-uint64_t-to-account-slices-start-size.patch
@@ -0,0 +1,270 @@
+From: =?utf-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
+Date: Fri, 23 Jan 2009 17:19:59 +0100
+Subject: [PATCH] [kpartx] use uint64_t to account slices start/size
+
+And thus support >2TB partitioned devices.
+Redhat patch, pushed by Gerald Nowitzky.
+---
+ kpartx/devmapper.c |    4 +++-
+ kpartx/devmapper.h |    4 ++--
+ kpartx/gpt.c       |   35 ++++++++++++++++++++++-------------
+ kpartx/kpartx.c    |   25 +++++++++++++------------
+ kpartx/kpartx.h    |    6 ++++--
+ 5 files changed, 44 insertions(+), 30 deletions(-)
+
+diff --git a/kpartx/devmapper.c b/kpartx/devmapper.c
+index 6e3e198..91070e5 100644
+--- a/kpartx/devmapper.c
++++ b/kpartx/devmapper.c
+@@ -4,10 +4,12 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdint.h>
+ #include <libdevmapper.h>
+ #include <ctype.h>
+ #include <linux/kdev_t.h>
+ #include <errno.h>
++#include "devmapper.h"
+ 
+ #define UUID_PREFIX "part%d-"
+ #define MAX_PREFIX_LEN 8
+@@ -72,7 +74,7 @@ dm_simplecmd (int task, const char *name) {
+ 
+ extern int
+ dm_addmap (int task, const char *name, const char *target,
+-	   const char *params, unsigned long size, const char *uuid, int part) {
++	   const char *params, uint64_t size, const char *uuid, int part) {
+ 	int r = 0;
+ 	struct dm_task *dmt;
+ 	char *prefixed_uuid;
+diff --git a/kpartx/devmapper.h b/kpartx/devmapper.h
+index ccdbead..2bd27d2 100644
+--- a/kpartx/devmapper.h
++++ b/kpartx/devmapper.h
+@@ -1,7 +1,7 @@
+ int dm_prereq (char *, int, int, int);
+ int dm_simplecmd (int, const char *);
+-int dm_addmap (int, const char *, const char *, const char *, unsigned long,
+-	       char *, int);
++int dm_addmap (int, const char *, const char *, const char *, uint64_t,
++	       const char *, int);
+ int dm_map_present (char *);
+ char * dm_mapname(int major, int minor);
+ dev_t dm_get_first_dep(char *devname);
+diff --git a/kpartx/gpt.c b/kpartx/gpt.c
+index dc846ca..047a829 100644
+--- a/kpartx/gpt.c
++++ b/kpartx/gpt.c
+@@ -36,6 +36,7 @@
+ #include <errno.h>
+ #include <endian.h>
+ #include <byteswap.h>
++#include <linux/fs.h>
+ #include "crc32.h"
+ 
+ #if BYTE_ORDER == LITTLE_ENDIAN
+@@ -50,10 +51,18 @@
+ #  define __cpu_to_le32(x) bswap_32(x)
+ #endif
+ 
++#ifndef BLKGETLASTSECT
+ #define BLKGETLASTSECT  _IO(0x12,108)   /* get last sector of block device */
++#endif
++#ifndef BLKGETSIZE
+ #define BLKGETSIZE _IO(0x12,96)	        /* return device size */
++#endif
++#ifndef BLKSSZGET
+ #define BLKSSZGET  _IO(0x12,104)	/* get block device sector size */
++#endif
++#ifndef BLKGETSIZE64
+ #define BLKGETSIZE64 _IOR(0x12,114,sizeof(uint64_t))	/* return device size in bytes (u64 *arg) */
++#endif
+ 
+ struct blkdev_ioctl_param {
+         unsigned int block;
+@@ -143,20 +152,14 @@ get_sector_size(int filedes)
+ static uint64_t
+ _get_num_sectors(int filedes)
+ {
+-	unsigned long sectors=0;
+ 	int rc;
+-#if 0
+-        uint64_t bytes=0;
++	uint64_t bytes=0;
+ 
+- 	rc = ioctl(filedes, BLKGETSIZE64, &bytes);
++	rc = ioctl(filedes, BLKGETSIZE64, &bytes);
+ 	if (!rc)
+ 		return bytes / get_sector_size(filedes);
+-#endif
+-        rc = ioctl(filedes, BLKGETSIZE, &sectors);
+-        if (rc)
+-                return 0;
+-        
+-	return sectors;
++
++	return 0;
+ }
+ 
+ /************************************************************
+@@ -193,7 +196,7 @@ last_lba(int filedes)
+ 		sectors = 1;
+ 	}
+ 
+-	return sectors - 1;
++	return sectors ? sectors - 1 : 0;
+ }
+ 
+ 
+@@ -220,17 +223,22 @@ read_lba(int fd, uint64_t lba, void *buffer, size_t bytes)
+ {
+ 	int sector_size = get_sector_size(fd);
+ 	off_t offset = lba * sector_size;
++	uint64_t lastlba;
+         ssize_t bytesread;
+ 
+ 	lseek(fd, offset, SEEK_SET);
+ 	bytesread = read(fd, buffer, bytes);
+ 
++	lastlba = last_lba(fd);
++	if (!lastlba)
++		return bytesread;
++
+         /* Kludge.  This is necessary to read/write the last
+            block of an odd-sized disk, until Linux 2.5.x kernel fixes.
+            This is only used by gpt.c, and only to read
+            one sector, so we don't have to be fancy.
+         */
+-        if (!bytesread && !(last_lba(fd) & 1) && lba == last_lba(fd)) {
++        if (!bytesread && !(lastlba & 1) && lba == lastlba) {
+                 bytesread = read_lastoddsector(fd, lba, buffer, bytes);
+         }
+         return bytesread;
+@@ -505,7 +513,8 @@ find_valid_gpt(int fd, gpt_header ** gpt, gpt_entry ** ptes)
+ 	if (!gpt || !ptes)
+ 		return 0;
+ 
+-	lastlba = last_lba(fd);
++	if (!(lastlba = last_lba(fd)))
++		return 0;
+ 	good_pgpt = is_gpt_valid(fd, GPT_PRIMARY_PARTITION_TABLE_LBA,
+ 				 &pgpt, &pptes);
+         if (good_pgpt) {
+diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
+index f859bd3..54a628e 100644
+--- a/kpartx/kpartx.c
++++ b/kpartx/kpartx.c
+@@ -25,6 +25,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <stdint.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <ctype.h>
+@@ -355,16 +356,16 @@ main(int argc, char **argv){
+ 
+ 				slices[j].minor = m++;
+ 
+-				printf("%s%s%d : 0 %lu %s %lu\n",
++				printf("%s%s%d : 0 %" PRIu64 " %s %" PRIu64"\n",
+ 				       mapname, delim, j+1,
+-				       (unsigned long) slices[j].size, device,
+-				       (unsigned long) slices[j].start);
++				       slices[j].size, device,
++				       slices[j].start);
+ 			}
+ 			/* Loop to resolve contained slices */
+ 			d = c;
+ 			while (c) {
+ 				for (j = 0; j < n; j++) {
+-					unsigned long start;
++					uint64_t start;
+ 					int k = slices[j].container - 1;
+ 
+ 					if (slices[j].size == 0)
+@@ -376,9 +377,9 @@ main(int argc, char **argv){
+ 					slices[j].minor = m++;
+ 
+ 					start = slices[j].start - slices[k].start;
+-					printf("%s%s%d : 0 %lu %s%s%d %lu\n",
++					printf("%s%s%d : 0 %" PRIu64 " %s%s%d %" PRIu64 "\n",
+ 					       mapname, delim, j+1,
+-					       (unsigned long) slices[j].size,
++					       slices[j].size,
+ 					       mapname, delim, k, start);
+ 					c--;
+ 				}
+@@ -437,8 +438,8 @@ main(int argc, char **argv){
+ 				}
+ 				strip_slash(partname);
+ 
+-				if (safe_sprintf(params, "%s %lu", device,
+-					     (unsigned long)slices[j].start)) {
++				if (safe_sprintf(params, "%s %" PRIu64 ,
++						 device, slices[j].start)) {
+ 					fprintf(stderr, "params too small\n");
+ 					exit(1);
+ 				}
+@@ -457,7 +458,7 @@ main(int argc, char **argv){
+ 					&slices[j].minor);
+ 
+ 				if (verbose)
+-					printf("add map %s (%d:%d): 0 %lu %s %s\n",
++					printf("add map %s (%d:%d): 0 %" PRIu64 " %s %s\n",
+ 					       partname, slices[j].major,
+ 					       slices[j].minor, slices[j].size,
+ 					       DM_TARGET, params);
+@@ -466,7 +467,7 @@ main(int argc, char **argv){
+ 			d = c;
+ 			while (c) {
+ 				for (j = 0; j < n; j++) {
+-					unsigned long start;
++					uint64_t start;
+ 					int k = slices[j].container - 1;
+ 
+ 					if (slices[j].size == 0)
+@@ -493,7 +494,7 @@ main(int argc, char **argv){
+ 					strip_slash(partname);
+ 
+ 					start = slices[j].start - slices[k].start;
+-					if (safe_sprintf(params, "%d:%d %lu",
++					if (safe_sprintf(params, "%d:%d %" PRIu64,
+ 							 slices[k].major,
+ 							 slices[k].minor,
+ 							 start)) {
+@@ -515,7 +516,7 @@ main(int argc, char **argv){
+ 						&slices[j].minor);
+ 
+ 					if (verbose)
+-						printf("add map %s (%d:%d): 0 %lu %s\n",
++						printf("add map %s (%d:%d): 0 %" PRIu64 " %s\n",
+ 						       partname,
+ 						       slices[j].major,
+ 						       slices[j].minor,
+diff --git a/kpartx/kpartx.h b/kpartx/kpartx.h
+index 9b3aeca..43ae3f8 100644
+--- a/kpartx/kpartx.h
++++ b/kpartx/kpartx.h
+@@ -1,6 +1,8 @@
+ #ifndef _KPARTX_H
+ #define _KPARTX_H
+ 
++#include <stdint.h>
++
+ /*
+  * For each partition type there is a routine that takes
+  * a block device and a range, and returns the list of
+@@ -20,8 +22,8 @@
+  * units: 512 byte sectors
+  */
+ struct slice {
+-	unsigned long start;
+-	unsigned long size;
++	uint64_t start;
++	uint64_t size;
+ 	int container;
+ 	int major;
+ 	int minor;
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/0012--libmultipath-Update-discovery-to-work-with-new-sys.patch
+++ multipath-tools-0.4.8/debian/patches/0012--libmultipath-Update-discovery-to-work-with-new-sys.patch
@@ -0,0 +1,25 @@
+From: Hannes Reinecke <hare@suse.de>
+Date: Thu, 20 Mar 2008 23:53:48 +0100
+Subject: [PATCH] [libmultipath] Update discovery to work with new sysfs layout
+
+With the new sysfs layout the parent device of a block device
+it 'block', and only the parent of this is the 'real' parent.
+---
+ libmultipath/discovery.c |    3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
+index c842eb0..2600c1e 100644
+--- a/libmultipath/discovery.c
++++ b/libmultipath/discovery.c
+@@ -546,6 +546,9 @@ sysfs_pathinfo(struct path * pp)
+ 	if (!parent)
+ 		parent = pp->sysdev;
+ 
++	if (!strncmp(parent->kernel, "block",5))
++		parent = sysfs_device_get_parent(parent);
++
+ 	condlog(3, "%s: subsystem = %s", pp->dev, parent->subsystem);
+ 
+ 	if (!strncmp(parent->subsystem, "scsi",4))
+-- 
--- multipath-tools-0.4.8.orig/debian/patches/series
+++ multipath-tools-0.4.8/debian/patches/series
@@ -0,0 +1,12 @@
+0001-get-rid-of-arch-specific-ifdef-spaghettis.patch
+0002--libmultipath-filter_wwid-is-called-with-the-wron.patch
+0003--kpartx-Fix-udev-rules-for-dmraid.patch
+0004--kpartx-fix-extended-partition-handling.patch
+0005--kpartx-remove-partitions-in-reverse-order.patch
+0006--kpartx-documentation-fixes.patch
+0007--kpartx-remove-dead-code.patch
+0008-udev-as-of-0.124-doesn-t-support-scsi_id-s-anymor.patch
+0009-blacklist-cciss-devices.patch
+0010-fix-URL-to-FAQ.patch
+0011--kpartx-use-uint64_t-to-account-slices-start-size.patch
+0012--libmultipath-Update-discovery-to-work-with-new-sys.patch
--- multipath-tools-0.4.8.orig/debian/initramfs/hooks
+++ multipath-tools-0.4.8/debian/initramfs/hooks
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+PREREQS="udev"
+
+prereqs() { echo "$PREREQS"; }
+
+case $1 in
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+if [ ! -x /sbin/multipath ]; then
+	exit 0
+fi
+
+. /usr/share/initramfs-tools/hook-functions
+
+add_bindings()
+{
+  if [ -r /var/lib/multipath/bindings ]; then 
+      mkdir -p $DESTDIR/var/lib/multipath
+      cp /var/lib/multipath/bindings $DESTDIR/var/lib/multipath/
+  fi
+}
+
+copy_exec /sbin/multipath 		/sbin
+copy_exec /sbin/kpartx    		/sbin
+copy_exec /sbin/devmap_name 		/sbin
+copy_exec /sbin/dmsetup			/sbin
+copy_exec /lib/udev/dmsetup_env		/lib/udev
+copy_exec /sbin/mpath_prio_alua		/sbin
+copy_exec /sbin/mpath_prio_emc		/sbin
+copy_exec /sbin/mpath_prio_hp_sw	/sbin
+copy_exec /sbin/mpath_prio_rdac		/sbin
+copy_exec /sbin/mpath_prio_netapp	/sbin
+copy_exec /sbin/mpath_prio_random	/sbin
+copy_exec /sbin/mpath_prio_hds_modular	/sbin
+copy_exec /sbin/mpath_prio_balance_units /sbin
+
+[ -r /etc/multipath.conf ] && cp /etc/multipath.conf $DESTDIR/etc/
+add_bindings
+
+for x in dm-multipath dm-round-robin dm-emc; do
+	manual_add_modules ${x}
+done
+
--- multipath-tools-0.4.8.orig/debian/initramfs/local-top
+++ multipath-tools-0.4.8/debian/initramfs/local-top
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+VERBOSITY=0
+
+PREREQ="udev"
+
+prereqs() { echo "$PREREQ"; }
+
+case $1 in
+prereqs)
+	prereqs
+	exit 0
+	;;
+esac
+
+
+if [ ! -e /sbin/multipath ]; then
+	exit 0
+fi
+
+modprobe -q dm-multipath
+modprobe -q dm-emc
+
+echo "Discovering multipaths..."
+
+/sbin/multipath -v $VERBOSITY
+
+exit 0
+
--- multipath-tools-0.4.8.orig/debian/reportbug/script
+++ multipath-tools-0.4.8/debian/reportbug/script
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+CONFIG_FILE=/etc/multipath.conf
+
+exec >&3
+
+if [ -e "$CONFIG_FILE" ]; then
+    printf "Contents of $CONFIG_FILE:\n"
+    grep  -Ev "^([[:space:]]*#|$)" $CONFIG_FILE
+else
+    printf "$CONFIG_FILE does not exist.\n"
+fi
+
+printf "\n"
+
--- multipath-tools-0.4.8.orig/debian/po/POTFILES.in
+++ multipath-tools-0.4.8/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] multipath-tools-boot.templates
--- multipath-tools-0.4.8.orig/debian/po/de.po
+++ multipath-tools-0.4.8/debian/po/de.po
@@ -0,0 +1,45 @@
+# Translation of multipath-tools debconf templates to German
+# Copyright (C) Helge Kreutzmann <debian@helgefjell.de>, 2008.
+# This file is distributed under the same license as the multipath-tools package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: multipath-tools 0.4.8-9\n"
+"Report-Msgid-Bugs-To: multipath-tools@packages.debian.org\n"
+"POT-Creation-Date: 2008-05-17 14:36+0200\n"
+"PO-Revision-Date: 2008-05-20 20:37+0200\n"
+"Last-Translator: Helge Kreutzmann <debian@helgefjell.de>\n"
+"Language-Team: de <debian-l10n-german@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid "The location of the getuid callout has changed"
+msgstr "Der Ort des Getuid-Callouts ist ge�ndert worden"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Your /etc/multipath.conf still has a getuid_callout pointing to /sbin/"
+"scsi_id but the binary has moved to /lib/udev/scsi_id in udev 0.113-1. "
+"Please update your configuration. This is best done by removing the "
+"getuid_callout option entirely."
+msgstr ""
+"In Ihrer /etc/multipath.conf weist ein getuid_callout auf /sbin/scsi_id, "
+"das Programm wurde aber in Udev 0.113-1 nach /lib/udev/scsi_id verschoben. "
+"Bitte aktualisieren Sie Ihre Konfiguration. Dies erfolgt am besten durch das "
+"komplette Entfernen der Option getuid_callout."
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Don't forget to update your initramfs after these changes. Otherwise your "
+"system might not boot from multipath."
+msgstr ""
+"Vergessen Sie nicht, nach dieser �nderung Ihr Initramfs zu aktualisieren. "
+"Andernfalls k�nnte Ihr System nicht vom Multipath aus starten."
--- multipath-tools-0.4.8.orig/debian/po/fr.po
+++ multipath-tools-0.4.8/debian/po/fr.po
@@ -0,0 +1,50 @@
+# translation of multipath-tools debconf templates to French
+# Copyright (C) Jean Guillou <guillou.jean@free.fr>
+# This file is distributed under the same license as the multipath-tools package
+#
+# Jean Guillou <guillou.jean@free.fr>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: multipath-tools\n"
+"Report-Msgid-Bugs-To: multipath-tools@packages.debian.org\n"
+"POT-Creation-Date: 2008-05-17 14:36+0200\n"
+"PO-Revision-Date: 2008-05-19 11:20+0200\n"
+"Last-Translator: Jean Guillou <guillou.jean@free.fr>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid "The location of the getuid callout has changed"
+msgstr "Modification de la valeur du champ « getuid_callout »"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Your /etc/multipath.conf still has a getuid_callout pointing to /sbin/"
+"scsi_id but the binary has moved to /lib/udev/scsi_id in udev 0.113-1. "
+"Please update your configuration. This is best done by removing the "
+"getuid_callout option entirely."
+msgstr ""
+"Dans le fichier /etc/multipath.conf la valeur actuelle du champ « "
+"getuid_callout » est toujours /sbin/scsi_id mais l'adresse de l'exécutable "
+"est /lib/udev/scsi_id dans udev 0.113-1. Il est impératif de modifier le "
+"fichier de configuration. La solution suggérée est la suppression de cette "
+"option."
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Don't forget to update your initramfs after these changes. Otherwise your "
+"system might not boot from multipath."
+msgstr ""
+"Veuillez noter que vous devrez mettre à jour le système de fichiers initial "
+"en mémoire (« initramfs ») après ces changements. En l'absence de cette "
+"action, le système pourrait refuser de démarrer depuis un périphérique "
+"multichemins (« multipath »)."
--- multipath-tools-0.4.8.orig/debian/po/pt.po
+++ multipath-tools-0.4.8/debian/po/pt.po
@@ -0,0 +1,48 @@
+# translation of multipath-tools debconf to Portuguese
+# Copyright (C) 2008 Américo Monteiro
+# This file is distributed under the same license as the multipath-tools package.
+#
+# Américo Monteiro <a_monteiro@netcabo.pt>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: multipath-tools 0.4.8-9\n"
+"Report-Msgid-Bugs-To: multipath-tools@packages.debian.org\n"
+"POT-Creation-Date: 2008-05-17 14:36+0200\n"
+"PO-Revision-Date: 2008-05-19 19:16+0100\n"
+"Last-Translator: Américo Monteiro <a_monteiro@netcabo.pt>\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid "The location of the getuid callout has changed"
+msgstr "A localização de 'getuid callout' mudou"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Your /etc/multipath.conf still has a getuid_callout pointing to /sbin/"
+"scsi_id but the binary has moved to /lib/udev/scsi_id in udev 0.113-1. "
+"Please update your configuration. This is best done by removing the "
+"getuid_callout option entirely."
+msgstr ""
+"O seu /etc/multipath.conf ainda tem o getuid_callout a apontar para "
+"/sbin/scsi_id mas o binário foi movido para /lib/udev/scsi_id no udev 0.113-1. "
+"Por favor actualize a sua configuração. Isto fica melhor se remover "
+"completamente a opção getuid_callout."
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Don't forget to update your initramfs after these changes. Otherwise your "
+"system might not boot from multipath."
+msgstr ""
+"Não se esqueça de actualizar o seu initramfs após estas alterações. De outra "
+"maneira o seu sistema pode não arrancar a partir do multipath."
+
--- multipath-tools-0.4.8.orig/debian/po/ru.po
+++ multipath-tools-0.4.8/debian/po/ru.po
@@ -0,0 +1,50 @@
+# translation of ru.po to Russian
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Yuri Kozlov <kozlov.y@gmail.com>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: multipath-tools 0.4.8-9\n"
+"Report-Msgid-Bugs-To: multipath-tools@packages.debian.org\n"
+"POT-Creation-Date: 2008-05-17 14:36+0200\n"
+"PO-Revision-Date: 2008-06-15 19:17+0400\n"
+"Last-Translator: Yuri Kozlov <kozlov.y@gmail.com>\n"
+"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms:  nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid "The location of the getuid callout has changed"
+msgstr "Изменилось расположение getuid callout"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Your /etc/multipath.conf still has a getuid_callout pointing to /sbin/"
+"scsi_id but the binary has moved to /lib/udev/scsi_id in udev 0.113-1. "
+"Please update your configuration. This is best done by removing the "
+"getuid_callout option entirely."
+msgstr ""
+"В имеющемся файле /etc/multipath.conf параметр getuid_callout указывает "
+"на /sbin/scsi_id, но этот двоичный файл был перемещён в /lib/udev/scsi_id "
+"(пакет udev, версия 0.113-1). "
+"Обновите вашу настройку. Лучше всего вообще удалить параметр "
+"getuid_callout."
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Don't forget to update your initramfs after these changes. Otherwise your "
+"system might not boot from multipath."
+msgstr ""
+"Не забудьте обновить initramfs после изменения. Иначе система "
+"может не загрузиться с помощью многоканального доступа."
+
--- multipath-tools-0.4.8.orig/debian/po/sv.po
+++ multipath-tools-0.4.8/debian/po/sv.po
@@ -0,0 +1,49 @@
+# translation of multipath-tools_0.4.8-10_sv.po to Swedish
+# Copyright (C) 2008
+# This file is distributed under the same license as the multipath-tools package.
+#
+# Martin Ågren <martin.agren@gmail.com>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: multipath-tools_0.4.8-10_sv\n"
+"Report-Msgid-Bugs-To: multipath-tools@packages.debian.org\n"
+"POT-Creation-Date: 2008-05-17 14:36+0200\n"
+"PO-Revision-Date: 2008-07-23 20:58+0200\n"
+"Last-Translator: Martin Ågren <martin.agren@gmail.com>\n"
+"Language-Team: Swedish <debian-l10n-swedish@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms:  nplurals=2; plural=(n != 1);\n"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid "The location of the getuid callout has changed"
+msgstr "Sökvägen till getuid-utanropet har ändrats"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Your /etc/multipath.conf still has a getuid_callout pointing to /sbin/"
+"scsi_id but the binary has moved to /lib/udev/scsi_id in udev 0.113-1. "
+"Please update your configuration. This is best done by removing the "
+"getuid_callout option entirely."
+msgstr ""
+"Din /etc/multipath.conf har fortfarande en getuid_callout som pekar på "
+"/sbin/scsi_id men binären har flyttats till /lib/udev/scsi_id i udev 0.113-1. "
+"Uppdatera din konfiguration. Detta görs bäst genom att ta bort "
+"getuid_callout-valet helt och hållet."
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Don't forget to update your initramfs after these changes. Otherwise your "
+"system might not boot from multipath."
+msgstr ""
+"Glöm inte att uppdatera din initramfs efter dessa ändringar. Annars kanske "
+"inte ditt system startar upp från multipath."
+
--- multipath-tools-0.4.8.orig/debian/po/templates.pot
+++ multipath-tools-0.4.8/debian/po/templates.pot
@@ -0,0 +1,41 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: multipath-tools@packages.debian.org\n"
+"POT-Creation-Date: 2008-05-17 14:36+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid "The location of the getuid callout has changed"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Your /etc/multipath.conf still has a getuid_callout pointing to /sbin/"
+"scsi_id but the binary has moved to /lib/udev/scsi_id in udev 0.113-1. "
+"Please update your configuration. This is best done by removing the "
+"getuid_callout option entirely."
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Don't forget to update your initramfs after these changes. Otherwise your "
+"system might not boot from multipath."
+msgstr ""
--- multipath-tools-0.4.8.orig/debian/po/ja.po
+++ multipath-tools-0.4.8/debian/po/ja.po
@@ -0,0 +1,46 @@
+# Copyright (C) 2008-2009 Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>
+# This file is distributed under the same license as the multipath-tools package.
+# Hideki Yamane (Debian-JP) <henrich@debian.or.jp>, 2009.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: multipath-tools 0.4.8-13\n"
+"Report-Msgid-Bugs-To: multipath-tools@packages.debian.org\n"
+"POT-Creation-Date: 2008-05-17 14:36+0200\n"
+"PO-Revision-Date: 2009-01-06 06:26+0900\n"
+"Last-Translator: Hideki Yamane (Debian-JP) <henrich@debian.or.jp>\n"
+"Language-Team: Japanese <debian-japanese@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid "The location of the getuid callout has changed"
+msgstr "getuid callout の位置が変更されました"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Your /etc/multipath.conf still has a getuid_callout pointing to /sbin/"
+"scsi_id but the binary has moved to /lib/udev/scsi_id in udev 0.113-1. "
+"Please update your configuration. This is best done by removing the "
+"getuid_callout option entirely."
+msgstr ""
+"/etc/multipath.conf には /sbin/scsi_id をさしている getuid_callout が"
+"ありますが、バイナリは udev 0.113-1 で /lib/udeb/scsi_id に移動しました。"
+"設定を更新してください。完全に getuid_callout オプションを削除するのが一番"
+"良い方法です。"
+
+#. Type: note
+#. Description
+#: ../multipath-tools-boot.templates:1001
+msgid ""
+"Don't forget to update your initramfs after these changes. Otherwise your "
+"system might not boot from multipath."
+msgstr ""
+"この変更を行った後で initramfs をアップデートするのを忘れないようにしてください。"
+"そうしないと、システムはマルチパスから起動しなくなります。"
+
