4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
26 #include <sys/types.h>
27 #include <sys/param.h>
28 #include <sys/systm.h>
29 #include <sys/sysmacros.h>
30 #include <sys/cmn_err.h>
32 #include <sys/thread.h>
35 #include <sys/zfs_znode.h>
36 #include <sys/zfs_dir.h>
38 #include <sys/zil_impl.h>
39 #include <sys/byteorder.h>
40 #include <sys/policy.h>
46 #include <sys/zfs_fuid.h>
48 #include <sys/dsl_dataset.h>
51 * These zfs_log_* functions must be called within a dmu tx, in one
52 * of 2 contexts depending on zilog->z_replay:
56 * We need to record the transaction so that if it is committed to
57 * the Intent Log then it can be replayed. An intent log transaction
58 * structure (itx_t) is allocated and all the information necessary to
59 * possibly replay the transaction is saved in it. The itx is then assigned
60 * a sequence number and inserted in the in-memory list anchored in the zilog.
64 * We need to mark the intent log record as replayed in the log header.
65 * This is done in the same transaction as the replay so that they
70 zfs_log_create_txtype(zil_create_t type
, vsecattr_t
*vsecp
, vattr_t
*vap
)
72 int isxvattr
= (vap
->va_mask
& ATTR_XVATTR
);
75 if (vsecp
== NULL
&& !isxvattr
)
77 if (vsecp
&& isxvattr
)
78 return (TX_CREATE_ACL_ATTR
);
80 return (TX_CREATE_ACL
);
82 return (TX_CREATE_ATTR
);
85 if (vsecp
== NULL
&& !isxvattr
)
87 if (vsecp
&& isxvattr
)
88 return (TX_MKDIR_ACL_ATTR
);
90 return (TX_MKDIR_ACL
);
92 return (TX_MKDIR_ATTR
);
101 * build up the log data necessary for logging xvattr_t
102 * First lr_attr_t is initialized. following the lr_attr_t
103 * is the mapsize and attribute bitmap copied from the xvattr_t.
104 * Following the bitmap and bitmapsize two 64 bit words are reserved
105 * for the create time which may be set. Following the create time
106 * records a single 64 bit integer which has the bits to set on
107 * replay for the xvattr.
110 zfs_log_xvattr(lr_attr_t
*lrattr
, xvattr_t
*xvap
)
119 xoap
= xva_getxoptattr(xvap
);
122 lrattr
->lr_attr_masksize
= xvap
->xva_mapsize
;
123 bitmap
= &lrattr
->lr_attr_bitmap
;
124 for (i
= 0; i
!= xvap
->xva_mapsize
; i
++, bitmap
++) {
125 *bitmap
= xvap
->xva_reqattrmap
[i
];
128 /* Now pack the attributes up in a single uint64_t */
129 attrs
= (uint64_t *)bitmap
;
131 scanstamp
= (caddr_t
)(crtime
+ 2);
133 if (XVA_ISSET_REQ(xvap
, XAT_READONLY
))
134 *attrs
|= (xoap
->xoa_readonly
== 0) ? 0 :
136 if (XVA_ISSET_REQ(xvap
, XAT_HIDDEN
))
137 *attrs
|= (xoap
->xoa_hidden
== 0) ? 0 :
139 if (XVA_ISSET_REQ(xvap
, XAT_SYSTEM
))
140 *attrs
|= (xoap
->xoa_system
== 0) ? 0 :
142 if (XVA_ISSET_REQ(xvap
, XAT_ARCHIVE
))
143 *attrs
|= (xoap
->xoa_archive
== 0) ? 0 :
145 if (XVA_ISSET_REQ(xvap
, XAT_IMMUTABLE
))
146 *attrs
|= (xoap
->xoa_immutable
== 0) ? 0 :
148 if (XVA_ISSET_REQ(xvap
, XAT_NOUNLINK
))
149 *attrs
|= (xoap
->xoa_nounlink
== 0) ? 0 :
151 if (XVA_ISSET_REQ(xvap
, XAT_APPENDONLY
))
152 *attrs
|= (xoap
->xoa_appendonly
== 0) ? 0 :
154 if (XVA_ISSET_REQ(xvap
, XAT_OPAQUE
))
155 *attrs
|= (xoap
->xoa_opaque
== 0) ? 0 :
157 if (XVA_ISSET_REQ(xvap
, XAT_NODUMP
))
158 *attrs
|= (xoap
->xoa_nodump
== 0) ? 0 :
160 if (XVA_ISSET_REQ(xvap
, XAT_AV_QUARANTINED
))
161 *attrs
|= (xoap
->xoa_av_quarantined
== 0) ? 0 :
163 if (XVA_ISSET_REQ(xvap
, XAT_AV_MODIFIED
))
164 *attrs
|= (xoap
->xoa_av_modified
== 0) ? 0 :
166 if (XVA_ISSET_REQ(xvap
, XAT_CREATETIME
))
167 ZFS_TIME_ENCODE(&xoap
->xoa_createtime
, crtime
);
168 if (XVA_ISSET_REQ(xvap
, XAT_AV_SCANSTAMP
))
169 bcopy(xoap
->xoa_av_scanstamp
, scanstamp
, AV_SCANSTAMP_SZ
);
170 if (XVA_ISSET_REQ(xvap
, XAT_REPARSE
))
171 *attrs
|= (xoap
->xoa_reparse
== 0) ? 0 :
173 if (XVA_ISSET_REQ(xvap
, XAT_OFFLINE
))
174 *attrs
|= (xoap
->xoa_offline
== 0) ? 0 :
176 if (XVA_ISSET_REQ(xvap
, XAT_SPARSE
))
177 *attrs
|= (xoap
->xoa_sparse
== 0) ? 0 :
182 zfs_log_fuid_ids(zfs_fuid_info_t
*fuidp
, void *start
)
185 uint64_t *fuidloc
= start
;
187 /* First copy in the ACE FUIDs */
188 for (zfuid
= list_head(&fuidp
->z_fuids
); zfuid
;
189 zfuid
= list_next(&fuidp
->z_fuids
, zfuid
)) {
190 *fuidloc
++ = zfuid
->z_logfuid
;
197 zfs_log_fuid_domains(zfs_fuid_info_t
*fuidp
, void *start
)
199 zfs_fuid_domain_t
*zdomain
;
201 /* now copy in the domain info, if any */
202 if (fuidp
->z_domain_str_sz
!= 0) {
203 for (zdomain
= list_head(&fuidp
->z_domains
); zdomain
;
204 zdomain
= list_next(&fuidp
->z_domains
, zdomain
)) {
205 bcopy((void *)zdomain
->z_domain
, start
,
206 strlen(zdomain
->z_domain
) + 1);
207 start
= (caddr_t
)start
+
208 strlen(zdomain
->z_domain
) + 1;
215 * zfs_log_create() is used to handle TX_CREATE, TX_CREATE_ATTR, TX_MKDIR,
216 * TX_MKDIR_ATTR and TX_MKXATTR
219 * TX_CREATE and TX_MKDIR are standard creates, but they may have FUID
220 * domain information appended prior to the name. In this case the
221 * uid/gid in the log record will be a log centric FUID.
223 * TX_CREATE_ACL_ATTR and TX_MKDIR_ACL_ATTR handle special creates that
224 * may contain attributes, ACL and optional fuid information.
226 * TX_CREATE_ACL and TX_MKDIR_ACL handle special creates that specify
227 * and ACL and normal users/groups in the ACEs.
229 * There may be an optional xvattr attribute information similar
230 * to zfs_log_setattr.
232 * Also, after the file name "domain" strings may be appended.
235 zfs_log_create(zilog_t
*zilog
, dmu_tx_t
*tx
, uint64_t txtype
,
236 znode_t
*dzp
, znode_t
*zp
, char *name
, vsecattr_t
*vsecp
,
237 zfs_fuid_info_t
*fuidp
, vattr_t
*vap
)
241 lr_acl_create_t
*lracl
;
242 xvattr_t
*xvap
= (xvattr_t
*)vap
;
248 size_t namesize
= strlen(name
) + 1;
251 if (zil_replaying(zilog
, tx
))
255 * If we have FUIDs present then add in space for
256 * domains and ACE fuid's if any.
259 fuidsz
+= fuidp
->z_domain_str_sz
;
260 fuidsz
+= fuidp
->z_fuid_cnt
* sizeof (uint64_t);
263 if (vap
->va_mask
& ATTR_XVATTR
)
264 xvatsize
= ZIL_XVAT_SIZE(xvap
->xva_mapsize
);
266 if ((int)txtype
== TX_CREATE_ATTR
|| (int)txtype
== TX_MKDIR_ATTR
||
267 (int)txtype
== TX_CREATE
|| (int)txtype
== TX_MKDIR
||
268 (int)txtype
== TX_MKXATTR
) {
269 txsize
= sizeof (*lr
) + namesize
+ fuidsz
+ xvatsize
;
270 lrsize
= sizeof (*lr
);
272 aclsize
= (vsecp
) ? vsecp
->vsa_aclentsz
: 0;
274 sizeof (lr_acl_create_t
) + namesize
+ fuidsz
+
275 ZIL_ACE_LENGTH(aclsize
) + xvatsize
;
276 lrsize
= sizeof (lr_acl_create_t
);
279 itx
= zil_itx_create(txtype
, txsize
);
281 lr
= (lr_create_t
*)&itx
->itx_lr
;
282 lr
->lr_doid
= dzp
->z_id
;
283 lr
->lr_foid
= zp
->z_id
;
284 lr
->lr_mode
= zp
->z_mode
;
285 if (!IS_EPHEMERAL(zp
->z_uid
)) {
286 lr
->lr_uid
= (uint64_t)zp
->z_uid
;
288 lr
->lr_uid
= fuidp
->z_fuid_owner
;
290 if (!IS_EPHEMERAL(zp
->z_gid
)) {
291 lr
->lr_gid
= (uint64_t)zp
->z_gid
;
293 lr
->lr_gid
= fuidp
->z_fuid_group
;
295 (void) sa_lookup(zp
->z_sa_hdl
, SA_ZPL_GEN(ZTOZSB(zp
)), &lr
->lr_gen
,
297 (void) sa_lookup(zp
->z_sa_hdl
, SA_ZPL_CRTIME(ZTOZSB(zp
)),
298 lr
->lr_crtime
, sizeof (uint64_t) * 2);
300 if (sa_lookup(zp
->z_sa_hdl
, SA_ZPL_RDEV(ZTOZSB(zp
)), &lr
->lr_rdev
,
301 sizeof (lr
->lr_rdev
)) != 0)
305 * Fill in xvattr info if any
307 if (vap
->va_mask
& ATTR_XVATTR
) {
308 zfs_log_xvattr((lr_attr_t
*)((caddr_t
)lr
+ lrsize
), xvap
);
309 end
= (caddr_t
)lr
+ lrsize
+ xvatsize
;
311 end
= (caddr_t
)lr
+ lrsize
;
314 /* Now fill in any ACL info */
317 lracl
= (lr_acl_create_t
*)&itx
->itx_lr
;
318 lracl
->lr_aclcnt
= vsecp
->vsa_aclcnt
;
319 lracl
->lr_acl_bytes
= aclsize
;
320 lracl
->lr_domcnt
= fuidp
? fuidp
->z_domain_cnt
: 0;
321 lracl
->lr_fuidcnt
= fuidp
? fuidp
->z_fuid_cnt
: 0;
322 if (vsecp
->vsa_aclflags
& VSA_ACE_ACLFLAGS
)
323 lracl
->lr_acl_flags
= (uint64_t)vsecp
->vsa_aclflags
;
325 lracl
->lr_acl_flags
= 0;
327 bcopy(vsecp
->vsa_aclentp
, end
, aclsize
);
328 end
= (caddr_t
)end
+ ZIL_ACE_LENGTH(aclsize
);
331 /* drop in FUID info */
333 end
= zfs_log_fuid_ids(fuidp
, end
);
334 end
= zfs_log_fuid_domains(fuidp
, end
);
337 * Now place file name in log record
339 bcopy(name
, end
, namesize
);
341 zil_itx_assign(zilog
, itx
, tx
);
345 * zfs_log_remove() handles both TX_REMOVE and TX_RMDIR transactions.
348 zfs_log_remove(zilog_t
*zilog
, dmu_tx_t
*tx
, uint64_t txtype
,
349 znode_t
*dzp
, char *name
, uint64_t foid
)
353 size_t namesize
= strlen(name
) + 1;
355 if (zil_replaying(zilog
, tx
))
358 itx
= zil_itx_create(txtype
, sizeof (*lr
) + namesize
);
359 lr
= (lr_remove_t
*)&itx
->itx_lr
;
360 lr
->lr_doid
= dzp
->z_id
;
361 bcopy(name
, (char *)(lr
+ 1), namesize
);
365 zil_itx_assign(zilog
, itx
, tx
);
369 * zfs_log_link() handles TX_LINK transactions.
372 zfs_log_link(zilog_t
*zilog
, dmu_tx_t
*tx
, uint64_t txtype
,
373 znode_t
*dzp
, znode_t
*zp
, char *name
)
377 size_t namesize
= strlen(name
) + 1;
379 if (zil_replaying(zilog
, tx
))
382 itx
= zil_itx_create(txtype
, sizeof (*lr
) + namesize
);
383 lr
= (lr_link_t
*)&itx
->itx_lr
;
384 lr
->lr_doid
= dzp
->z_id
;
385 lr
->lr_link_obj
= zp
->z_id
;
386 bcopy(name
, (char *)(lr
+ 1), namesize
);
388 zil_itx_assign(zilog
, itx
, tx
);
392 * zfs_log_symlink() handles TX_SYMLINK transactions.
395 zfs_log_symlink(zilog_t
*zilog
, dmu_tx_t
*tx
, uint64_t txtype
,
396 znode_t
*dzp
, znode_t
*zp
, char *name
, char *link
)
400 size_t namesize
= strlen(name
) + 1;
401 size_t linksize
= strlen(link
) + 1;
403 if (zil_replaying(zilog
, tx
))
406 itx
= zil_itx_create(txtype
, sizeof (*lr
) + namesize
+ linksize
);
407 lr
= (lr_create_t
*)&itx
->itx_lr
;
408 lr
->lr_doid
= dzp
->z_id
;
409 lr
->lr_foid
= zp
->z_id
;
410 lr
->lr_uid
= zp
->z_uid
;
411 lr
->lr_gid
= zp
->z_gid
;
412 lr
->lr_mode
= zp
->z_mode
;
413 (void) sa_lookup(zp
->z_sa_hdl
, SA_ZPL_GEN(ZTOZSB(zp
)), &lr
->lr_gen
,
415 (void) sa_lookup(zp
->z_sa_hdl
, SA_ZPL_CRTIME(ZTOZSB(zp
)),
416 lr
->lr_crtime
, sizeof (uint64_t) * 2);
417 bcopy(name
, (char *)(lr
+ 1), namesize
);
418 bcopy(link
, (char *)(lr
+ 1) + namesize
, linksize
);
420 zil_itx_assign(zilog
, itx
, tx
);
424 * zfs_log_rename() handles TX_RENAME transactions.
427 zfs_log_rename(zilog_t
*zilog
, dmu_tx_t
*tx
, uint64_t txtype
,
428 znode_t
*sdzp
, char *sname
, znode_t
*tdzp
, char *dname
, znode_t
*szp
)
432 size_t snamesize
= strlen(sname
) + 1;
433 size_t dnamesize
= strlen(dname
) + 1;
435 if (zil_replaying(zilog
, tx
))
438 itx
= zil_itx_create(txtype
, sizeof (*lr
) + snamesize
+ dnamesize
);
439 lr
= (lr_rename_t
*)&itx
->itx_lr
;
440 lr
->lr_sdoid
= sdzp
->z_id
;
441 lr
->lr_tdoid
= tdzp
->z_id
;
442 bcopy(sname
, (char *)(lr
+ 1), snamesize
);
443 bcopy(dname
, (char *)(lr
+ 1) + snamesize
, dnamesize
);
444 itx
->itx_oid
= szp
->z_id
;
446 zil_itx_assign(zilog
, itx
, tx
);
450 * zfs_log_write() handles TX_WRITE transactions.
452 ssize_t zfs_immediate_write_sz
= 32768;
455 zfs_log_write(zilog_t
*zilog
, dmu_tx_t
*tx
, int txtype
,
456 znode_t
*zp
, offset_t off
, ssize_t resid
, int ioflag
)
458 itx_wr_state_t write_state
;
461 ssize_t immediate_write_sz
;
463 if (zil_replaying(zilog
, tx
) || zp
->z_unlinked
)
466 immediate_write_sz
= (zilog
->zl_logbias
== ZFS_LOGBIAS_THROUGHPUT
)
467 ? 0 : zfs_immediate_write_sz
;
469 slogging
= spa_has_slogs(zilog
->zl_spa
) &&
470 (zilog
->zl_logbias
== ZFS_LOGBIAS_LATENCY
);
471 if (resid
> immediate_write_sz
&& !slogging
&& resid
<= zp
->z_blksz
)
472 write_state
= WR_INDIRECT
;
473 else if (ioflag
& (FSYNC
| FDSYNC
))
474 write_state
= WR_COPIED
;
476 write_state
= WR_NEED_COPY
;
478 if ((fsync_cnt
= (uintptr_t)tsd_get(zfs_fsyncer_key
)) != 0) {
479 (void) tsd_set(zfs_fsyncer_key
, (void *)(fsync_cnt
- 1));
488 * If the write would overflow the largest block then split it.
490 if (write_state
!= WR_INDIRECT
&& resid
> ZIL_MAX_LOG_DATA
)
491 len
= SPA_MAXBLOCKSIZE
>> 1;
495 itx
= zil_itx_create(txtype
, sizeof (*lr
) +
496 (write_state
== WR_COPIED
? len
: 0));
497 lr
= (lr_write_t
*)&itx
->itx_lr
;
498 if (write_state
== WR_COPIED
&& dmu_read(ZTOZSB(zp
)->z_os
,
499 zp
->z_id
, off
, len
, lr
+ 1, DMU_READ_NO_PREFETCH
) != 0) {
500 zil_itx_destroy(itx
);
501 itx
= zil_itx_create(txtype
, sizeof (*lr
));
502 lr
= (lr_write_t
*)&itx
->itx_lr
;
503 write_state
= WR_NEED_COPY
;
506 itx
->itx_wr_state
= write_state
;
507 if (write_state
== WR_NEED_COPY
)
509 lr
->lr_foid
= zp
->z_id
;
513 BP_ZERO(&lr
->lr_blkptr
);
515 itx
->itx_private
= ZTOZSB(zp
);
517 if (!(ioflag
& (FSYNC
| FDSYNC
)) && (zp
->z_sync_cnt
== 0) &&
519 itx
->itx_sync
= B_FALSE
;
521 zil_itx_assign(zilog
, itx
, tx
);
529 * zfs_log_truncate() handles TX_TRUNCATE transactions.
532 zfs_log_truncate(zilog_t
*zilog
, dmu_tx_t
*tx
, int txtype
,
533 znode_t
*zp
, uint64_t off
, uint64_t len
)
538 if (zil_replaying(zilog
, tx
) || zp
->z_unlinked
)
541 itx
= zil_itx_create(txtype
, sizeof (*lr
));
542 lr
= (lr_truncate_t
*)&itx
->itx_lr
;
543 lr
->lr_foid
= zp
->z_id
;
547 itx
->itx_sync
= (zp
->z_sync_cnt
!= 0);
548 zil_itx_assign(zilog
, itx
, tx
);
552 * zfs_log_setattr() handles TX_SETATTR transactions.
555 zfs_log_setattr(zilog_t
*zilog
, dmu_tx_t
*tx
, int txtype
,
556 znode_t
*zp
, vattr_t
*vap
, uint_t mask_applied
, zfs_fuid_info_t
*fuidp
)
560 xvattr_t
*xvap
= (xvattr_t
*)vap
;
561 size_t recsize
= sizeof (lr_setattr_t
);
564 if (zil_replaying(zilog
, tx
) || zp
->z_unlinked
)
568 * If XVATTR set, then log record size needs to allow
569 * for lr_attr_t + xvattr mask, mapsize and create time
570 * plus actual attribute values
572 if (vap
->va_mask
& ATTR_XVATTR
)
573 recsize
= sizeof (*lr
) + ZIL_XVAT_SIZE(xvap
->xva_mapsize
);
576 recsize
+= fuidp
->z_domain_str_sz
;
578 itx
= zil_itx_create(txtype
, recsize
);
579 lr
= (lr_setattr_t
*)&itx
->itx_lr
;
580 lr
->lr_foid
= zp
->z_id
;
581 lr
->lr_mask
= (uint64_t)mask_applied
;
582 lr
->lr_mode
= (uint64_t)vap
->va_mode
;
583 if ((mask_applied
& ATTR_UID
) && IS_EPHEMERAL(vap
->va_uid
))
584 lr
->lr_uid
= fuidp
->z_fuid_owner
;
586 lr
->lr_uid
= (uint64_t)vap
->va_uid
;
588 if ((mask_applied
& ATTR_GID
) && IS_EPHEMERAL(vap
->va_gid
))
589 lr
->lr_gid
= fuidp
->z_fuid_group
;
591 lr
->lr_gid
= (uint64_t)vap
->va_gid
;
593 lr
->lr_size
= (uint64_t)vap
->va_size
;
594 ZFS_TIME_ENCODE(&vap
->va_atime
, lr
->lr_atime
);
595 ZFS_TIME_ENCODE(&vap
->va_mtime
, lr
->lr_mtime
);
596 start
= (lr_setattr_t
*)(lr
+ 1);
597 if (vap
->va_mask
& ATTR_XVATTR
) {
598 zfs_log_xvattr((lr_attr_t
*)start
, xvap
);
599 start
= (caddr_t
)start
+ ZIL_XVAT_SIZE(xvap
->xva_mapsize
);
603 * Now stick on domain information if any on end
607 (void) zfs_log_fuid_domains(fuidp
, start
);
609 itx
->itx_sync
= (zp
->z_sync_cnt
!= 0);
610 zil_itx_assign(zilog
, itx
, tx
);
614 * zfs_log_acl() handles TX_ACL transactions.
617 zfs_log_acl(zilog_t
*zilog
, dmu_tx_t
*tx
, znode_t
*zp
,
618 vsecattr_t
*vsecp
, zfs_fuid_info_t
*fuidp
)
626 size_t aclbytes
= vsecp
->vsa_aclentsz
;
628 if (zil_replaying(zilog
, tx
) || zp
->z_unlinked
)
631 txtype
= (ZTOZSB(zp
)->z_version
< ZPL_VERSION_FUID
) ?
634 if (txtype
== TX_ACL
)
635 lrsize
= sizeof (*lr
);
637 lrsize
= sizeof (*lrv0
);
640 ((txtype
== TX_ACL
) ? ZIL_ACE_LENGTH(aclbytes
) : aclbytes
) +
641 (fuidp
? fuidp
->z_domain_str_sz
: 0) +
642 sizeof (uint64_t) * (fuidp
? fuidp
->z_fuid_cnt
: 0);
644 itx
= zil_itx_create(txtype
, txsize
);
646 lr
= (lr_acl_t
*)&itx
->itx_lr
;
647 lr
->lr_foid
= zp
->z_id
;
648 if (txtype
== TX_ACL
) {
649 lr
->lr_acl_bytes
= aclbytes
;
650 lr
->lr_domcnt
= fuidp
? fuidp
->z_domain_cnt
: 0;
651 lr
->lr_fuidcnt
= fuidp
? fuidp
->z_fuid_cnt
: 0;
652 if (vsecp
->vsa_mask
& VSA_ACE_ACLFLAGS
)
653 lr
->lr_acl_flags
= (uint64_t)vsecp
->vsa_aclflags
;
655 lr
->lr_acl_flags
= 0;
657 lr
->lr_aclcnt
= (uint64_t)vsecp
->vsa_aclcnt
;
659 if (txtype
== TX_ACL_V0
) {
660 lrv0
= (lr_acl_v0_t
*)lr
;
661 bcopy(vsecp
->vsa_aclentp
, (ace_t
*)(lrv0
+ 1), aclbytes
);
663 void *start
= (ace_t
*)(lr
+ 1);
665 bcopy(vsecp
->vsa_aclentp
, start
, aclbytes
);
667 start
= (caddr_t
)start
+ ZIL_ACE_LENGTH(aclbytes
);
670 start
= zfs_log_fuid_ids(fuidp
, start
);
671 (void) zfs_log_fuid_domains(fuidp
, start
);
675 itx
->itx_sync
= (zp
->z_sync_cnt
!= 0);
676 zil_itx_assign(zilog
, itx
, tx
);