/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zfs_byteswap.c | 161 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 D | zfs_sa.c | 72 zfs_sa_readlink(znode_t *zp, uio_t *uio) argument 74 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); 78 bufsz = zp->z_size; 85 if ((error = dmu_buf_hold(zp->z_zfsvfs->z_os, zp->z_id, 96 zfs_sa_symlink(znode_t *zp, char *link, int len, dmu_tx_t *tx) argument 98 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); 110 zfs_grow_blocksize(zp, len, tx); 111 VERIFY(0 == dmu_buf_hold(zp->z_zfsvfs->z_os, 112 zp 123 zfs_sa_get_scanstamp(znode_t *zp, xvattr_t *xvap) argument 157 zfs_sa_set_scanstamp(znode_t *zp, xvattr_t *xvap, dmu_tx_t *tx) argument 199 znode_t *zp = sa_get_userdata(hdl); local 320 zfs_sa_upgrade_txholds(dmu_tx_t *tx, znode_t *zp) argument [all...] |
H A D | zfs_znode.c | 119 znode_t *zp = buf; local 121 POINTER_INVALIDATE(&zp->z_zfsvfs); 123 list_link_init(&zp->z_link_node); 125 mutex_init(&zp->z_lock, NULL, MUTEX_DEFAULT, NULL); 126 rw_init(&zp->z_parent_lock, NULL, RW_DEFAULT, NULL); 127 rw_init(&zp->z_name_lock, NULL, RW_DEFAULT, NULL); 128 mutex_init(&zp->z_acl_lock, NULL, MUTEX_DEFAULT, NULL); 130 mutex_init(&zp->z_range_lock, NULL, MUTEX_DEFAULT, NULL); 131 avl_create(&zp->z_range_avl, zfs_range_compare, 134 zp 145 znode_t *zp = buf; local 480 znode_t *zp; local 554 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 585 zfs_znode_dmu_fini(znode_t *zp) argument 617 znode_t *zp; local 1027 zfs_xvattr_set(znode_t *zp, xvattr_t *xvap, dmu_tx_t *tx) argument 1122 znode_t *zp; local 1246 zfs_rezget(znode_t *zp) argument 1349 zfs_znode_delete(znode_t *zp, dmu_tx_t *tx) argument 1368 zfs_zinactive(znode_t *zp) argument 1400 zfs_znode_free(znode_t *zp) argument 1422 zfs_tstamp_update_setup(znode_t *zp, uint_t flag, uint64_t mtime[2], uint64_t ctime[2], boolean_t have_tx) argument 1465 zfs_grow_blocksize(znode_t *zp, uint64_t size, dmu_tx_t *tx) argument 1516 zfs_extend(znode_t *zp, uint64_t end) argument 1589 zfs_free_range(znode_t *zp, uint64_t off, uint64_t len) argument 1636 zfs_trunc(znode_t *zp, uint64_t end) argument 1712 zfs_freesp(znode_t *zp, uint64_t off, uint64_t len, int flag, boolean_t log) argument 1791 znode_t *zp; local [all...] |
H A D | zfs_dir.c | 375 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 587 zfs_rmnode(znode_t *zp) argument 692 zfs_dirent(znode_t *zp, uint64_t mode) argument 705 zfs_link_create(zfs_dirlock_t *dl, znode_t *zp, dmu_tx_t *tx, int flag) argument 776 zfs_dropname(zfs_dirlock_t *dl, znode_t *zp, znode_t *dzp, dmu_tx_t *tx, int flag) argument 807 zfs_link_destroy(zfs_dirlock_t *dl, znode_t *zp, dmu_tx_t *tx, int flag, boolean_t *unlinkedp) argument 925 zfs_make_xattrdir(znode_t *zp, vattr_t *vap, vnode_t **xvpp, cred_t *cr) argument 1011 zfs_get_xattrdir(znode_t *zp, vnode_t **xvpp, cred_t *cr, int flags) argument 1086 zfs_sticky_remove_access(znode_t *zdp, znode_t *zp, cred_t *cr) argument [all...] |
H A D | zfs_log.c | 239 znode_t *dzp, znode_t *zp, char *name, vsecattr_t *vsecp, 285 lr->lr_foid = zp->z_id; 286 lr->lr_mode = zp->z_mode; 287 if (!IS_EPHEMERAL(zp->z_uid)) { 288 lr->lr_uid = (uint64_t)zp->z_uid; 292 if (!IS_EPHEMERAL(zp->z_gid)) { 293 lr->lr_gid = (uint64_t)zp->z_gid; 297 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(zp->z_zfsvfs), &lr->lr_gen, 299 (void) sa_lookup(zp 238 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 374 zfs_log_link(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name) argument 397 zfs_log_symlink(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, char *name, char *link) argument 457 zfs_log_write(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp, offset_t off, ssize_t resid, int ioflag) argument 534 zfs_log_truncate(zilog_t *zilog, dmu_tx_t *tx, int txtype, znode_t *zp, uint64_t off, uint64_t len) argument 557 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 619 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 D | zfs_vnops.c | 91 * must be checked with ZFS_VERIFY_ZP(zp). Both of these macros 97 * can be freed, so the zp may point to freed memory. Second, the last 183 znode_t *zp = VTOZ(*vpp); local 184 zfsvfs_t *zfsvfs = zp->z_zfsvfs; 187 ZFS_VERIFY_ZP(zp); 189 if ((flag & FWRITE) && (zp->z_pflags & ZFS_APPENDONLY) && 195 if (!zfs_has_ctldir(zp) && zp->z_zfsvfs->z_vscan && 196 ZTOV(zp)->v_type == VREG && 197 !(zp 217 znode_t *zp = VTOZ(vp); local 249 znode_t *zp = VTOZ(vp); local 293 znode_t *zp; local 503 znode_t *zp = VTOZ(vp); local 573 znode_t *zp = VTOZ(vp); local 640 znode_t *zp = VTOZ(vp); local 792 znode_t *zp = VTOZ(vp); local 1152 znode_t *zp = zgd->zgd_private; local 1187 znode_t *zp; local 1310 znode_t *zp = VTOZ(vp); local 1572 znode_t *zp, *dzp = VTOZ(dvp); local 1832 znode_t *zp, *dzp = VTOZ(dvp); local 2072 znode_t *zp, *dzp = VTOZ(dvp); local 2263 znode_t *zp; local 2405 znode_t *zp = VTOZ(vp); local 2708 znode_t *zp = VTOZ(vp); local 2743 znode_t *zp = VTOZ(vp); local 2968 znode_t *zp = VTOZ(vp); local 3626 znode_t *zp = tdzp; local 4080 znode_t *zp, *dzp = VTOZ(dvp); local 4242 znode_t *zp = VTOZ(vp); local 4454 znode_t *zp = VTOZ(vp); local 4569 znode_t *zp = VTOZ(vp); local 4652 znode_t *zp = VTOZ(vp); local 4728 znode_t *zp = VTOZ(vp); local 4759 znode_t *zp = VTOZ(vp); local 4855 znode_t *zp = VTOZ(vp); local 4940 znode_t *zp = VTOZ(vp); local 5084 znode_t *zp = VTOZ(vp); local 5124 znode_t *zp = VTOZ(vp); local 5190 znode_t *zp, *xzp; local 5273 znode_t *zp = VTOZ(vp); local 5291 znode_t *zp = VTOZ(vp); local 5326 znode_t *zp = VTOZ(vp); local 5660 znode_t *zp = VTOZ(vp); local 5796 znode_t *zp = VTOZ(vp); local 5989 znode_t *zp = VTOZ(vp); local 6065 znode_t *zp = VTOZ(vp); local 6458 znode_t *zp = VTOZ(vp); local [all...] |
H A D | zfs_acl.c | 330 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 D | zfs_rlock.c | 37 * 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 D | zfs_replay.c | 603 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 913 znode_t *zp; local 961 znode_t *zp; local [all...] |
H A D | zio.c | 672 void *data, uint64_t size, const zio_prop_t *zp, 679 ASSERT(zp->zp_checksum >= ZIO_CHECKSUM_OFF && 680 zp->zp_checksum < ZIO_CHECKSUM_FUNCTIONS && 681 zp->zp_compress >= ZIO_COMPRESS_OFF && 682 zp->zp_compress < ZIO_COMPRESS_FUNCTIONS && 683 DMU_OT_IS_VALID(zp->zp_type) && 684 zp->zp_level < 32 && 685 zp->zp_copies > 0 && 686 zp->zp_copies <= spa_max_replication(spa)); 695 zio->io_prop = *zp; 671 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_t *zb) argument 1037 zio_prop_t *zp = &zio->io_prop; local 1856 zio_prop_t zp; local 1932 zio_prop_t *zp = &zio->io_prop; local 2188 zio_prop_t *zp = &zio->io_prop; local 2220 zio_prop_t *zp = &zio->io_prop; local [all...] |
H A D | zfs_vfsops.c | 850 zfs_owner_overquota(zfsvfs_t *zfsvfs, znode_t *zp, boolean_t isgroup) argument 857 fuid = isgroup ? zp->z_gid : zp->z_uid; 1481 znode_t *zp = NULL; local 1538 if (error = zfs_zget(zfsvfs, zfsvfs->z_root, &zp)) { 1543 vp = ZTOV(zp); 1835 znode_t *zp; local 1882 for (zp = list_head(&zfsvfs->z_all_znodes); zp != NULL; 1883 zp 2055 znode_t *zp; local 2109 znode_t *zp; local 2241 znode_t *zp; local [all...] |
H A D | dmu.c | 1417 zio_prop_t *zp, zbookmark_t *zb) 1437 zgd->zgd_db->db_data, zgd->zgd_db->db_size, zp, 1479 zio_prop_t zp; local 1490 dmu_write_policy(os, dn, db->db_level, WP_DMU_SYNC, &zp); 1497 return (dmu_sync_late_arrival(pio, os, done, zgd, &zp, &zb)); 1521 return (dmu_sync_late_arrival(pio, os, done, zgd, &zp, &zb)); 1552 zp.zp_nopwrite = B_FALSE; 1578 DBUF_IS_L2COMPRESSIBLE(db), &zp, dmu_sync_ready, 1634 dmu_write_policy(objset_t *os, dnode_t *dn, int level, int wp, zio_prop_t *zp) argument 1715 zp 1416 dmu_sync_late_arrival(zio_t *pio, objset_t *os, dmu_sync_cb_t *done, zgd_t *zgd, zio_prop_t *zp, zbookmark_t *zb) argument [all...] |
H A D | zfs_fuid.c | 389 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 D | zap.c | 78 zap_phys_t *zp; local 89 zp = zap->zap_f.zap_phys; 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-9.3-release/lib/libc/gen/ |
H A D | timezone.c | 109 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-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | zfs_znode.h | 64 #define ZFS_ATTR_SET(zp, attr, value, pflags, tx) \ 70 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zp->z_zfsvfs), \ 236 ZTOV(znode_t *zp) argument 238 vnode_t *vp = zp->z_vnode; 240 ASSERT(vp == NULL || vp->v_data == NULL || vp->v_data == zp); 246 znode_t *zp = (znode_t *)vp->v_data; local 248 ASSERT(zp == NULL || zp->z_vnode == NULL || zp [all...] |
H A D | zfs_rlock.h | 63 rl_t *zfs_range_lock(znode_t *zp, uint64_t off, uint64_t len, rl_type_t type);
|
H A D | zfs_fuid.h | 111 extern void zfs_fuid_map_ids(struct znode *zp, cred_t *cr,
|
H A D | arc.h | 111 const zio_prop_t *zp, arc_done_func_t *ready, arc_done_func_t *physdone,
|
H A D | zfs_acl.h | 215 extern boolean_t zfs_has_access(struct znode *zp, cred_t *cr);
|
/freebsd-9.3-release/libexec/bootpd/tools/bootptest/ |
H A D | print-bootp.c | 435 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-9.3-release/contrib/tzcode/zic/ |
H A D | zic.c | 139 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-9.3-release/usr.sbin/tzsetup/ |
H A D | tzsetup.c | 391 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-9.3-release/tools/tools/zfsboottest/ |
H A D | zfsboottest.c | 72 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-9.3-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_htable.c | 521 iphtable_t *iph, zp, *nextiph; local 546 bzero((char *)&zp, sizeof(zp)); 547 nextiph = &zp;
|