Am 26.09.2009 um 09:21 schrieb Doug Rabson:
> On 25 Sep 2009, at 22:49, Artem Belevich wrote:
>> Our bootloader implementation does not know how to read gang blocks.
>> Compare the code from OpenSolaris' variant of grub with what we have
>> and find the differences:
>> Search for zio_read_data here:
>> And compare with our zio_read here:
>> We seem to be missing gang block check. That would explain why
>> works only sometimes. If all the files are written using regular
>> blocks, then we're OK. However, some time later (i.e. during upgrade
>> or after an edit), some data can end up written to disk in a gang
>> block and that would make zfsboot choke.
> This sounds plausible - I never managed to see a gang block while I
> was working on this.
I'm afraid something else is wrong. I added if (DVA_GET_GANG(dva)) to
zio_read, with a printf and return(EIO). Booting results in "no block
copies available", but my code addition does not seem to be
triggered. This is with a freshly created zpool, set up with make
Stefan Bethke <email@example.com> Fon +49 151 14070811