public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: newsitem: unmasking udev-181
Date: Mon, 12 Mar 2012 09:02:05 +0000 (UTC)	[thread overview]
Message-ID: <pan.2012.03.12.09.02.05@cox.net> (raw)
In-Reply-To: robbat2-20120311T231028-113745546Z@orbis-terrarum.net

Robin H. Johnson posted on Sun, 11 Mar 2012 23:14:46 +0000 as excerpted:

> On Sun, Mar 11, 2012 at 11:03:50PM +0000, Duncan wrote:
>> Meanwhile, also note that there's PARTLABEL, PARTUUID and ID, that the
>> mount manpage promises to honor.  I've not used these myself, but there
>> was a thread on the btrfs list discussing GPT format and users of its
>> partition-labels (as opposed to filesystem labels), that pointed out
>> that mount honors these, since it internally uses the udev symlinks
>> mechanism to support (fs) labels, etc, so they get support for
>> gpt-partition- labels, etc, essentially "for free".

> What manpage are you reading?
> # man 8 mount |grep PART # man 2 mount |grep PART Nada.
> 
> When the blkid tool can read PARTUUID/PARTLABEL, then it will just work
> with genkernel, as we use blkid for doing that.

mount (8) under device indication:

>>>>>

Most devices are indicated by a file name (of a block special device), 
like /dev/sda1, but there are other possibilities.  [...] It is possible 
to indicate a block special device using its volume LABEL or UUID (see 
the -L and -U options below).

The recommended setup is to use LABEL=<label> or UUID=<uuid> tags rather  
than /dev/disk/by-{label,uuid} udev symlinks in the /etc/fstab file. The 
tags are more readable, robust and portable.  The mount(8) command 
internally uses udev symlinks, so use the symlinks in /etc/fstab has no 
advantage over LABEL=/UUID=.  For more details see libblkid(3).

<<<<<

As I said, it wasn't apparent to me until someone pointed it out to me on 
the btrfs list, but apparently, mount understands SOMETHING= as 
referencing /dev/disk/by-something, using those symlinks internally, so 
while the manpage doesn't specifically mention PARTLABEL, etc, according 
to that person, it "just works".  Upon seeing that claim, I reread the 
manpage, and sure enough, that meaning can be seen "between the lines" if 
you already know to look for it.

I had intended to try it, since I use gptfdisk and gpt partitions pretty 
much universally now, and referencing the PARTLABEL would have meant that 
I could for instance do a mkfs and redo my backup partitions without 
having to update fstab's labels because I could use the partlabels 
instead.  Unfortunately, when I actually checked to see what symlinks 
udev was putting in /dev/disk/by-partlabel, while indeed the gpt 
partlabels for the physical disks were there, the partlabels for the
gpt-partitioned md/raid devices were NOT, and that's what I actually 
needed, so unfortunately I couldn't try using partlabels after all.  
That's why I've yet to actually verify the claim.

At some point I'll probably verify it with a USB attached external drive, 
as it's my last-resort backup, and/or on my netbook, with only one drive 
so no raid, but I've not gotten that far, yet.


FWIW, the thread started with someone complaining that a btrfs label on a 
multi-device filesystem (since btrfs can do that) was attached to the 
filesystem, NOT the device/partition.  Various people pointed out that 
it's a filesystem label and that btrfs thus had it correct.  Meanwhile, 
on one subthread I pointed out gpt partition labels as an alternative, 
but said I didn't think Linux could actually do much with them yet.  
That's when someone else replied that it could do more than I thought, 
mount and fstab handled partlabel, and he thought the kernel root= 
parameter could take it as well.

Here's his post on gmane:

http://permalink.gmane.org/gmane.comp.file-systems.btrfs/16023

As I said, after reading that, rereading the mount (8) manpage, it /did/ 
seem to hint that it should do so even if it doesn't outright say it, 
since it specifically mentions using udev's symlinks internally.

But as I've not tried it yet I have only his post and my reparsing of 
that manpage based on it, to go on.  Is it incorrect?

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman




  reply	other threads:[~2012-03-12  9:03 UTC|newest]

Thread overview: 165+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-11  2:27 [gentoo-dev] newsitem: unmasking udev-181 William Hubbs
2012-03-11  2:53 ` [gentoo-dev] " Rich Freeman
2012-03-11  3:28   ` Luca Barbato
2012-03-11  3:50     ` Rich Freeman
2012-03-11  5:12       ` Luca Barbato
2012-03-11 17:33     ` William Hubbs
2012-03-11 17:35       ` Samuli Suominen
2012-03-11 18:00         ` Michał Górny
2012-03-13  1:22       ` [gentoo-dev] Let's redesign the entire filesystem! [was newsitem: unmasking udev-181] Joshua Kinard
2012-03-13  1:37         ` Kent Fredric
2012-03-13  2:16           ` Joshua Kinard
2012-03-13  2:33         ` Ian Stakenvicius
2012-03-13  3:14           ` Joshua Kinard
2012-03-13  3:53             ` Robin H. Johnson
2012-03-13  5:17               ` Luca Barbato
2012-03-14  0:20                 ` Joshua Kinard
2012-03-14  0:52                   ` Rich Freeman
2012-03-13 13:36             ` Ian Stakenvicius
2012-03-13 10:31         ` Jeroen Roovers
2012-03-13 11:54         ` James Broadhead
2012-03-14  0:16           ` Joshua Kinard
2012-03-14  8:39             ` [gentoo-dev] " Duncan
2012-03-14 12:40               ` [gentoo-dev] Re: Let's redesign the entire filesystem! Joshua Kinard
2012-03-14 14:41                 ` Greg KH
2012-03-14 14:51                   ` Philip Webb
2012-03-14 15:04                     ` Greg KH
2012-03-14 15:08                       ` Ciaran McCreesh
2012-03-14 15:22                         ` Greg KH
2012-03-14 15:59                           ` Ciaran McCreesh
2012-03-14 21:00                             ` Greg KH
2012-03-14 16:28                           ` Matthew Summers
2012-03-15 13:22                             ` Joshua Kinard
2012-03-14 17:11                           ` Maxim Kammerer
2012-03-14 17:29                             ` Zac Medico
2012-03-14 17:58                               ` Matthew Summers
2012-03-14 18:04                                 ` Ciaran McCreesh
2012-03-14 18:36                                 ` Maxim Kammerer
2012-03-14 18:56                                   ` Zac Medico
2012-03-14 19:14                                     ` Michael Orlitzky
2012-03-14 19:26                                       ` Zac Medico
2012-03-14 19:57                                     ` David Leverton
2012-03-14 21:04                                       ` Greg KH
2012-03-14 22:14                                         ` David Leverton
2012-03-14 22:51                                           ` Greg KH
2012-03-14 23:21                                             ` David Leverton
2012-03-14 23:44                                               ` Greg KH
2012-03-14 23:58                                                 ` Richard Yao
2012-03-15  0:07                                                   ` Greg KH
2012-03-15  0:29                                                 ` David Leverton
2012-03-15 11:20                                                   ` Stelian Ionescu
2012-03-15 12:23                                                     ` Joshua Kinard
2012-03-15 14:01                                                 ` Joshua Kinard
2012-03-14 23:47                                               ` Zac Medico
2012-03-15  0:36                                                 ` David Leverton
2012-03-15  0:45                                                   ` Zac Medico
2012-03-15  0:49                                                     ` David Leverton
2012-03-15 12:27                                                     ` Joshua Kinard
2012-03-15 15:29                                                       ` Zac Medico
2012-03-15  0:58                                                   ` Richard Yao
2012-03-15  1:06                                                     ` Zac Medico
2012-03-15  1:49                                                       ` Richard Yao
2012-03-16 23:29                                                         ` Zac Medico
2012-03-16 23:29                                                         ` Zac Medico
2012-03-15 12:16                                             ` Joshua Kinard
2012-03-15 12:09                                           ` Joshua Kinard
2012-03-14 22:39                                         ` Richard Yao
2012-03-14 22:49                                           ` Greg KH
2012-03-14 23:27                                             ` Richard Yao
2012-03-14 23:37                                               ` Greg KH
2012-03-14 23:51                                                 ` Richard Yao
2012-03-15  1:07                                                   ` Rich Freeman
2012-03-15  1:37                                                     ` Zac Medico
2012-03-15  1:44                                                     ` Richard Yao
2012-03-16  1:17                                                     ` Canek Peláez Valdés
2012-03-16  1:18                                                       ` Canek Peláez Valdés
2012-03-15  5:18                                                 ` Luca Barbato
2012-03-15  8:13                                                 ` Martin Gysel
2012-03-15 12:40                                                 ` Joshua Kinard
2012-03-15 20:44                                                   ` Richard Yao
2012-03-17  7:12                                                     ` Walter Dnes
2012-03-19  5:21                                                       ` Walter Dnes
2012-03-15 12:34                                               ` Joshua Kinard
2012-03-15 20:45                                                 ` Richard Yao
2012-03-15 21:49                                                   ` Maxim Kammerer
2012-03-14 20:03                                     ` Richard Yao
2012-03-14 20:55                                       ` Zac Medico
2012-03-14 21:05                                         ` Richard Yao
2012-03-15  4:10                                           ` Zac Medico
2012-03-15 12:47                                         ` Joshua Kinard
2012-03-15 13:36                                     ` Joshua Kinard
2012-03-14 19:30                                 ` Jeroen Roovers
2012-03-15  5:04                                 ` Luca Barbato
2012-03-14 17:59                               ` Rich Freeman
2012-03-15  5:24                                 ` Luca Barbato
2012-03-15 12:51                                 ` Joshua Kinard
2012-03-14 20:12                       ` Walter Dnes
2012-03-15 11:04                       ` Joshua Kinard
2012-03-15 12:30                         ` Rich Freeman
2012-03-15 13:05                           ` Joshua Kinard
2012-03-15 14:42                           ` Greg KH
2012-03-15 19:04                             ` Rich Freeman
2012-03-15 19:17                               ` [gentoo-dev] /dev/serial/ (was "Let's redesign the entire filesystem!") Greg KH
2012-03-15 19:41                                 ` Rich Freeman
2012-03-15 14:41                         ` [gentoo-dev] Re: Let's redesign the entire filesystem! Greg KH
2012-03-16  0:47                           ` Joshua Kinard
2012-03-16  2:43                             ` Greg KH
2012-03-16  3:01                               ` Richard Yao
2012-03-16 15:18                                 ` Greg KH
2012-03-16 17:00                                   ` Michael Orlitzky
     [not found]                                 ` <7c08803524244ff0808d16539b8f9926@HUBCAS2.cs.stonybrook.edu>
2012-03-16 22:41                                   ` Richard Yao
2012-03-13 14:41         ` [gentoo-dev] Let's redesign the entire filesystem! [was newsitem: unmasking udev-181] Marc Schiffbauer
2012-03-13 23:12           ` James Broadhead
2012-03-14 12:00           ` James Cloos
2012-03-14 17:52             ` Zac Medico
2012-03-14 18:48               ` [gentoo-dev] " Duncan
2012-03-14 20:10                 ` Kent Fredric
2012-03-15  6:33                   ` Duncan
2012-03-15 13:07                   ` Joshua Kinard
2012-03-13  5:11       ` [gentoo-dev] Re: newsitem: unmasking udev-181 Luca Barbato
2012-03-14  0:13         ` Joshua Kinard
2012-03-14  8:03           ` Duncan
2012-03-14 12:07             ` Joshua Kinard
2012-03-14 18:43               ` Duncan
2012-03-14 21:13               ` Walter Dnes
2012-03-15 13:10                 ` Joshua Kinard
2012-03-15 21:49                   ` Robin H. Johnson
2012-03-11  3:44   ` Dale
2012-03-11  5:48   ` Duncan
2012-03-11 11:03   ` Petteri Räty
2012-03-11 15:33     ` Zac Medico
2012-03-11 21:28       ` Petteri Räty
2012-03-11 21:43         ` William Hubbs
2012-03-11 21:48           ` Petteri Räty
2012-03-11 23:15             ` William Hubbs
2012-03-12 12:37               ` Rich Freeman
2012-03-12 17:01                 ` Matthias Hanft
2012-03-12 19:32                   ` Robin H. Johnson
2012-03-13 14:34               ` Petteri Räty
2012-03-11 22:57   ` Robin H. Johnson
2012-03-13  8:43   ` Walter Dnes
2012-03-13  9:14     ` Canek Peláez Valdés
2012-03-14  0:29       ` Joshua Kinard
2012-03-14  0:36         ` Stelian Ionescu
2012-03-14  1:04         ` Maxim Kammerer
2012-03-14  1:14         ` Robin H. Johnson
2012-03-14 13:02         ` Rich Freeman
2012-03-13 10:32     ` Robin H. Johnson
2012-03-11  6:49 ` Ryan Hill
2012-03-11 21:08   ` Robin H. Johnson
2012-03-11 23:03     ` Duncan
2012-03-11 23:14       ` Robin H. Johnson
2012-03-12  9:02         ` Duncan [this message]
2012-03-12 14:09     ` Marc Schiffbauer
2012-03-12 19:41       ` Robin H. Johnson
2012-03-13  2:06     ` Ryan Hill
2012-03-12 18:34   ` Sven Vermeulen
2012-03-13  2:04     ` Ryan Hill
2012-03-11  8:06 ` [gentoo-dev] " Neil Bothwick
2012-03-11  8:41   ` Michał Górny
2012-03-11  9:36     ` Neil Bothwick
2012-03-11 10:43       ` Michał Górny
2012-03-11 17:26 ` William Hubbs
2012-03-11 18:08   ` Ulrich Mueller
2012-03-11 23:09   ` [gentoo-dev] " Duncan
2012-03-12 20:50   ` [gentoo-dev] " Robin H. Johnson

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=pan.2012.03.12.09.02.05@cox.net \
    --to=1i5t5.duncan@cox.net \
    --cc=gentoo-dev@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox