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.
23 * Copyright (c) 2015 by Delphix. All rights reserved.
24 * Copyright (c) 2014 Integros [integros.com]
27 #include <sys/types.h>
28 #include <sys/param.h>
29 #include <sys/systm.h>
30 #include <sys/sysmacros.h>
31 #include <sys/cmn_err.h>
33 #include <sys/thread.h>
36 #include <sys/zfs_znode.h>
37 #include <sys/zfs_dir.h>
39 #include <sys/zil_impl.h>
40 #include <sys/byteorder.h>
41 #include <sys/policy.h>
47 #include <sys/zfs_fuid.h>
49 #include <sys/dsl_dataset.h>
52 * These zfs_log_* functions must be called within a dmu tx, in one
53 * of 2 contexts depending on zilog->z_replay:
57 * We need to record the transaction so that if it is committed to
58 * the Intent Log then it can be replayed. An intent log transaction
59 * structure (itx_t) is allocated and all the information necessary to
60 * possibly replay the transaction is saved in it. The itx is then assigned
61 * a sequence number and inserted in the in-memory list anchored in the zilog.
65 * We need to mark the intent log record as replayed in the log header.
66 * This is done in the same transaction as the replay so that they
71 zfs_log_create_txtype(zil_create_t type
, vsecattr_t
*vsecp
, vattr_t
*vap
)
73 int isxvattr
= (vap
->va_mask
& AT_XVATTR
);
76 if (vsecp
== NULL
&& !isxvattr
)
78 if (vsecp
&& isxvattr
)
79 return (TX_CREATE_ACL_ATTR
);
81 return (TX_CREATE_ACL
);
83 return (TX_CREATE_ATTR
);
86 if (vsecp
== NULL
&& !isxvattr
)
88 if (vsecp
&& isxvattr
)
89 return (TX_MKDIR_ACL_ATTR
);
91 return (TX_MKDIR_ACL
);
93 return (TX_MKDIR_ATTR
);
102 * build up the log data necessary for logging xvattr_t
103 * First lr_attr_t is initialized. following the lr_attr_t
104 * is the mapsize and attribute bitmap copied from the xvattr_t.
105 * Following the bitmap and bitmapsize two 64 bit words are reserved
106 * for the create time which may be set. Following the create time
107 * records a single 64 bit integer which has the bits to set on
108 * replay for the xvattr.
111 zfs_log_xvattr(lr_attr_t
*lrattr
, xvattr_t
*xvap
)
120 xoap
= xva_getxoptattr(xvap
);
123 lrattr
->lr_attr_masksize
= xvap
->xva_mapsize
;
124 bitmap
= &lrattr
->lr_attr_bitmap
;
125 for (i
= 0; i
!= xvap
->xva_mapsize
; i
++, bitmap
++) {
126 *bitmap
= xvap
->xva_reqattrmap
[i
];
129 /* Now pack the attributes up in a single uint64_t */
130 attrs
= (uint64_t *)bitmap
;
132 scanstamp
= (caddr_t
)(crtime
+ 2);
134 if (XVA_ISSET_REQ(xvap
, XAT_READONLY
))
135 *attrs
|= (xoap
->xoa_readonly
== 0) ? 0 :
137 if (XVA_ISSET_REQ(xvap
, XAT_HIDDEN
))
138 *attrs
|= (xoap
->xoa_hidden
== 0) ? 0 :
140 if (XVA_ISSET_REQ(xvap
, XAT_SYSTEM
))
141 *attrs
|= (xoap
->xoa_system
== 0) ? 0 :
143 if (XVA_ISSET_REQ(xvap
, XAT_ARCHIVE
))
144 *attrs
|= (xoap
->xoa_archive
== 0) ? 0 :
146 if (XVA_ISSET_REQ(xvap
, XAT_IMMUTABLE
))
147 *attrs
|= (xoap
->xoa_immutable
== 0) ? 0 :
149 if (XVA_ISSET_REQ(xvap
, XAT_NOUNLINK
))
150 *attrs
|= (xoap
->xoa_nounlink
== 0) ? 0 :
152 if (XVA_ISSET_REQ(xvap
, XAT_APPENDONLY
))
153 *attrs
|= (xoap
->xoa_appendonly
== 0) ? 0 :
155 if (XVA_ISSET_REQ(xvap
, XAT_OPAQUE
))
156 *attrs
|= (xoap
->xoa_opaque
== 0) ? 0 :
158 if (XVA_ISSET_REQ(xvap
, XAT_NODUMP
))
159 *attrs
|= (xoap
->xoa_nodump
== 0) ? 0 :
161 if (XVA_ISSET_REQ(xvap
, XAT_AV_QUARANTINED
))
162 *attrs
|= (xoap
->xoa_av_quarantined
== 0) ? 0 :
164 if (XVA_ISSET_REQ(xvap
, XAT_AV_MODIFIED
))
165 *attrs
|= (xoap
->xoa_av_modified
== 0) ? 0 :
167 if (XVA_ISSET_REQ(xvap
, XAT_CREATETIME
))
168 ZFS_TIME_ENCODE(&xoap
->xoa_createtime
, crtime
);
169 if (XVA_ISSET_REQ(xvap
, XAT_AV_SCANSTAMP
))
170 bcopy(xoap
->xoa_av_scanstamp
, scanstamp
, AV_SCANSTAMP_SZ
);
171 if (XVA_ISSET_REQ(xvap
, XAT_REPARSE
))
172 *attrs
|= (xoap
->xoa_reparse
== 0) ? 0 :
174 if (XVA_ISSET_REQ(xvap
, XAT_OFFLINE
))
175 *attrs
|= (xoap
->xoa_offline
== 0) ? 0 :
177 if (XVA_ISSET_REQ(xvap
, XAT_SPARSE
))
178 *attrs
|= (xoap
->xoa_sparse
== 0) ? 0 :
183 zfs_log_fuid_ids(zfs_fuid_info_t
*fuidp
, void *start
)
186 uint64_t *fuidloc
= start
;
188 /* First copy in the ACE FUIDs */
189 for (zfuid
= list_head(&fuidp
->z_fuids
); zfuid
;
190 zfuid
= list_next(&fuidp
->z_fuids
, zfuid
)) {
191 *fuidloc
++ = zfuid
->z_logfuid
;
198 zfs_log_fuid_domains(zfs_fuid_info_t
*fuidp
, void *start
)
200 zfs_fuid_domain_t
*zdomain
;
202 /* now copy in the domain info, if any */
203 if (fuidp
->z_domain_str_sz
!= 0) {
204 for (zdomain
= list_head(&fuidp
->z_domains
); zdomain
;
205 zdomain
= list_next(&fuidp
->z_domains
, zdomain
)) {
206 bcopy((void *)zdomain
->z_domain
, start
,
207 strlen(zdomain
->z_domain
) + 1);
208 start
= (caddr_t
)start
+
209 strlen(zdomain
->z_domain
) + 1;
216 * Handles TX_CREATE, TX_CREATE_ATTR, TX_MKDIR, TX_MKDIR_ATTR and
217 * TK_MKXATTR transactions.
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 size_t aclsize
= (vsecp
!= NULL
) ? vsecp
->vsa_aclentsz
: 0;
245 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
& AT_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
);
273 sizeof (lr_acl_create_t
) + namesize
+ fuidsz
+
274 ZIL_ACE_LENGTH(aclsize
) + xvatsize
;
275 lrsize
= sizeof (lr_acl_create_t
);
278 itx
= zil_itx_create(txtype
, txsize
);
280 lr
= (lr_create_t
*)&itx
->itx_lr
;
281 lr
->lr_doid
= dzp
->z_id
;
282 lr
->lr_foid
= zp
->z_id
;
283 lr
->lr_mode
= zp
->z_mode
;
284 if (!IS_EPHEMERAL(zp
->z_uid
)) {
285 lr
->lr_uid
= (uint64_t)zp
->z_uid
;
287 lr
->lr_uid
= fuidp
->z_fuid_owner
;
289 if (!IS_EPHEMERAL(zp
->z_gid
)) {
290 lr
->lr_gid
= (uint64_t)zp
->z_gid
;
292 lr
->lr_gid
= fuidp
->z_fuid_group
;
294 (void) sa_lookup(zp
->z_sa_hdl
, SA_ZPL_GEN(zp
->z_zfsvfs
), &lr
->lr_gen
,
296 (void) sa_lookup(zp
->z_sa_hdl
, SA_ZPL_CRTIME(zp
->z_zfsvfs
),
297 lr
->lr_crtime
, sizeof (uint64_t) * 2);
299 if (sa_lookup(zp
->z_sa_hdl
, SA_ZPL_RDEV(zp
->z_zfsvfs
), &lr
->lr_rdev
,
300 sizeof (lr
->lr_rdev
)) != 0)
304 * Fill in xvattr info if any
306 if (vap
->va_mask
& AT_XVATTR
) {
307 zfs_log_xvattr((lr_attr_t
*)((caddr_t
)lr
+ lrsize
), xvap
);
308 end
= (caddr_t
)lr
+ lrsize
+ xvatsize
;
310 end
= (caddr_t
)lr
+ lrsize
;
313 /* Now fill in any ACL info */
316 lracl
= (lr_acl_create_t
*)&itx
->itx_lr
;
317 lracl
->lr_aclcnt
= vsecp
->vsa_aclcnt
;
318 lracl
->lr_acl_bytes
= aclsize
;
319 lracl
->lr_domcnt
= fuidp
? fuidp
->z_domain_cnt
: 0;
320 lracl
->lr_fuidcnt
= fuidp
? fuidp
->z_fuid_cnt
: 0;
321 if (vsecp
->vsa_aclflags
& VSA_ACE_ACLFLAGS
)
322 lracl
->lr_acl_flags
= (uint64_t)vsecp
->vsa_aclflags
;
324 lracl
->lr_acl_flags
= 0;
326 bcopy(vsecp
->vsa_aclentp
, end
, aclsize
);
327 end
= (caddr_t
)end
+ ZIL_ACE_LENGTH(aclsize
);
330 /* drop in FUID info */
332 end
= zfs_log_fuid_ids(fuidp
, end
);
333 end
= zfs_log_fuid_domains(fuidp
, end
);
336 * Now place file name in log record
338 bcopy(name
, end
, namesize
);
340 zil_itx_assign(zilog
, itx
, tx
);
344 * Handles both TX_REMOVE and TX_RMDIR transactions.
347 zfs_log_remove(zilog_t
*zilog
, dmu_tx_t
*tx
, uint64_t txtype
,
348 znode_t
*dzp
, char *name
, uint64_t foid
)
352 size_t namesize
= strlen(name
) + 1;
354 if (zil_replaying(zilog
, tx
))
357 itx
= zil_itx_create(txtype
, sizeof (*lr
) + namesize
);
358 lr
= (lr_remove_t
*)&itx
->itx_lr
;
359 lr
->lr_doid
= dzp
->z_id
;
360 bcopy(name
, (char *)(lr
+ 1), namesize
);
364 zil_itx_assign(zilog
, itx
, tx
);
368 * Handles TX_LINK transactions.
371 zfs_log_link(zilog_t
*zilog
, dmu_tx_t
*tx
, uint64_t txtype
,
372 znode_t
*dzp
, znode_t
*zp
, char *name
)
376 size_t namesize
= strlen(name
) + 1;
378 if (zil_replaying(zilog
, tx
))
381 itx
= zil_itx_create(txtype
, sizeof (*lr
) + namesize
);
382 lr
= (lr_link_t
*)&itx
->itx_lr
;
383 lr
->lr_doid
= dzp
->z_id
;
384 lr
->lr_link_obj
= zp
->z_id
;
385 bcopy(name
, (char *)(lr
+ 1), namesize
);
387 zil_itx_assign(zilog
, itx
, tx
);
391 * Handles TX_SYMLINK transactions.
394 zfs_log_symlink(zilog_t
*zilog
, dmu_tx_t
*tx
, uint64_t txtype
,
395 znode_t
*dzp
, znode_t
*zp
, char *name
, char *link
)
399 size_t namesize
= strlen(name
) + 1;
400 size_t linksize
= strlen(link
) + 1;
402 if (zil_replaying(zilog
, tx
))
405 itx
= zil_itx_create(txtype
, sizeof (*lr
) + namesize
+ linksize
);
406 lr
= (lr_create_t
*)&itx
->itx_lr
;
407 lr
->lr_doid
= dzp
->z_id
;
408 lr
->lr_foid
= zp
->z_id
;
409 lr
->lr_uid
= zp
->z_uid
;
410 lr
->lr_gid
= zp
->z_gid
;
411 lr
->lr_mode
= zp
->z_mode
;
412 (void) sa_lookup(zp
->z_sa_hdl
, SA_ZPL_GEN(zp
->z_zfsvfs
), &lr
->lr_gen
,
414 (void) sa_lookup(zp
->z_sa_hdl
, SA_ZPL_CRTIME(zp
->z_zfsvfs
),
415 lr
->lr_crtime
, sizeof (uint64_t) * 2);
416 bcopy(name
, (char *)(lr
+ 1), namesize
);
417 bcopy(link
, (char *)(lr
+ 1) + namesize
, linksize
);
419 zil_itx_assign(zilog
, itx
, tx
);
423 * Handles TX_RENAME transactions.
426 zfs_log_rename(zilog_t
*zilog
, dmu_tx_t
*tx
, uint64_t txtype
,
427 znode_t
*sdzp
, char *sname
, znode_t
*tdzp
, char *dname
, znode_t
*szp
)
431 size_t snamesize
= strlen(sname
) + 1;
432 size_t dnamesize
= strlen(dname
) + 1;
434 if (zil_replaying(zilog
, tx
))
437 itx
= zil_itx_create(txtype
, sizeof (*lr
) + snamesize
+ dnamesize
);
438 lr
= (lr_rename_t
*)&itx
->itx_lr
;
439 lr
->lr_sdoid
= sdzp
->z_id
;
440 lr
->lr_tdoid
= tdzp
->z_id
;
441 bcopy(sname
, (char *)(lr
+ 1), snamesize
);
442 bcopy(dname
, (char *)(lr
+ 1) + snamesize
, dnamesize
);
443 itx
->itx_oid
= szp
->z_id
;
445 zil_itx_assign(zilog
, itx
, tx
);
449 * Handles TX_WRITE transactions.
451 ssize_t zfs_immediate_write_sz
= 32768;
454 zfs_log_write(zilog_t
*zilog
, dmu_tx_t
*tx
, int txtype
,
455 znode_t
*zp
, offset_t off
, ssize_t resid
, int ioflag
)
457 uint32_t blocksize
= zp
->z_blksz
;
458 itx_wr_state_t write_state
;
461 if (zil_replaying(zilog
, tx
) || zp
->z_unlinked
)
464 if (zilog
->zl_logbias
== ZFS_LOGBIAS_THROUGHPUT
)
465 write_state
= WR_INDIRECT
;
466 else if (!spa_has_slogs(zilog
->zl_spa
) &&
467 resid
>= zfs_immediate_write_sz
)
468 write_state
= WR_INDIRECT
;
469 else if (ioflag
& (FSYNC
| FDSYNC
))
470 write_state
= WR_COPIED
;
472 write_state
= WR_NEED_COPY
;
474 if ((fsync_cnt
= (uintptr_t)tsd_get(zfs_fsyncer_key
)) != 0) {
475 (void) tsd_set(zfs_fsyncer_key
, (void *)(fsync_cnt
- 1));
481 itx_wr_state_t wr_state
= write_state
;
484 if (wr_state
== WR_COPIED
&& resid
> ZIL_MAX_COPIED_DATA
)
485 wr_state
= WR_NEED_COPY
;
486 else if (wr_state
== WR_INDIRECT
)
487 len
= MIN(blocksize
- P2PHASE(off
, blocksize
), resid
);
489 itx
= zil_itx_create(txtype
, sizeof (*lr
) +
490 (wr_state
== WR_COPIED
? len
: 0));
491 lr
= (lr_write_t
*)&itx
->itx_lr
;
492 if (wr_state
== WR_COPIED
&& dmu_read(zp
->z_zfsvfs
->z_os
,
493 zp
->z_id
, off
, len
, lr
+ 1, DMU_READ_NO_PREFETCH
) != 0) {
494 zil_itx_destroy(itx
);
495 itx
= zil_itx_create(txtype
, sizeof (*lr
));
496 lr
= (lr_write_t
*)&itx
->itx_lr
;
497 wr_state
= WR_NEED_COPY
;
500 itx
->itx_wr_state
= wr_state
;
501 lr
->lr_foid
= zp
->z_id
;
505 BP_ZERO(&lr
->lr_blkptr
);
507 itx
->itx_private
= zp
->z_zfsvfs
;
509 if (!(ioflag
& (FSYNC
| FDSYNC
)) && (zp
->z_sync_cnt
== 0) &&
511 itx
->itx_sync
= B_FALSE
;
513 zil_itx_assign(zilog
, itx
, tx
);
521 * Handles TX_TRUNCATE transactions.
524 zfs_log_truncate(zilog_t
*zilog
, dmu_tx_t
*tx
, int txtype
,
525 znode_t
*zp
, uint64_t off
, uint64_t len
)
530 if (zil_replaying(zilog
, tx
) || zp
->z_unlinked
)
533 itx
= zil_itx_create(txtype
, sizeof (*lr
));
534 lr
= (lr_truncate_t
*)&itx
->itx_lr
;
535 lr
->lr_foid
= zp
->z_id
;
539 itx
->itx_sync
= (zp
->z_sync_cnt
!= 0);
540 zil_itx_assign(zilog
, itx
, tx
);
544 * Handles TX_SETATTR transactions.
547 zfs_log_setattr(zilog_t
*zilog
, dmu_tx_t
*tx
, int txtype
,
548 znode_t
*zp
, vattr_t
*vap
, uint_t mask_applied
, zfs_fuid_info_t
*fuidp
)
552 xvattr_t
*xvap
= (xvattr_t
*)vap
;
553 size_t recsize
= sizeof (lr_setattr_t
);
556 if (zil_replaying(zilog
, tx
) || zp
->z_unlinked
)
560 * If XVATTR set, then log record size needs to allow
561 * for lr_attr_t + xvattr mask, mapsize and create time
562 * plus actual attribute values
564 if (vap
->va_mask
& AT_XVATTR
)
565 recsize
= sizeof (*lr
) + ZIL_XVAT_SIZE(xvap
->xva_mapsize
);
568 recsize
+= fuidp
->z_domain_str_sz
;
570 itx
= zil_itx_create(txtype
, recsize
);
571 lr
= (lr_setattr_t
*)&itx
->itx_lr
;
572 lr
->lr_foid
= zp
->z_id
;
573 lr
->lr_mask
= (uint64_t)mask_applied
;
574 lr
->lr_mode
= (uint64_t)vap
->va_mode
;
575 if ((mask_applied
& AT_UID
) && IS_EPHEMERAL(vap
->va_uid
))
576 lr
->lr_uid
= fuidp
->z_fuid_owner
;
578 lr
->lr_uid
= (uint64_t)vap
->va_uid
;
580 if ((mask_applied
& AT_GID
) && IS_EPHEMERAL(vap
->va_gid
))
581 lr
->lr_gid
= fuidp
->z_fuid_group
;
583 lr
->lr_gid
= (uint64_t)vap
->va_gid
;
585 lr
->lr_size
= (uint64_t)vap
->va_size
;
586 ZFS_TIME_ENCODE(&vap
->va_atime
, lr
->lr_atime
);
587 ZFS_TIME_ENCODE(&vap
->va_mtime
, lr
->lr_mtime
);
588 start
= (lr_setattr_t
*)(lr
+ 1);
589 if (vap
->va_mask
& AT_XVATTR
) {
590 zfs_log_xvattr((lr_attr_t
*)start
, xvap
);
591 start
= (caddr_t
)start
+ ZIL_XVAT_SIZE(xvap
->xva_mapsize
);
595 * Now stick on domain information if any on end
599 (void) zfs_log_fuid_domains(fuidp
, start
);
601 itx
->itx_sync
= (zp
->z_sync_cnt
!= 0);
602 zil_itx_assign(zilog
, itx
, tx
);
606 * Handles TX_ACL transactions.
609 zfs_log_acl(zilog_t
*zilog
, dmu_tx_t
*tx
, znode_t
*zp
,
610 vsecattr_t
*vsecp
, zfs_fuid_info_t
*fuidp
)
618 size_t aclbytes
= vsecp
->vsa_aclentsz
;
620 if (zil_replaying(zilog
, tx
) || zp
->z_unlinked
)
623 txtype
= (zp
->z_zfsvfs
->z_version
< ZPL_VERSION_FUID
) ?
626 if (txtype
== TX_ACL
)
627 lrsize
= sizeof (*lr
);
629 lrsize
= sizeof (*lrv0
);
632 ((txtype
== TX_ACL
) ? ZIL_ACE_LENGTH(aclbytes
) : aclbytes
) +
633 (fuidp
? fuidp
->z_domain_str_sz
: 0) +
634 sizeof (uint64_t) * (fuidp
? fuidp
->z_fuid_cnt
: 0);
636 itx
= zil_itx_create(txtype
, txsize
);
638 lr
= (lr_acl_t
*)&itx
->itx_lr
;
639 lr
->lr_foid
= zp
->z_id
;
640 if (txtype
== TX_ACL
) {
641 lr
->lr_acl_bytes
= aclbytes
;
642 lr
->lr_domcnt
= fuidp
? fuidp
->z_domain_cnt
: 0;
643 lr
->lr_fuidcnt
= fuidp
? fuidp
->z_fuid_cnt
: 0;
644 if (vsecp
->vsa_mask
& VSA_ACE_ACLFLAGS
)
645 lr
->lr_acl_flags
= (uint64_t)vsecp
->vsa_aclflags
;
647 lr
->lr_acl_flags
= 0;
649 lr
->lr_aclcnt
= (uint64_t)vsecp
->vsa_aclcnt
;
651 if (txtype
== TX_ACL_V0
) {
652 lrv0
= (lr_acl_v0_t
*)lr
;
653 bcopy(vsecp
->vsa_aclentp
, (ace_t
*)(lrv0
+ 1), aclbytes
);
655 void *start
= (ace_t
*)(lr
+ 1);
657 bcopy(vsecp
->vsa_aclentp
, start
, aclbytes
);
659 start
= (caddr_t
)start
+ ZIL_ACE_LENGTH(aclbytes
);
662 start
= zfs_log_fuid_ids(fuidp
, start
);
663 (void) zfs_log_fuid_domains(fuidp
, start
);
667 itx
->itx_sync
= (zp
->z_sync_cnt
!= 0);
668 zil_itx_assign(zilog
, itx
, tx
);