Darren J Moffat
2007-Aug-21 15:37 UTC
[zfs-crypto-discuss] need debug help for encrypted dataset mount failure.
I need some help debugging a problem without mounting encrypted datasets after a pool import. What works: Create a pool with an encrypted data set. Put data in it - we can see it gets encrypted. zfs umount -a zfs mount -a Can read back the clear text from disk. What fails: zpool export zpool import Even if we get the key into the spa_t before we attempt to mount the datasets I still can''t mount the dataset properly. What I''ve tried: Added a "null" encryption cipher - this does a bcopy instead of a crypto_encrypt/crypto_decrypt but otherwise does everything else the same. This almost works. I can import the pool, get the datasets mounted and even read the data back. However just after the import status shows an error, but if I scrub the error goes way. What I need: I need someone to help me debug where the problem is. src is: $ hg clone ssh://anon at hg.opensolaris/hg/zfs-crypto/zfs-crypto-gate or: http://src.opensolaris.org/source/xref/zfs-crypto/zfs-crypto-gate/ -- Darren J Moffat