[<prev] [next>] [day] [month] [year] [list]
Message-Id: <028169F5-CC91-4E3F-872F-2CB105089006@dilger.ca>
Date: Thu, 5 Aug 2010 17:07:35 -0600
From: Andreas Dilger <adilger@...ger.ca>
To: "Ted Ts'o" <tytso@....edu>
Cc: ext4 development <linux-ext4@...r.kernel.org>
Subject: [PATCH] e2fsprogs: fix ZFS filesystem detection
While blkid has mostly migrated to util-linux-ng (which has gotten a more
sophisticated checking routine), the existing e2fsprogs ZFS filesystem
detection isn't always correct. Fix the ZFS device detection by looking at
multiple uberblocks to see if any are present, rather than looking for the ZFS
boot block which is not always present.
There may be up to 128 uberblocks, but the first 4 are not written to disk
on a newly-formatted filesystem so check several of them at different
offsets within the uberblock array.
Cheers, Andreas
Download attachment "e2fsprogs-blkid-zfs.patch" of type "application/octet-stream" (2894 bytes)
Powered by blists - more mailing lists