From: "Loïc Minier" <lool+redhat@via.ecp.fr>
To: dm-devel@redhat.com
Subject: Re: Weird discrepancy between /dev/mapper/* and /dev/dm-* devices breaks lilo
Date: Wed, 31 Jan 2007 16:54:29 +0100 [thread overview]
Message-ID: <20070131155429.GD27755@bee.dooz.org> (raw)
In-Reply-To: <20070131150635.GB21980@agk.surrey.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 830 bytes --]
On Wed, Jan 31, 2007, Alasdair G Kergon wrote:
> Some distributions chose to configure udev to create /dev/dm-N inodes where
> N is the minor number. (I have always discouraged that as a recipe for
> confusion: I believe that using configurable names is a better approach.)
I seem to recall even RedHat or Fedora attempted to add these devices,
but I suppose you know best. The reasons why these were added in udev
in Debian and Ubuntu are mentionned in http://bugs.debian.org/392623,
but in short gnome-mount required this to work; perhaps this should be
fixed in gnome-mount. The details are in a comment of #401393 though:
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=401393;msg=37>
(attaching the patch I mentionned in the preceding mail but forgot,
sorry)
--
Loïc Minier <lool@dooz.org>
[-- Attachment #2: lilo_22.7.3-1.4.diff --]
[-- Type: text/x-diff, Size: 1631 bytes --]
--- lilo-22.7.3/debian/patches/00list
+++ lilo-22.7.3/debian/patches/00list
@@ -31,0 +32 @@
+20_devmapper-use-major-minor
--- lilo-22.7.3/debian/changelog
+++ lilo-22.7.3/debian/changelog
@@ -1,3 +1,11 @@
+lilo (1:22.7.3-1.4) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * New dpatch, 20_devmapper-use-major-minor, to address device-mapper devices
+ via major/minor instead of name for DM_DEVICE_TABLE; closes: #401393.
+
+ -- Loic Minier <lool@dooz.org> Wed, 31 Jan 2007 15:21:06 +0100
+
lilo (1:22.7.3-1.3) unstable; urgency=low
* Non-maintainer upload to fix a few more l10n issues.
--- lilo-22.7.3.orig/debian/patches/20_devmapper-use-major-minor.dpatch
+++ lilo-22.7.3/debian/patches/20_devmapper-use-major-minor.dpatch
@@ -0,0 +1,22 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 20_devmapper-use-major-minor.patch.dpatch by Loic Minier <lool@dooz.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad lilo-22.7.3~/geometry.c lilo-22.7.3/geometry.c
+--- lilo-22.7.3~/geometry.c 2007-01-31 15:20:37.000000000 +0100
++++ lilo-22.7.3/geometry.c 2007-01-31 15:20:43.000000000 +0100
+@@ -930,8 +930,9 @@
+ slash++;
+ else
+ slash = dmdev;
+- if (!dm_task_set_name(dmt, slash))
+- die("device-mapper: dm_task_set_name(\"%s\") failed",dmdev);
++ if (!dm_task_set_major(dmt, MAJOR(device)) ||
++ !dm_task_set_minor(dmt, MINOR(device)))
++ die("device-mapper: dm_task_set_major() or dm_task_set_minor() failed");
+ if (!dm_task_run(dmt))
+ die("device-mapper: dm_task_run(DM_DEVICE_TABLE) failed");
+
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2007-01-31 15:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-31 10:47 Weird discrepancy between /dev/mapper/* and /dev/dm-* devices breaks lilo Loïc Minier
2007-01-31 11:00 ` Loïc Minier
2007-01-31 15:10 ` Alasdair G Kergon
2007-01-31 15:47 ` Loïc Minier
2007-01-31 15:06 ` Alasdair G Kergon
2007-01-31 15:54 ` Loïc Minier [this message]
2007-01-31 20:10 ` Luca Berra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070131155429.GD27755@bee.dooz.org \
--to=lool+redhat@via.ecp.fr \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.