Home
last modified time | relevance | path

Searched refs:zp (Results 1 – 25 of 53) sorted by relevance

123

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_byteswap.c173 zp->zp_gen = BSWAP_64(zp->zp_gen); in zfs_znode_byteswap()
174 zp->zp_mode = BSWAP_64(zp->zp_mode); in zfs_znode_byteswap()
175 zp->zp_size = BSWAP_64(zp->zp_size); in zfs_znode_byteswap()
176 zp->zp_parent = BSWAP_64(zp->zp_parent); in zfs_znode_byteswap()
177 zp->zp_links = BSWAP_64(zp->zp_links); in zfs_znode_byteswap()
178 zp->zp_xattr = BSWAP_64(zp->zp_xattr); in zfs_znode_byteswap()
179 zp->zp_rdev = BSWAP_64(zp->zp_rdev); in zfs_znode_byteswap()
180 zp->zp_flags = BSWAP_64(zp->zp_flags); in zfs_znode_byteswap()
181 zp->zp_uid = BSWAP_64(zp->zp_uid); in zfs_znode_byteswap()
182 zp->zp_gid = BSWAP_64(zp->zp_gid); in zfs_znode_byteswap()
[all …]
H A Dzfs_znode.c145 zp->z_blksz < zp->z_zfsvfs->z_max_blksz)) { in zfs_rangelock_cb()
163 ZTOV(zp)->v_data = zp; in zfs_znode_cache_constructor()
187 ASSERT(ZTOV(zp)->v_data == zp); in zfs_znode_cache_destructor()
754 ASSERT(zp->z_uid == 0 && zp->z_gid == 0); in zfs_znode_alloc()
1303 &zp->z_size, sizeof (zp->z_size)); in zfs_rezget()
1305 &zp->z_links, sizeof (zp->z_links)); in zfs_rezget()
1309 &zp->z_atime, sizeof (zp->z_atime)); in zfs_rezget()
1311 &zp->z_uid, sizeof (zp->z_uid)); in zfs_rezget()
1313 &zp->z_gid, sizeof (zp->z_gid)); in zfs_rezget()
1353 zp->z_unlinked = (zp->z_links == 0); in zfs_rezget()
[all …]
H A Dzfs_sa.c80 bufsz = zp->z_size; in zfs_sa_readlink()
87 if ((error = dmu_buf_hold(zp->z_zfsvfs->z_os, zp->z_id, in zfs_sa_readlink()
131 if (zp->z_is_sa) { in zfs_sa_get_scanstamp()
165 if (zp->z_is_sa) in zfs_sa_set_scanstamp()
218 if (zp->z_acl_cached == NULL || ZTOV(zp)->v_type == VLNK) in zfs_sa_upgrade()
266 &zp->z_size, 8); in zfs_sa_upgrade()
276 zp->z_atime, 16); in zfs_sa_upgrade()
284 &zp->z_links, 8); in zfs_sa_upgrade()
288 if (zp->z_vnode->v_type == VBLK || zp->z_vnode->v_type == VCHR) in zfs_sa_upgrade()
295 zfs_acl_xform(zp, zp->z_acl_cached, CRED()); in zfs_sa_upgrade()
[all …]
H A Dzfs_vnops.c209 if (!zfs_has_ctldir(zp) && zp->z_zfsvfs->z_vscan && in zfs_open()
247 if (!zfs_has_ctldir(zp) && zp->z_zfsvfs->z_vscan && in zfs_close()
1636 zp = dzp; in zfs_create()
1796 if (zp) in zfs_create()
3002 if (zp) { in zfs_setattr_dir()
3547 &zp->z_pflags, sizeof (zp->z_pflags)); in zfs_setattr()
3621 &zp->z_atime, sizeof (zp->z_atime)); in zfs_setattr()
3836 int error = zfs_zget(zp->z_zfsvfs, oidp, &zp); in zfs_rename_lock()
4364 &zp->z_size, sizeof (zp->z_size), tx); in zfs_symlink()
4879 if (zp->z_atime_dirty && zp->z_unlinked == 0) { in zfs_inactive()
[all …]
H A Dzfs_dir.c401 znode_t *zp; in zfs_dirlook() local
427 *vpp = ZTOV(zp); in zfs_dirlook()
440 *vpp = ZTOV(zp); in zfs_dirlook()
490 znode_t *zp; in zfs_unlinked_drain_task() local
662 if (ZTOV(zp)->v_type == VDIR && (zp->z_pflags & ZFS_XATTR)) { in zfs_rmnode()
791 zp->z_links++; in zfs_link_create()
793 &zp->z_links, sizeof (zp->z_links)); in zfs_link_create()
799 &zp->z_pflags, sizeof (zp->z_pflags)); in zfs_link_create()
831 value = zfs_dirent(zp, zp->z_mode); in zfs_link_create()
957 NULL, &zp->z_pflags, sizeof (zp->z_pflags)); in zfs_link_destroy()
[all …]
H A Dzfs_acl.c346 if (zp->z_is_sa) in zfs_external_acl()
358 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zp->z_zfsvfs), in zfs_external_acl()
387 if (zp->z_is_sa) { in zfs_acl_znode_info()
417 if (zp->z_is_sa) in zfs_znode_acl_version()
850 VERIFY(zfs_copy_ace_2_fuid(zp->z_zfsvfs, ZTOV(zp)->v_type, aclp, in zfs_acl_xform()
1132 error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DACL_ACES(zp->z_zfsvfs), in zfs_acl_node_read()
1183 zp->z_mode = zfs_mode_compute(zp->z_mode, aclp, in zfs_acl_chown_setattr()
1184 &zp->z_pflags, zp->z_uid, zp->z_gid); in zfs_acl_chown_setattr()
1220 zp->z_uid, zp->z_gid); in zfs_aclset_common()
1226 &zp->z_pflags, sizeof (zp->z_pflags)); in zfs_aclset_common()
[all …]
H A Dzfs_log.c294 lr->lr_foid = zp->z_id; in zfs_log_create()
308 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(zp->z_zfsvfs), &lr->lr_gen, in zfs_log_create()
310 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_CRTIME(zp->z_zfsvfs), in zfs_log_create()
313 if (sa_lookup(zp->z_sa_hdl, SA_ZPL_RDEV(zp->z_zfsvfs), &lr->lr_rdev, in zfs_log_create()
435 lr->lr_foid = zp->z_id; in zfs_log_symlink()
436 lr->lr_uid = zp->z_uid; in zfs_log_symlink()
437 lr->lr_gid = zp->z_gid; in zfs_log_symlink()
439 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(zp->z_zfsvfs), &lr->lr_gen, in zfs_log_symlink()
441 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_CRTIME(zp->z_zfsvfs), in zfs_log_symlink()
562 lr->lr_foid = zp->z_id; in zfs_log_truncate()
[all …]
H A Dzfs_replay.c597 znode_t *dzp, *zp; in zfs_replay_link() local
617 VN_RELE(ZTOV(zp)); in zfs_replay_link()
663 znode_t *zp; in zfs_replay_write() local
713 VN_RELE(ZTOV(zp)); in zfs_replay_write()
730 znode_t *zp; in zfs_replay_write2() local
745 zp->z_size = end; in zfs_replay_write2()
767 VN_RELE(ZTOV(zp)); in zfs_replay_write2()
777 znode_t *zp; in zfs_replay_truncate() local
806 znode_t *zp; in zfs_replay_setattr() local
862 znode_t *zp; in zfs_replay_acl_v0() local
[all …]
H A Dzio.c974 zio->io_prop = *zp; in zio_write()
1446 !zp->zp_encrypt) { in zio_write_bp_init()
1532 } else if (!zp->zp_dedup && !zp->zp_encrypt && in zio_write_compress()
1534 zp->zp_level == 0 && !DMU_OT_HAS_FILL(zp->zp_type) && in zio_write_compress()
1637 if (zp->zp_dedup) { in zio_write_compress()
2453 zio_prop_t zp; in zio_write_gang_block() local
2537 zp.zp_level = 0; in zio_write_gang_block()
2608 ASSERT(!zp->zp_dedup); in zio_nop_write()
2959 int p = zp->zp_copies; in zio_ddt_write()
3004 zio_prop_t czp = *zp; in zio_ddt_write()
[all …]
H A Dzfs_vfsops.c1777 znode_t *zp = NULL; in zfs_mountroot() local
2088 znode_t *zp; in zfs_statvfs() local
2103 if (zp->z_pflags & ZFS_PROJINHERIT && zp->z_projid && in zfs_statvfs()
2148 znode_t *zp; in zfsvfs_teardown() local
2194 for (zp = list_head(&zfsvfs->z_all_znodes); zp != NULL; in zfsvfs_teardown()
2195 zp = list_next(&zfsvfs->z_all_znodes, zp)) in zfsvfs_teardown()
2363 znode_t *zp; in zfs_vget() local
2440 *vpp = ZTOV(zp); in zfs_vget()
2475 znode_t *zp; in zfs_resume_fs() local
2504 for (zp = list_head(&zfsvfs->z_all_znodes); zp; in zfs_resume_fs()
[all …]
H A Dsa.c1534 mutex_enter(&zp->z_lock); in sa_add_projid()
1545 if (zp->z_is_sa) { in sa_add_projid()
1564 if (S_ISBLK(zp->z_mode) || S_ISCHR(zp->z_mode)) in sa_add_projid()
1601 zp->z_projid = projid; in sa_add_projid()
1603 links = zp->z_links; in sa_add_projid()
1609 &zp->z_size, 8); in sa_add_projid()
1615 &zp->z_pflags, 8); in sa_add_projid()
1624 if (S_ISBLK(zp->z_mode) || S_ISCHR(zp->z_mode)) in sa_add_projid()
1632 zfs_acl_xform(zp, zp->z_acl_cached, CRED()); in sa_add_projid()
1658 zp->z_is_sa = B_TRUE; in sa_add_projid()
[all …]
H A Ddmu.c1991 zp->zp_nopwrite = B_FALSE; in dmu_sync_late_arrival()
2036 zio_prop_t zp; in dmu_sync() local
2136 zp.zp_nopwrite = B_FALSE; in dmu_sync()
2381 zp->zp_compress = compress; in dmu_write_policy()
2382 zp->zp_checksum = checksum; in dmu_write_policy()
2384 zp->zp_level = level; in dmu_write_policy()
2386 zp->zp_dedup = dedup; in dmu_write_policy()
2388 zp->zp_nopwrite = nopwrite; in dmu_write_policy()
2389 zp->zp_zpl_smallblk = DMU_OT_IS_FILE(zp->zp_type) ? in dmu_write_policy()
2391 zp->zp_encrypt = encrypt; in dmu_write_policy()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/
H A Dtmzone.c51 register Tm_zone_t* zp; in tmzone() local
68 zp = tm_info.local; in tmzone()
72 if (zp->type) in tmzone()
73 prev = zp->type; in tmzone()
80 return zp; in tmzone()
82 if (zp->dst && zp->daylight && tmword(name, end, zp->daylight, NiL, 0)) in tmzone()
85 *dst = zp->dst; in tmzone()
86 return zp; in tmzone()
90 zp = tm_data.zone; in tmzone()
92 zp++; in tmzone()
[all …]
H A Dtminit.c179 Tm_zone_t* zp; in tmopt() local
344 for (zp = tm_data.zone; zp->standard; zp++) in tmlocal()
346 if (zp->type) in tmlocal()
347 t = zp->type; in tmlocal()
348 if (zp->west == n && zp->dst == m) in tmlocal()
399 for (zp = tm_data.zone; zp->standard; zp++) in tmlocal()
401 if (zp->type) in tmlocal()
402 t = zp->type; in tmlocal()
427 zp++; in tmlocal()
428 for (; !zp->type && zp->standard; zp++) in tmlocal()
[all …]
H A Dtmtype.c45 register Tm_zone_t* zp; in tmtype() local
49 zp = tm_info.local; in tmtype()
52 if ((t = zp->type) && tmword(s, e, t, NiL, 0)) return(zp); in tmtype()
53 if (zp == tm_info.local) zp = tm_data.zone; in tmtype()
54 else zp++; in tmtype()
55 } while (zp->standard); in tmtype()
H A Dtmxfmt.c117 Tm_zone_t* zp; in tmxfmt() local
474 if ((zp = tm->tm_zone) != tm_info.local) in tmxfmt()
475 for (; zp >= tm_data.zone; zp--) in tmxfmt()
476 if (p = zp->type) in tmxfmt()
478 else if (p = zp->type) in tmxfmt()
587 if ((zp = tmzone(arg, &f, 0, 0)) && !*f && tm->tm_zone != zp) in tmxfmt()
588 tm = tmxtm(tm, tmxtime(tm, tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0)), zp); in tmxfmt()
597 if ((zp = tmzone(arg, &f, 0, 0)) && !*f && tm->tm_zone != zp) in tmxfmt()
598 tm = tmxtm(tm, tmxtime(tm, tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0)), zp); in tmxfmt()
H A Dtmxscan.c184 Tm_zone_t* zp; in scan() local
374 if (zp = tmtype(s, &u)) in scan()
377 u = zp->type; in scan()
385 if ((zp = tmzone(s, &u, u, &m))) in scan()
388 set.zone = zp->west + m; in scan()
389 tm_info.date = zp; in scan()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dwaitpid.c99 register struct zombie* zp;
114 zp = zombies;
115 while (zp)
117 if (zp->pid >= 0 && (zp->pid == pid || pid <= 0))
120 else zombies = zp->next;
122 pid = zp->pid;
123 free(zp);
189 zp->pid = p;
190 zp->status = s;
191 zp->next = zombies;
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dzfs_znode.h82 #define ZFS_ATTR_SET(zp, attr, value, pflags, tx) \ argument
88 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zp->z_zfsvfs), \
262 #define ZFS_VERIFY_ZP(zp) \ argument
263 if ((zp)->z_sa_hdl == NULL) { \
264 ZFS_EXIT((zp)->z_zfsvfs); \
302 #define ZFS_ACCESSTIME_STAMP(zfsvfs, zp) \ argument
304 zfs_tstamp_update_setup(zp, ACCESSED, NULL, NULL, B_FALSE);
339 znode_t *dzp, znode_t *zp, char *name);
341 znode_t *dzp, znode_t *zp, char *name, char *link);
345 znode_t *zp, offset_t off, ssize_t len, int ioflag);
[all …]
/illumos-gate/usr/src/cmd/zic/
H A Dzic.c780 zp = &zones[i]; in associate()
782 zp->z_nrules = 0; in associate()
790 zp = &zones[i]; in associate()
798 zp = &zones[i]; in associate()
803 eat(zp->z_filename, zp->z_linenum); in associate()
804 zp->z_stdoff = gethms(zp->z_rule, in associate()
1676 eat(zp->z_filename, zp->z_linenum);
1701 eats(zp->z_filename, zp->z_linenum,
1738 eats(zp->z_filename, zp->z_linenum,
1779 eats(zp->z_filename, zp->z_linenum,
[all …]
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_vfsops.c574 struct zone *zp; in tmp_statvfs() local
584 zp = curproc->p_zone; in tmp_statvfs()
586 zp = tm->tm_vfsp->vfs_zone; in tmp_statvfs()
588 if (zp == NULL) in tmp_statvfs()
591 eff_zid = zp->zone_id; in tmp_statvfs()
622 zp->zone_max_swap_ctl != UINT64_MAX) { in tmp_statvfs()
630 mutex_enter(&zp->zone_mem_lock); in tmp_statvfs()
631 cap = zp->zone_max_swap_ctl; in tmp_statvfs()
632 used = zp->zone_max_swap; in tmp_statvfs()
633 mutex_exit(&zp->zone_mem_lock); in tmp_statvfs()
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c576 struct uproc *zp; in showproc() local
596 for (zp = up->p_child->p_sibling; zp; zp = zp->p_sibling) { in showproc()
597 showproc(zp); in showproc()
650 struct uproc *zp; in calctotals() local
673 for (zp = up->p_child->p_sibling; zp; zp = zp->p_sibling) in calctotals()
674 calctotals(zp); in calctotals()
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_swap.c462 struct zone *zp = curproc->p_zone; in swapctl() local
560 cap = zp->zone_max_swap_ctl; in swapctl()
561 used = zp->zone_max_swap; in swapctl()
562 mutex_exit(&zp->zone_mem_lock); in swapctl()
614 cap = zp->zone_max_swap_ctl; in swapctl()
615 used = zp->zone_max_swap; in swapctl()
866 cap = zp->zone_max_swap_ctl; in swapctl32()
867 used = zp->zone_max_swap; in swapctl32()
868 mutex_exit(&zp->zone_mem_lock); in swapctl32()
920 cap = zp->zone_max_swap_ctl; in swapctl32()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregclass.c193 Ctype_t* zp; in regclass() local
203 xp = zp = 0; in regclass()
208 if (!zp) in regclass()
211 zp = cp; in regclass()
220 if (!(cp = zp)) in regclass()
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dcong.c145 unsigned long zp; in rdsv3_cong_from_addr() local
160 zp = (unsigned long)kmem_zalloc(PAGE_SIZE, KM_NOSLEEP); in rdsv3_cong_from_addr()
161 if (zp == 0) in rdsv3_cong_from_addr()
163 map->m_page_addrs[i] = zp; in rdsv3_cong_from_addr()

123