MFp4: We don't support TX_CREATE_ACL_ATTR nor TX_MKDIR_ACL_ATTR; code found

in zfs_replay.c will panic if it encounters transactions of this type.
Make sure we don't put these into the ZIL.

Approved by:	rwatson (mentor), pjd
This commit is contained in:
Edward Tomasz Napierala 2008-11-25 23:05:46 +00:00
parent c169089a88
commit 38cc5da78e

View File

@ -60,7 +60,11 @@ zfs_log_create_txtype(zil_create_t type, vsecattr_t *vsecp, vattr_t *vap)
if (vsecp == NULL && !isxvattr)
return (TX_CREATE);
if (vsecp && isxvattr)
#ifdef TODO
return (TX_CREATE_ACL_ATTR);
#else
panic("%s:%u: unsupported condition", __func__, __LINE__);
#endif
if (vsecp)
return (TX_CREATE_ACL);
else
@ -70,7 +74,11 @@ zfs_log_create_txtype(zil_create_t type, vsecattr_t *vsecp, vattr_t *vap)
if (vsecp == NULL && !isxvattr)
return (TX_MKDIR);
if (vsecp && isxvattr)
#ifdef TODO
return (TX_MKDIR_ACL_ATTR);
#else
panic("%s:%u: unsupported condition", __func__, __LINE__);
#endif
if (vsecp)
return (TX_MKDIR_ACL);
else