linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Karel Zak <kzak-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Andreas Dilger <adilger-xsfywfwIY+M@public.gmane.org>
Cc: "Ricardo M. Correia"
	<Ricardo.M.Correia-xsfywfwIY+M@public.gmane.org>,
	Brian Behlendorf <behlendorf1-i2BcT+NCU+M@public.gmane.org>,
	linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Emmanuel Anne
	<emmanuel.anne-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	util-linux-ng-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [ANNOUNCE] util-linux-ng v2.17.1
Date: Fri, 26 Feb 2010 14:52:03 +0100	[thread overview]
Message-ID: <20100226135203.GC8702@nb.net.home> (raw)
In-Reply-To: <A5AF32A3-C8A4-4785-8886-9CF79EFA4C57-xsfywfwIY+M@public.gmane.org>


 Hi Andreas,

On Thu, Feb 25, 2010 at 06:13:50PM -0700, Andreas Dilger wrote:
> On 2010-02-22, at 03:30, Karel Zak wrote:
>> The stable util-linux-ng 2.17.1 release is available at
>>
>>   ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/v2.17/
>>
>> Feedback and bug reports, as always, are welcomed.
>
> Hi Karel,
> attached is an updated version of the ZFS device detection.  It includes 
> support for extracting the pool name (LABEL) along with the pool_guid 
> (UUID).

 Thanks! I'll review & commit it later.

> One question I had was regarding naming of the TYPE.  Currently we are  
> using "zfs" for this, but the current code is only really detecting the 
> volume information and has noting to do with mountable filesystems.

 The TYPE is used by mount(8) or fsck(8) if the fstype is not
 explicitly defined by user.

 I don't know if anything depends on the TYPE, but I don't see
 /sbin/mount.zfs, so it seems that zfs-fuse guys use something other.

> Extracting filesystem names/mountpoints/guids is basically impossible at 
> this stage w/o actually having ZFS active (in a similar manner that 
> extracting ext2/3/4 filesystem information from an unconfigured LVM PV is 
> impossible).
>

 See for example vmfs.c where we have "VMFS" (mountable FS) and also
 "VMFS_volume_member" (storage). The both TYPEs are completely
 independent and you can selectively probe for FS or for the special
 volume rather than probe always for both. I think this concept is
 better that add a new identifier (e.g. CONTAINER). 
 
 Note, we have USAGE identifier to specify kind of the type, for
 example raid, filesystem, crypto, etc. This is necessary for
 udevd and some desktop tools. (try: blkid -p -o udev <device>).

> Should we rename the TYPE to be "zfs_vdev" (ZFS equivalent to "lvm2pv") 
> instead of the current "zfs"?  It is probably more desirable to keep 

 Yes, TYPE="zfs" (mountable FS) and TYPE="zfs_volume_member" makes
 sense. (The "_volume_member" is horribly long, but we use it for
 compatibility with udev world.)

> "zfs" for future filesystem mountpoint identification.  For now I've left 
> it as "zfs" but wouldn't mind changing it now while there are not any 
> real users of this.

> Have you considered adding CONTAINER or similar identification to the  
> blkid.tab file, so that it is possible to determine that the filesystem 
> with LABEL="home" is on CONTAINER="39u4yr-f5WW-dtD7-jDfr- 
> usGd-pYWf-qy6xKE", which in turn is the UUID of an lvm2pv on /dev/sda2?

 I'd like to avoid this if possible.

    Karel

-- 
 Karel Zak  <kzak-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-02-26 13:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-22 10:30 [ANNOUNCE] util-linux-ng v2.17.1 Karel Zak
2010-02-26  1:13 ` Andreas Dilger
     [not found]   ` <A5AF32A3-C8A4-4785-8886-9CF79EFA4C57-xsfywfwIY+M@public.gmane.org>
2010-02-26 13:52     ` Karel Zak [this message]
2010-02-26 14:18       ` Ricardo M. Correia
     [not found]         ` <1267193930.10440.44.camel-RKLrhfLVcY7jLjhPMhbwMQ@public.gmane.org>
2010-02-26 15:16           ` Karel Zak
     [not found]             ` <20100226151618.GE8702-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2010-02-26 15:42               ` Ricardo M. Correia
     [not found]       ` <20100226135203.GC8702-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2010-02-26 20:07         ` Andreas Dilger
     [not found]           ` <CB4C887A-11B7-4A88-A911-102B34728B8A-xsfywfwIY+M@public.gmane.org>
2010-02-26 22:47             ` Karel Zak
     [not found]               ` <20100226224706.GH8702-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2010-03-01 23:40                 ` Andreas Dilger
     [not found]                   ` <8DFF5500-85B9-4E6F-83E6-FC99A06A14C1-xsfywfwIY+M@public.gmane.org>
2010-03-02 14:40                     ` Karel Zak

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=20100226135203.GC8702@nb.net.home \
    --to=kzak-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=Ricardo.M.Correia-xsfywfwIY+M@public.gmane.org \
    --cc=adilger-xsfywfwIY+M@public.gmane.org \
    --cc=behlendorf1-i2BcT+NCU+M@public.gmane.org \
    --cc=emmanuel.anne-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=util-linux-ng-u79uwXL29TY76Z2rM5mHXA@public.gmane.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;
as well as URLs for NNTP newsgroup(s).