Searched refs:zp (Results 1 - 25 of 42) sorted by relevance

12

/freebsd-10.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_byteswap.c161 znode_phys_t *zp = buf; local
165 zp->zp_crtime[0] = BSWAP_64(zp->zp_crtime[0]);
166 zp->zp_crtime[1] = BSWAP_64(zp->zp_crtime[1]);
167 zp->zp_atime[0] = BSWAP_64(zp->zp_atime[0]);
168 zp->zp_atime[1] = BSWAP_64(zp->zp_atime[1]);
169 zp
[all...]
H A Dzfs_sa.c71 zfs_sa_readlink(znode_t *zp, uio_t *uio) argument
73 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl);
77 bufsz = zp->z_size;
84 if ((error = dmu_buf_hold(zp->z_zfsvfs->z_os, zp->z_id,
95 zfs_sa_symlink(znode_t *zp, char *link, int len, dmu_tx_t *tx) argument
97 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl);
109 zfs_grow_blocksize(zp, len, tx);
110 VERIFY(0 == dmu_buf_hold(zp->z_zfsvfs->z_os,
111 zp
122 zfs_sa_get_scanstamp(znode_t *zp, xvattr_t *xvap) argument
156 zfs_sa_set_scanstamp(znode_t *zp, xvattr_t *xvap, dmu_tx_t *tx) argument
198 znode_t *zp = sa_get_userdata(hdl); local
319 zfs_sa_upgrade_txholds(dmu_tx_t *tx, znode_t *zp) argument
[all...]
H A Dzfs_znode.c120 znode_t *zp = buf; local
122 POINTER_INVALIDATE(&zp->z_zfsvfs);
124 list_link_init(&zp->z_link_node);
126 mutex_init(&zp->z_lock, NULL, MUTEX_DEFAULT, NULL);
127 rw_init(&zp->z_parent_lock, NULL, RW_DEFAULT, NULL);
128 rw_init(&zp->z_name_lock, NULL, RW_DEFAULT, NULL);
129 mutex_init(&zp->z_acl_lock, NULL, MUTEX_DEFAULT, NULL);
131 mutex_init(&zp->z_range_lock, NULL, MUTEX_DEFAULT, NULL);
132 avl_create(&zp->z_range_avl, zfs_range_compare,
135 zp
146 znode_t *zp = buf; local
481 znode_t *zp; local
555 zfs_znode_sa_init(zfsvfs_t *zfsvfs, znode_t *zp, dmu_buf_t *db, dmu_object_type_t obj_type, sa_handle_t *sa_hdl) argument
586 zfs_znode_dmu_fini(znode_t *zp) argument
618 znode_t *zp; local
1028 zfs_xvattr_set(znode_t *zp, xvattr_t *xvap, dmu_tx_t *tx) argument
1123 znode_t *zp; local
1248 zfs_rezget(znode_t *zp) argument
1361 zfs_znode_delete(znode_t *zp, dmu_tx_t *tx) argument
1380 zfs_zinactive(znode_t *zp) argument
1412 zfs_znode_free(znode_t *zp) argument
1434 zfs_tstamp_update_setup(znode_t *zp, uint_t flag, uint64_t mtime[2], uint64_t ctime[2], boolean_t have_tx) argument
1477 zfs_grow_blocksize(znode_t *zp, uint64_t size, dmu_tx_t *tx) argument
1528 zfs_extend(znode_t *zp, uint64_t end) argument
1606 zfs_free_range(znode_t *zp, uint64_t off, uint64_t len) argument
1653 zfs_trunc(znode_t *zp, uint64_t end) argument
1730 zfs_freesp(znode_t *zp, uint64_t off, uint64_t len, int flag, boolean_t log) argument
1809 znode_t *zp; local
[all...]
H A Dzfs_dir.c375 znode_t *zp; local
413 error = zfs_zget(zfsvfs, parent, &zp);
415 *vpp = ZTOV(zp);
426 error = zfs_dirent_lock(&dl, dzp, name, &zp, zf, deflg, rpnp);
428 *vpp = ZTOV(zp);
456 zfs_unlinked_add(znode_t *zp, dmu_tx_t *tx) argument
458 zfsvfs_t *zfsvfs = zp->z_zfsvfs;
460 ASSERT(zp->z_unlinked);
461 ASSERT(zp->z_links == 0);
464 zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp
477 znode_t *zp; local
588 zfs_rmnode(znode_t *zp) argument
693 zfs_dirent(znode_t *zp, uint64_t mode) argument
706 zfs_link_create(zfs_dirlock_t *dl, znode_t *zp, dmu_tx_t *tx, int flag) argument
777 zfs_dropname(zfs_dirlock_t *dl, znode_t *zp, znode_t *dzp, dmu_tx_t *tx, int flag) argument
808 zfs_link_destroy(zfs_dirlock_t *dl, znode_t *zp, dmu_tx_t *tx, int flag, boolean_t *unlinkedp) argument
926 zfs_make_xattrdir(znode_t *zp, vattr_t *vap, vnode_t **xvpp, cred_t *cr) argument
1012 zfs_get_xattrdir(znode_t *zp, vnode_t **xvpp, cred_t *cr, int flags) argument
1087 zfs_sticky_remove_access(znode_t *zdp, znode_t *zp, cred_t *cr) argument
[all...]
H A Dzfs_log.c240 znode_t *dzp, znode_t *zp, char *name, vsecattr_t *vsecp,
286 lr->lr_foid = zp->z_id;
287 lr->lr_mode = zp->z_mode;
288 if (!IS_EPHEMERAL(zp->z_uid)) {
289 lr->lr_uid = (uint64_t)zp->z_uid;
293 if (!IS_EPHEMERAL(zp->z_gid)) {
294 lr->lr_gid = (uint64_t)zp->z_gid;
298 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(zp->z_zfsvfs), &lr->lr_gen,
300 (void) sa_lookup(zp
239 zfs_log_create(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name, vsecattr_t *vsecp, zfs_fuid_info_t *fuidp, vattr_t *vap) argument
375 zfs_log_link(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name) argument
398 zfs_log_symlink(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name, char *link) argument
458 zfs_log_write(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp, offset_t off, ssize_t resid, int ioflag) argument
535 zfs_log_truncate(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp, uint64_t off, uint64_t len) argument
558 zfs_log_setattr(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp, vattr_t *vap, uint_t mask_applied, zfs_fuid_info_t *fuidp) argument
620 zfs_log_acl(zilog_t *zilog, dmu_tx_t *tx, znode_t *zp, vsecattr_t *vsecp, zfs_fuid_info_t *fuidp) argument
[all...]
H A Dzfs_vnops.c93 * must be checked with ZFS_VERIFY_ZP(zp). Both of these macros
99 * can be freed, so the zp may point to freed memory. Second, the last
185 znode_t *zp = VTOZ(*vpp); local
186 zfsvfs_t *zfsvfs = zp->z_zfsvfs;
189 ZFS_VERIFY_ZP(zp);
191 if ((flag & FWRITE) && (zp->z_pflags & ZFS_APPENDONLY) &&
197 if (!zfs_has_ctldir(zp) && zp->z_zfsvfs->z_vscan &&
198 ZTOV(zp)->v_type == VREG &&
199 !(zp
219 znode_t *zp = VTOZ(vp); local
251 znode_t *zp = VTOZ(vp); local
300 znode_t *zp; local
563 znode_t *zp = VTOZ(vp); local
633 znode_t *zp = VTOZ(vp); local
700 znode_t *zp = VTOZ(vp); local
852 znode_t *zp = VTOZ(vp); local
1218 znode_t *zp = zgd->zgd_private; local
1250 znode_t *zp; local
1373 znode_t *zp = VTOZ(vp); local
1635 znode_t *zp, *dzp = VTOZ(dvp); local
1895 znode_t *zp, *dzp = VTOZ(dvp); local
2142 znode_t *zp, *dzp = VTOZ(dvp); local
2333 znode_t *zp; local
2475 znode_t *zp = VTOZ(vp); local
2779 znode_t *zp = VTOZ(vp); local
2814 znode_t *zp = VTOZ(vp); local
3039 znode_t *zp = VTOZ(vp); local
3697 znode_t *zp = tdzp; local
4158 znode_t *zp, *dzp = VTOZ(dvp); local
4320 znode_t *zp = VTOZ(vp); local
4536 znode_t *zp = VTOZ(vp); local
4651 znode_t *zp = VTOZ(vp); local
4734 znode_t *zp = VTOZ(vp); local
4810 znode_t *zp = VTOZ(vp); local
4841 znode_t *zp = VTOZ(vp); local
4937 znode_t *zp = VTOZ(vp); local
5022 znode_t *zp = VTOZ(vp); local
5166 znode_t *zp = VTOZ(vp); local
5206 znode_t *zp = VTOZ(vp); local
5272 znode_t *zp, *xzp; local
5355 znode_t *zp = VTOZ(vp); local
5373 znode_t *zp = VTOZ(vp); local
5408 znode_t *zp = VTOZ(vp); local
5742 znode_t *zp = VTOZ(vp); local
5878 znode_t *zp = VTOZ(vp); local
6071 znode_t *zp = VTOZ(vp); local
6147 znode_t *zp = VTOZ(vp); local
6602 znode_t *zp = VTOZ(vp); local
[all...]
H A Dzfs_acl.c330 zfs_external_acl(znode_t *zp) argument
335 if (zp->z_is_sa)
347 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zp->z_zfsvfs),
355 VERIFY(zp->z_is_sa && error == ENOENT);
367 zfs_acl_znode_info(znode_t *zp, int *aclsize, int *aclcount, argument
370 zfsvfs_t *zfsvfs = zp->z_zfsvfs;
375 ASSERT(MUTEX_HELD(&zp->z_acl_lock));
376 if (zp->z_is_sa) {
377 if ((error = sa_size(zp
402 zfs_znode_acl_version(znode_t *zp) argument
444 zfs_acl_version_zp(znode_t *zp) argument
802 zfs_acl_xform(znode_t *zp, zfs_acl_t *aclp, cred_t *cr) argument
1061 zfs_acl_node_read(znode_t *zp, boolean_t have_lock, zfs_acl_t **aclpp, boolean_t will_modify) argument
1159 zfs_acl_chown_setattr(znode_t *zp) argument
1181 zfs_aclset_common(znode_t *zp, zfs_acl_t *aclp, cred_t *cr, dmu_tx_t *tx) argument
1443 zfs_acl_chmod_setattr(znode_t *zp, zfs_acl_t **aclp, uint64_t mode) argument
1774 zfs_getacl(znode_t *zp, vsecattr_t *vsecp, boolean_t skipaclchk, cred_t *cr) argument
1929 zfs_setacl(znode_t *zp, vsecattr_t *vsecp, boolean_t skipaclchk, cred_t *cr) argument
2036 zfs_zaccess_dataset_check(znode_t *zp, uint32_t v4_mode) argument
2107 zfs_zaccess_aces_check(znode_t *zp, uint32_t *working_mode, boolean_t anyaccess, cred_t *cr) argument
2230 zfs_has_access(znode_t *zp, cred_t *cr) argument
2244 zfs_zaccess_common(znode_t *zp, uint32_t v4_mode, uint32_t *working_mode, boolean_t *check_privs, boolean_t skipaclchk, cred_t *cr) argument
2280 zfs_zaccess_append(znode_t *zp, uint32_t *working_mode, boolean_t *check_privs, cred_t *cr) argument
2364 zfs_zaccess(znode_t *zp, int mode, int flags, boolean_t skipaclchk, cred_t *cr) argument
2527 zfs_zaccess_rwx(znode_t *zp, mode_t mode, int flags, cred_t *cr) argument
2536 zfs_zaccess_unix(znode_t *zp, mode_t mode, cred_t *cr) argument
2544 zfs_delete_final_check(znode_t *zp, znode_t *dzp, mode_t available_perms, cred_t *cr) argument
2596 zfs_zaccess_delete(znode_t *dzp, znode_t *zp, cred_t *cr) argument
[all...]
H A Dzfs_rlock.c37 * rl = zfs_range_lock(zp, off, len, lock_type);
104 zfs_range_lock_writer(znode_t *zp, rl_t *new) argument
106 avl_tree_t *tree = &zp->z_range_avl;
125 if (zp->z_vnode) { /* caller is ZPL */
131 new->r_off = zp->z_size;
138 end_size = MAX(zp->z_size, new->r_off + len);
139 if (end_size > zp->z_blksz && (!ISP2(zp->z_blksz) ||
140 zp->z_blksz < zp
356 zfs_range_lock_reader(znode_t *zp, rl_t *new) argument
426 zfs_range_lock(znode_t *zp, uint64_t off, uint64_t len, rl_type_t type) argument
463 zfs_range_unlock_reader(znode_t *zp, rl_t *remove) argument
532 znode_t *zp = rl->r_zp; local
570 znode_t *zp = rl->r_zp; local
[all...]
H A Dzfs_replay.c603 znode_t *dzp, *zp; local
614 if ((error = zfs_zget(zfsvfs, lr->lr_link_obj, &zp)) != 0) {
628 vn_lock(ZTOV(zp), LK_EXCLUSIVE | LK_RETRY);
629 error = VOP_LINK(ZTOV(dzp), ZTOV(zp), &cn /*,vflg*/);
630 VOP_UNLOCK(ZTOV(zp), 0);
633 VN_RELE(ZTOV(zp));
713 znode_t *zp; local
721 if ((error = zfs_zget(zfsvfs, lr->lr_foid, &zp)) != 0) {
756 if (zp->z_size < eod)
760 error = vn_rdwr(UIO_WRITE, ZTOV(zp), dat
778 znode_t *zp; local
824 znode_t *zp; local
855 znode_t *zp; local
917 znode_t *zp; local
964 znode_t *zp; local
[all...]
H A Dzio.c767 void *data, uint64_t size, const zio_prop_t *zp,
774 ASSERT(zp->zp_checksum >= ZIO_CHECKSUM_OFF &&
775 zp->zp_checksum < ZIO_CHECKSUM_FUNCTIONS &&
776 zp->zp_compress >= ZIO_COMPRESS_OFF &&
777 zp->zp_compress < ZIO_COMPRESS_FUNCTIONS &&
778 DMU_OT_IS_VALID(zp->zp_type) &&
779 zp->zp_level < 32 &&
780 zp->zp_copies > 0 &&
781 zp->zp_copies <= spa_max_replication(spa));
790 zio->io_prop = *zp;
766 zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, void *data, uint64_t size, const zio_prop_t *zp, zio_done_func_t *ready, zio_done_func_t *physdone, zio_done_func_t *done, void *private, zio_priority_t priority, enum zio_flag flags, const zbookmark_phys_t *zb) argument
1168 zio_prop_t *zp = &zio->io_prop; local
2014 zio_prop_t zp; local
2099 zio_prop_t *zp = &zio->io_prop; local
2355 zio_prop_t *zp = &zio->io_prop; local
2386 zio_prop_t *zp = &zio->io_prop; local
[all...]
H A Dzfs_vfsops.c827 zfs_owner_overquota(zfsvfs_t *zfsvfs, znode_t *zp, boolean_t isgroup) argument
834 fuid = isgroup ? zp->z_gid : zp->z_uid;
1420 znode_t *zp = NULL; local
1477 if (error = zfs_zget(zfsvfs, zfsvfs->z_root, &zp)) {
1482 vp = ZTOV(zp);
1784 znode_t *zp; local
1831 for (zp = list_head(&zfsvfs->z_all_znodes); zp != NULL;
1832 zp
2004 znode_t *zp; local
2056 znode_t *zp; local
2188 znode_t *zp; local
[all...]
H A Ddmu.c1560 zio_prop_t *zp, zbookmark_phys_t *zb)
1580 zgd->zgd_db->db_data, zgd->zgd_db->db_size, zp,
1622 zio_prop_t zp; local
1633 dmu_write_policy(os, dn, db->db_level, WP_DMU_SYNC, &zp);
1640 return (dmu_sync_late_arrival(pio, os, done, zgd, &zp, &zb));
1664 return (dmu_sync_late_arrival(pio, os, done, zgd, &zp, &zb));
1707 zp.zp_nopwrite = B_FALSE;
1734 DBUF_IS_L2COMPRESSIBLE(db), &zp, dmu_sync_ready,
1807 dmu_write_policy(objset_t *os, dnode_t *dn, int level, int wp, zio_prop_t *zp) argument
1905 zp
1559 dmu_sync_late_arrival(zio_t *pio, objset_t *os, dmu_sync_cb_t *done, zgd_t *zgd, zio_prop_t *zp, zbookmark_phys_t *zb) argument
[all...]
H A Dzfs_fuid.c389 zfs_fuid_map_ids(znode_t *zp, cred_t *cr, uid_t *uidp, uid_t *gidp) argument
391 *uidp = zfs_fuid_map_id(zp->z_zfsvfs, zp->z_uid, cr, ZFS_OWNER);
392 *gidp = zfs_fuid_map_id(zp->z_zfsvfs, zp->z_gid, cr, ZFS_GROUP);
H A Dzap.c79 zap_phys_t *zp; local
89 zp = zap_f_phys(zap);
95 zp->zap_block_type = ZBT_HEADER;
96 zp->zap_magic = ZAP_MAGIC;
98 zp->zap_ptrtbl.zt_shift = ZAP_EMBEDDED_PTRTBL_SHIFT(zap);
100 zp->zap_freeblk = 2; /* block 1 will be the first leaf */
101 zp->zap_num_leafs = 1;
102 zp->zap_num_entries = 0;
103 zp->zap_salt = zap->zap_salt;
104 zp
[all...]
/freebsd-10.3-release/lib/libc/gen/
H A Dtimezone.c109 struct zone *zp; local
112 for (zp = zonetab; zp->offset != -1;++zp) /* static tables */
113 if (zp->offset == zone) {
114 if (dst && zp->dlzone)
115 return(zp->dlzone);
116 if (!dst && zp->stdzone)
117 return(zp->stdzone);
/freebsd-10.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dzfs_znode.h64 #define ZFS_ATTR_SET(zp, attr, value, pflags, tx) \
70 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zp->z_zfsvfs), \
234 ZTOV(znode_t *zp) argument
236 vnode_t *vp = zp->z_vnode;
238 ASSERT(vp == NULL || vp->v_data == NULL || vp->v_data == zp);
244 znode_t *zp = (znode_t *)vp->v_data; local
246 ASSERT(zp == NULL || zp->z_vnode == NULL || zp
[all...]
H A Dzfs_rlock.h63 rl_t *zfs_range_lock(znode_t *zp, uint64_t off, uint64_t len, rl_type_t type);
H A Dzfs_fuid.h111 extern void zfs_fuid_map_ids(struct znode *zp, cred_t *cr,
H A Darc.h144 const zio_prop_t *zp, arc_done_func_t *ready, arc_done_func_t *physdone,
H A Dzfs_acl.h215 extern boolean_t zfs_has_access(struct znode *zp, cred_t *cr);
/freebsd-10.3-release/libexec/bootpd/tools/bootptest/
H A Dprint-bootp.c435 u_char *zp; /* points one past last non-zero byte */
441 for (zp = ep; zp > bp; zp--) {
442 if (zp[-1] != 0)
447 if (zp == bp) {
454 if (zp + 2 > ep)
455 zp = ep; /* print them all normally */
458 while (bp < zp) {
463 if (zp < e
434 u_char *zp; /* points one past last non-zero byte */ local
[all...]
/freebsd-10.3-release/contrib/tzcode/zic/
H A Dzic.c139 static void outzone(const struct zone * zp, int ntzones);
152 const struct zone * zp, int ntzones);
728 register struct zone * zp; local
763 zp = &zones[i];
764 zp->z_rules = NULL;
765 zp->z_nrules = 0;
773 zp = &zones[i];
774 if (strcmp(zp->z_rule, rp->r_name) != 0)
776 zp->z_rules = rp;
777 zp
1894 register const struct zone * zp; local
1976 register const struct zone * zp; local
[all...]
/freebsd-10.3-release/usr.sbin/tzsetup/
H A Dtzsetup.c391 struct zone *zp; local
408 zp = malloc(sizeof(*zp));
409 if (zp == 0)
410 errx(1, "malloc(%zu)", sizeof(*zp));
415 zp->descr = strdup(descr);
416 if (zp->descr == NULL)
418 zp->filename = strdup(file);
419 if (zp->filename == NULL)
421 zp
521 struct zone *zp, *zp2; local
876 struct zone *zp = dmi->data; local
[all...]
/freebsd-10.3-release/tools/tools/zfsboottest/
H A Dzfsboottest.c72 const znode_phys_t *zp = (const znode_phys_t *) dn->dn_bonus; local
77 if (off + n > zp->zp_size)
78 n = zp->zp_size - off;
/freebsd-10.3-release/sys/cddl/contrib/opensolaris/common/zfs/
H A Dzfs_ioctl_compat.c760 zfs_iocparm_t zp;
765 zp.zfs_cmd = (uint64_t)zc;
766 zp.zfs_cmd_size = sizeof(zfs_cmd_t);
767 zp.zfs_ioctl_version = ZFS_IOCVER_CURRENT;
768 return (ioctl(fd, ncmd, &zp));
771 zp.zfs_cmd = (uint64_t)zc;
772 zp.zfs_cmd_size = sizeof(zfs_cmd_edbp_t);
773 zp.zfs_ioctl_version = ZFS_IOCVER_EDBP;
774 return (ioctl(fd, ncmd, &zp));
777 zp
[all...]

Completed in 292 milliseconds

12