All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Marcin Szewczyk <Marcin.Szewczyk@wodny.org>
Cc: util-linux@vger.kernel.org
Subject: Re: Duplicate UUIDs, findmnt, /dev/disk/by-uuid
Date: Wed, 25 Apr 2012 09:56:28 +0200	[thread overview]
Message-ID: <20120425075628.GD17370@x2.net.home> (raw)
In-Reply-To: <20120423154106.GD2437@magazyn-ziarno.zbozowa>

On Mon, Apr 23, 2012 at 05:41:06PM +0200, Marcin Szewczyk wrote:
> As a workaround I use /proc/self/mountinfo as it gives me major and
> minor numbers.
> 
> My question is: is there a way to force findmnt to use major and minor
> numbers from /proc/self/mountinfo to identify disks/partitions?

 Implemented (in upstream tree).

 $ findmnt 8:1
 TARGET    SOURCE    FSTYPE OPTIONS
 /boot/efi /dev/sda1 vfat   rw,relatime,fmask=0077,dmask=0077,codepage=cp437,ioch


 (or with "--source 8:1" option to make it more explicit)

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

  parent reply	other threads:[~2012-04-25  7:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-23 15:41 Duplicate UUIDs, findmnt, /dev/disk/by-uuid Marcin Szewczyk
2012-04-23 17:07 ` Ted Ts'o
2012-04-25  7:56 ` Karel Zak [this message]
2012-04-26  7:52   ` Marcin Szewczyk

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=20120425075628.GD17370@x2.net.home \
    --to=kzak@redhat.com \
    --cc=Marcin.Szewczyk@wodny.org \
    --cc=util-linux@vger.kernel.org \
    /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.