ZFS panic: empty ZFS ACL
Edward Tomasz Napierała
trasz at FreeBSD.org
Sun Nov 28 23:15:43 UTC 2010
Wiadomość napisana przez James R. Van Artsdalen w dniu 2010-11-28, o godz. 15:45:
> amd64
> Version String: FreeBSD 9.0-CURRENT #0 r214378M: Sun Nov 28 07:52:25
> CST 2010 root at kraken.housenet.jrv:/usr/obj/usr/src/sys/GENERIC
> Panic String: empty ZFS ACL
>
> I got this panic via "ls -l" after copying in a very old pool via zfs
> send/recv: the pool originated on Macintosh ZFS just after Apple first
> released the initial build of that.
Could you try the patch below?
Index: sys/cddl/compat/opensolaris/kern/opensolaris_acl.c
===================================================================
--- sys/cddl/compat/opensolaris/kern/opensolaris_acl.c (revision 215553)
+++ sys/cddl/compat/opensolaris/kern/opensolaris_acl.c (working copy)
@@ -105,7 +105,10 @@
struct acl_entry *entry;
const ace_t *ace;
- KASSERT(nentries >= 1, ("empty ZFS ACL"));
+ if (nentries < 1) {
+ printf("acl_from_aces: empty ZFS ACL; returning EINVAL.\n");
+ return (EINVAL);
+ }
if (nentries > ACL_MAX_ENTRIES) {
/*
--
If you cut off my head, what would I say? Me and my head, or me and my body?
More information about the freebsd-fs
mailing list