All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Lindgren <john.lindgren@tds.net>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org, Andreas Dilger <adilger@sun.com>
Subject: Re: blkid: excessive random reads probing for ZFS on NTFS filesystem
Date: Mon, 20 Jun 2011 09:05:36 -0400	[thread overview]
Message-ID: <4DFF45A0.1040703@tds.net> (raw)
In-Reply-To: <20110620124612.GF17967@nb.net.home>

On 06/20/2011 08:46 AM, Karel Zak wrote:
>  Unfortunately, the old less expensive version of the ZFS detection
>  code was insufficient.  See Andreas' patches:
>
>  commit e54a76ca076625b1883ddf0595162eb8de81d5d1
>  Author: Andreas Dilger <adilger@sun.com>
>  Date:   Wed Feb 17 10:21:27 2010 +0100
>
>  commit a1fbeb3df35d1441c4ef64ea7e04c2b1fda38ba2
>  Author: Andreas Dilger <adilger@sun.com>
>  Date:   Thu Mar 11 15:16:46 2010 +0100

Understood.  The older implementation performed a less thorough search
for a valid uberblock, which I would expect to sometimes fail.

>> Andreas: As far as implementation, I think the ZFS code could be
>> improved by parsing the name-value pair list *before* searching for a
>> valid uberblock, rather than after.
> Doesn't depend the position of the list on the position of the valid
> uberblock?

No, it's at a fixed offset of 16k within the vdev label (before the
uberblock array, which is at 128k).

>> I don't have any ZFS filesystems
>> around to test with, or I would try to do this myself.
> There is a test image, see tests/ts/blkid/images-fs/zfs.img.bz2

Okay, thanks.

>  Maybe you can try to move zfs to the end of the probed filesystems 
>  in libblkid/src/superblocks/superblocks.c. It would be better to
>  probe for exotic and "expensive" filesytems later.

I did try that; however, blkid checks *all* filesystems, even after it
finds a match, just in case two probes turn up positive.  Even passing
"-n nozfs" doesn't actually prevent it from checking for ZFS.

Maybe it would be better to change this behavior and leave the ZFS code
as is?

-- John

  reply	other threads:[~2011-06-20 13:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-12 19:02 blkid: excessive random reads probing for ZFS on NTFS filesystem John Lindgren
2011-06-20 11:16 ` Karel Zak
2011-06-20 11:59   ` John Lindgren
2011-06-20 12:46     ` Karel Zak
2011-06-20 13:05       ` John Lindgren [this message]
2011-06-20 14:04         ` Karel Zak
2011-06-20 14:20           ` John Lindgren
2011-06-20 14:57             ` Karel Zak
2011-06-20 12:02   ` John Lindgren

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=4DFF45A0.1040703@tds.net \
    --to=john.lindgren@tds.net \
    --cc=adilger@sun.com \
    --cc=kzak@redhat.com \
    --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.