grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Seth Goldberg <seth.goldberg@oracle.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [Patch] Enable libzfs detection on Linux
Date: Tue, 15 Nov 2011 14:37:00 -0800	[thread overview]
Message-ID: <4EC2E98C.6020705@oracle.com> (raw)
In-Reply-To: <CAOfDtXP6xNJuEfck7hRskdXJAD0WNpfOqJUc_tnvfhW_qvyf0Q@mail.gmail.com>

On 11/10/11 12:02, Robert Millan wrote:
> Hi Zachary,
>
> 2011/9/14 Zachary Bedell<pendorbound@gmail.com>:
>> FWIW, my commit comment locally for this was:
>>   * Adjusts autoconf logic to properly detect libzfs on Linux.
>>   * Includes additional headers necessary for libspl.
>
> Excuse me if I missed something, but weren't you holding the position
> that libzfs ABI was too unstable and relying on it from external
> programs was a bad idea?
>
> Recently Debian has had severe problems in this area because of this.
> C.f. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645305
>
> Last month I sent a proof of concept patch that implements this idea
> (in "getroot for ZFS without libzfs?" thread).  Did you see this part
> of the thread?
>

Hi,

   I had a conversation with Vladimir about this.  I think retaining 
libzfs is a good thing, Debian bugs notwithstanding.  libzfs provides an 
interfaces that enables a consumer to find zpool on system without 
scanning the world (the idea being that the kernel has already done 
that, and has cached that information), so one need not have to deal 
with devices that might become unresponsive to a user-level process when 
scanned.  It also allows one to enumerate pools that might have the same 
name (in which case you'd use the pool's GUID (in base 10) to access the 
pool).  So libzfs, whatever its stability level, still seems like a 
better plan than going out to disks directly and pulling metadata.

(FWIW, I looked at that Debian bug, and IMHO, the problem there was that 
libzfs wasn't properly versioned in the first place-- if the person who 
added or changed the libzfs API didn't version it, they're just asking 
for trouble.  The proper solution in that case would have been adding 
versioning and not pulling the whole library).

  --S



      parent reply	other threads:[~2011-11-15 22:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-09 17:48 [Patch] Enable libzfs detection on Linux Zachary Bedell
2011-08-18 16:49 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-09-14 18:39   ` Zachary Bedell
2011-11-03 14:51     ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-11-10 20:02     ` Robert Millan
2011-11-10 20:38       ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-11-10 20:39       ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-11-15 22:37       ` Seth Goldberg [this message]

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=4EC2E98C.6020705@oracle.com \
    --to=seth.goldberg@oracle.com \
    --cc=grub-devel@gnu.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).