From: Karel Zak <kzak@redhat.com>
To: "Ricardo M. Correia" <Ricardo.M.Correia@Sun.COM>
Cc: "Theodore Ts'o" <tytso@mit.edu>,
linux-ext4@vger.kernel.org, Andreas Dilger <adilger@Sun.COM>
Subject: Re: [PATCH e2fsprogs] Add ZFS detection to libblkid
Date: Mon, 2 Jun 2008 09:41:02 +0200 [thread overview]
Message-ID: <20080602074102.GA3242@nb.net.home> (raw)
In-Reply-To: <1212171647.7508.46.camel@localhost>
On Fri, May 30, 2008 at 07:20:47PM +0100, Ricardo M. Correia wrote:
> This patch adds ZFS filesystem detection to libblkid.
It'd be nice to add ZFS detection to libvolume_id from udev package.
> Unfortunately the probe table doesn't support probing from the end of
> the device, otherwise we could also probe in the 3rd and 4th labels (in
> case the first 2 labels were accidentally overwritten)..
This shouldn't be a problem in libvolume_id.
> +static int probe_zfs(struct blkid_probe *probe, struct blkid_magic *id,
> + unsigned char *buf)
> +{
> + char *vdev_label;
> + const char *pool_name = 0;
> +
> + /* read nvpair data for pool name, pool GUID (complex) */
> + //blkid_set_tag(probe->dev, "LABEL", pool_name, sizeof(pool_name));
> + //set_uuid(probe->dev, pool_guid, 0);
C++ ?
> - if (memcmp(id->bim_magic, buf + (id->bim_sboff&0x3ff),
> + if (memcmp(id->bim_magic, buf + (id->bim_sboff & 0x3ff),
???
Karel
--
Karel Zak <kzak@redhat.com>
next prev parent reply other threads:[~2008-06-02 7:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-30 18:20 [PATCH e2fsprogs] Add ZFS detection to libblkid Ricardo M. Correia
2008-06-02 7:41 ` Karel Zak [this message]
2008-06-02 15:03 ` Ricardo M. Correia
[not found] ` <1212418863.7337.34.camel@localhost>
2008-06-02 20:58 ` Karel Zak
2008-06-02 21:38 ` Andreas Dilger
2008-06-02 22:31 ` Karel Zak
2008-06-02 23:11 ` Andreas Dilger
2008-06-03 0:05 ` Theodore Tso
2008-06-03 1:11 ` Theodore Tso
2009-04-04 2:39 ` Eric Sandeen
2009-04-04 13:04 ` Eric Sandeen
2009-04-04 21:25 ` Andreas Dilger
2009-04-04 21:46 ` Eric Sandeen
2009-04-06 6:25 ` Andreas Dilger
2009-04-06 19:22 ` Ricardo M. Correia
2009-04-06 20:13 ` Eric Sandeen
2009-04-13 19:18 ` Ricardo M. Correia
2009-04-13 19:27 ` Eric Sandeen
2009-04-06 20:35 ` Karel Zak
2009-04-07 7:40 ` Andreas Dilger
2009-04-13 19:29 ` Ricardo M. Correia
2009-04-17 9:51 ` 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=20080602074102.GA3242@nb.net.home \
--to=kzak@redhat.com \
--cc=Ricardo.M.Correia@Sun.COM \
--cc=adilger@Sun.COM \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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.