All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joel Becker <Joel.Becker@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] ocfs2console: Allow ocfs2console to	enumerate device mapper devices
Date: Tue, 12 Aug 2008 12:25:23 -0700	[thread overview]
Message-ID: <20080812192523.GA11744@mail.oracle.com> (raw)
In-Reply-To: <48A1A9C7.1080906@suse.com>

[Cc'ing ocfs2-tools-devel]

On Tue, Aug 12, 2008 at 11:18:31AM -0400, Jeff Mahoney wrote:
>  ocfs2console will currently display device mapper devices as dm-#, where
>  the number can be dynamic across reboots making it non-obvious which
>  device the user is using. While LVM volumes aren't safe to use across
>  physical nodes, they are often used with virtual machines. Many ocfs2
>  users also use dm-multipath.
> 
>  This patch refactors partition_info_fill to separate hashing from
>  enumeration so that it is trivial to add a device-mapper enumerator.
> 
>  The device mapper enumerator is automatically enabled if libdevmapper
>  is present at build time. When enabled, it suppresses the dm-# devices
>  from enumeration. If disabled, the dm-# devices are used instead.
> 
>  I have a bug report for this (Novell Bugzilla 414756) and it was easy
>  enough to bang out quickly.

	Nice!  I've not played with libdevmapper - I assume that the
enumerator returns "preferred" names when there are 10 different
symlinks for the same volume?  :-)

Joel

> +LIBDEVMAPPER_FOUND=
> +AC_CHECK_HEADER(libdevmapper.h, LIBDEVMAPPER_FOUND=yes,
> +  [AC_MSG_WARN([libdevmapper.h not found, device-mapper support will not be built])])
> +AC_SUBST(LIBDEVMAPPER_FOUND)

	Please check for the lib too:

LIBDEVMAPPER_FOUND=
AC_CHECK_LIB(devmapper, dm_task_create,
  [AC_CHECK_HEADER(libdevmapper.h, LIBDEVMAPPER_FOUND=yes,
    [AC_MSG_WARN([libdevmapper.h not found, device-mapper support will not be built])])],
  [AC_MSG_WARN([libdevmapper not found, device-mapper support will not
be built])])
AC_SUBST(LIBDEVMAPPER_FOUND)

Otherwise, it looks good.

Joel

-- 

"The nice thing about egotists is that they don't talk about other
 people."
         - Lucille S. Harper

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127

  reply	other threads:[~2008-08-12 19:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-12 15:18 [Ocfs2-devel] [PATCH] ocfs2console: Allow ocfs2console to enumerate device mapper devices Jeff Mahoney
2008-08-12 19:25 ` Joel Becker [this message]
2008-08-12 19:37   ` Jeff Mahoney
2008-08-12 19:48     ` Joel Becker
2008-08-12 19:38   ` [Ocfs2-devel] [PATCH V2] " Jeff Mahoney
2008-08-13 23:37     ` Sunil Mushran
  -- strict thread matches above, loose matches on Subject: below --
2008-09-22 14:16 [Ocfs2-devel] [PATCH] " Andrew Beekhof
2008-09-22 20:53 ` Sunil Mushran

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=20080812192523.GA11744@mail.oracle.com \
    --to=joel.becker@oracle.com \
    --cc=ocfs2-devel@oss.oracle.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.