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.c161 znode_phys_t *zp = buf; in zfs_znode_byteswap() local
165 zp->zp_crtime[0] = BSWAP_64(zp->zp_crtime[0]); in zfs_znode_byteswap()
166 zp->zp_crtime[1] = BSWAP_64(zp->zp_crtime[1]); in zfs_znode_byteswap()
167 zp->zp_atime[0] = BSWAP_64(zp->zp_atime[0]); in zfs_znode_byteswap()
168 zp->zp_atime[1] = BSWAP_64(zp->zp_atime[1]); in zfs_znode_byteswap()
169 zp->zp_mtime[0] = BSWAP_64(zp->zp_mtime[0]); in zfs_znode_byteswap()
170 zp->zp_mtime[1] = BSWAP_64(zp->zp_mtime[1]); in zfs_znode_byteswap()
171 zp->zp_ctime[0] = BSWAP_64(zp->zp_ctime[0]); in zfs_znode_byteswap()
172 zp->zp_ctime[1] = BSWAP_64(zp->zp_ctime[1]); in zfs_znode_byteswap()
173 zp->zp_gen = BSWAP_64(zp->zp_gen); in zfs_znode_byteswap()
[all …]
H A Dzfs_znode.c129 znode_t *zp = arg; in zfs_rangelock_cb() local
136 new->lr_offset = zp->z_size; in zfs_rangelock_cb()
143 uint64_t end_size = MAX(zp->z_size, new->lr_offset + new->lr_length); in zfs_rangelock_cb()
144 if (end_size > zp->z_blksz && (!ISP2(zp->z_blksz) || in zfs_rangelock_cb()
145 zp->z_blksz < zp->z_zfsvfs->z_max_blksz)) { in zfs_rangelock_cb()
155 znode_t *zp = buf; in zfs_znode_cache_constructor() local
157 ASSERT(!POINTER_IS_VALID(zp->z_zfsvfs)); in zfs_znode_cache_constructor()
159 zp->z_vnode = vn_alloc(kmflags); in zfs_znode_cache_constructor()
160 if (zp->z_vnode == NULL) { in zfs_znode_cache_constructor()
163 ZTOV(zp)->v_data = zp; in zfs_znode_cache_constructor()
[all …]
H A Dzfs_sa.c74 zfs_sa_readlink(znode_t *zp, uio_t *uio) in zfs_sa_readlink() argument
76 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); in zfs_sa_readlink()
80 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()
98 zfs_sa_symlink(znode_t *zp, char *link, int len, dmu_tx_t *tx) in zfs_sa_symlink() argument
100 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); in zfs_sa_symlink()
111 zfs_grow_blocksize(zp, len, tx); in zfs_sa_symlink()
112 VERIFY(0 == dmu_buf_hold(zp->z_zfsvfs->z_os, in zfs_sa_symlink()
113 zp->z_id, 0, FTAG, &dbp, DMU_READ_NO_PREFETCH)); in zfs_sa_symlink()
124 zfs_sa_get_scanstamp(znode_t *zp, xvattr_t *xvap) in zfs_sa_get_scanstamp() argument
[all …]
H A Dzfs_vnops.c197 znode_t *zp = VTOZ(*vpp); in zfs_open() local
198 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_open()
201 ZFS_VERIFY_ZP(zp); in zfs_open()
203 if ((flag & FWRITE) && (zp->z_pflags & ZFS_APPENDONLY) && in zfs_open()
209 if (!zfs_has_ctldir(zp) && zp->z_zfsvfs->z_vscan && in zfs_open()
210 ZTOV(zp)->v_type == VREG && in zfs_open()
211 !(zp->z_pflags & ZFS_AV_QUARANTINED) && zp->z_size > 0) { in zfs_open()
220 atomic_inc_32(&zp->z_sync_cnt); in zfs_open()
231 znode_t *zp = VTOZ(vp); in zfs_close() local
232 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_close()
[all …]
H A Dzfs_dir.c401 znode_t *zp; in zfs_dirlook() local
425 error = zfs_zget(zfsvfs, parent, &zp); in zfs_dirlook()
427 *vpp = ZTOV(zp); in zfs_dirlook()
438 error = zfs_dirent_lock(&dl, dzp, name, &zp, zf, deflg, rpnp); in zfs_dirlook()
440 *vpp = ZTOV(zp); in zfs_dirlook()
468 zfs_unlinked_add(znode_t *zp, dmu_tx_t *tx) in zfs_unlinked_add() argument
470 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_unlinked_add()
472 ASSERT(zp->z_unlinked); in zfs_unlinked_add()
473 ASSERT(zp->z_links == 0); in zfs_unlinked_add()
476 zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)); in zfs_unlinked_add()
[all …]
H A Dzfs_acl.c341 zfs_external_acl(znode_t *zp) in zfs_external_acl() argument
346 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()
366 VERIFY(zp->z_is_sa && error == ENOENT); in zfs_external_acl()
378 zfs_acl_znode_info(znode_t *zp, int *aclsize, int *aclcount, in zfs_acl_znode_info() argument
381 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_acl_znode_info()
386 ASSERT(RW_ISWRITER(&zp->z_acl_lock)); in zfs_acl_znode_info()
387 if (zp->z_is_sa) { in zfs_acl_znode_info()
388 if ((error = sa_size(zp->z_sa_hdl, SA_ZPL_DACL_ACES(zfsvfs), in zfs_acl_znode_info()
392 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DACL_COUNT(zfsvfs), in zfs_acl_znode_info()
[all …]
H A Dzfs_log.c248 znode_t *dzp, znode_t *zp, char *name, vsecattr_t *vsecp, in zfs_log_create() argument
294 lr->lr_foid = zp->z_id; in zfs_log_create()
296 LR_FOID_SET_SLOTS(lr->lr_foid, zp->z_dnodesize >> DNODE_SHIFT); in zfs_log_create()
297 lr->lr_mode = zp->z_mode; in zfs_log_create()
298 if (!IS_EPHEMERAL(zp->z_uid)) { in zfs_log_create()
299 lr->lr_uid = (uint64_t)zp->z_uid; in zfs_log_create()
303 if (!IS_EPHEMERAL(zp->z_gid)) { in zfs_log_create()
304 lr->lr_gid = (uint64_t)zp->z_gid; 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()
[all …]
H A Dzfs_replay.c597 znode_t *dzp, *zp; in zfs_replay_link() local
607 if ((error = zfs_zget(zfsvfs, lr->lr_link_obj, &zp)) != 0) { in zfs_replay_link()
615 error = VOP_LINK(ZTOV(dzp), ZTOV(zp), name, kcred, NULL, vflg); in zfs_replay_link()
617 VN_RELE(ZTOV(zp)); in zfs_replay_link()
663 znode_t *zp; in zfs_replay_write() local
671 if ((error = zfs_zget(zfsvfs, lr->lr_foid, &zp)) != 0) { in zfs_replay_write()
706 if (zp->z_size < eod) in zfs_replay_write()
710 error = vn_rdwr(UIO_WRITE, ZTOV(zp), data, length, offset, in zfs_replay_write()
713 VN_RELE(ZTOV(zp)); in zfs_replay_write()
730 znode_t *zp; in zfs_replay_write2() local
[all …]
H A Dzio.c949 abd_t *data, uint64_t lsize, uint64_t psize, const zio_prop_t *zp, in zio_write() argument
957 ASSERT(zp->zp_checksum >= ZIO_CHECKSUM_OFF && in zio_write()
958 zp->zp_checksum < ZIO_CHECKSUM_FUNCTIONS && in zio_write()
959 zp->zp_compress >= ZIO_COMPRESS_OFF && in zio_write()
960 zp->zp_compress < ZIO_COMPRESS_FUNCTIONS && in zio_write()
961 DMU_OT_IS_VALID(zp->zp_type) && in zio_write()
962 zp->zp_level < 32 && in zio_write()
963 zp->zp_copies > 0 && in zio_write()
964 zp->zp_copies <= spa_max_replication(spa)); in zio_write()
974 zio->io_prop = *zp; in zio_write()
[all …]
H A Dzfs_vfsops.c1583 zfs_statfs_project(zfsvfs_t *zfsvfs, znode_t *zp, struct statvfs64 *statp, in zfs_statfs_project() argument
1595 err = id_to_fuidstr(zfsvfs, NULL, zp->z_projid, &ils, B_FALSE); in zfs_statfs_project()
1620 sa_object_size(zp->z_sa_hdl, &blksize, &nblocks); in zfs_statfs_project()
1621 if (unlikely(zp->z_blksz == 0)) in zfs_statfs_project()
1801 znode_t *zp = NULL; in zfs_mountroot() local
2112 znode_t *zp; in zfs_statvfs() local
2124 if (zfs_zget(zfsvfs, zfsvfs->z_root, &zp) == 0) { in zfs_statvfs()
2127 if (zp->z_pflags & ZFS_PROJINHERIT && zp->z_projid && in zfs_statvfs()
2128 zpl_is_valid_projid(zp->z_projid)) in zfs_statvfs()
2129 err = zfs_statfs_project(zfsvfs, zp, statp, in zfs_statvfs()
[all …]
H A Dsa.c1510 znode_t *zp = sa_get_userdata(hdl); in sa_add_projid() local
1512 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in sa_add_projid()
1521 if (zp->z_acl_cached == NULL) { in sa_add_projid()
1524 rw_enter(&zp->z_acl_lock, RW_WRITER); in sa_add_projid()
1525 err = zfs_acl_node_read(zp, B_FALSE, &aclp, B_FALSE); in sa_add_projid()
1526 rw_exit(&zp->z_acl_lock); in sa_add_projid()
1534 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()
[all …]
H A Ddmu.c1944 zio_prop_t *zp, zbookmark_phys_t *zb) in dmu_sync_late_arrival() argument
1991 zp->zp_nopwrite = B_FALSE; in dmu_sync_late_arrival()
1995 zgd->zgd_db->db_size, zgd->zgd_db->db_size, zp, in dmu_sync_late_arrival()
2036 zio_prop_t zp; in dmu_sync() local
2047 dmu_write_policy(os, dn, db->db_level, WP_DMU_SYNC, &zp); in dmu_sync()
2054 return (dmu_sync_late_arrival(pio, os, done, zgd, &zp, &zb)); in dmu_sync()
2078 return (dmu_sync_late_arrival(pio, os, done, zgd, &zp, &zb)); in dmu_sync()
2136 zp.zp_nopwrite = B_FALSE; in dmu_sync()
2163 &zp, dmu_sync_ready, NULL, NULL, dmu_sync_done, dsa, in dmu_sync()
2261 dmu_write_policy(objset_t *os, dnode_t *dn, int level, int wp, zio_prop_t *zp) in dmu_write_policy() argument
[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()
76 if (tmword(name, end, zp->standard, NiL, 0)) 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()
89 if (zp == tm_info.local) in tmzone()
[all …]
H A Dtminit.c179 Tm_zone_t* zp; in tmopt() local
189 tm_info.local->type = (n && *v) ? ((zp = tmtype(v, NiL)) ? zp->type : strdup(v)) : 0; in tmopt()
208 register Tm_zone_t* zp; in tmlocal() 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()
351 local.standard = zp->standard; in tmlocal()
352 if (!(s = zp->daylight)) in tmlocal()
355 s = tmpoff(s, e - s, zp->standard, 0, 0); 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))
119 if (pp) pp->next = zp->next;
120 else zombies = zp->next;
121 if (status) *status = zp->status;
122 pid = zp->pid;
123 free(zp);
188 if (!(zp = newof(0, struct zombie, 1, 0))) return(-1);
[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);
331 znode_t *dzp, znode_t *zp, char *name, vsecattr_t *, zfs_fuid_info_t *,
339 znode_t *dzp, znode_t *zp, char *name);
341 znode_t *dzp, znode_t *zp, char *name, char *link);
[all …]
/illumos-gate/usr/src/cmd/zic/
H A Dzic.c125 static void outzone(const struct zone *zp, int ntzones);
745 register struct zone *zp; in associate() local
780 zp = &zones[i]; in associate()
781 zp->z_rules = NULL; in associate()
782 zp->z_nrules = 0; in associate()
790 zp = &zones[i]; in associate()
791 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate()
793 zp->z_rules = rp; in associate()
794 zp->z_nrules = out - base; in associate()
798 zp = &zones[i]; in associate()
[all …]
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_vfsops.c575 struct zone *zp; in tmp_statvfs() local
585 zp = curproc->p_zone; in tmp_statvfs()
587 zp = tm->tm_vfsp->vfs_zone; in tmp_statvfs()
589 if (zp == NULL) in tmp_statvfs()
592 eff_zid = zp->zone_id; in tmp_statvfs()
623 zp->zone_max_swap_ctl != UINT64_MAX) { in tmp_statvfs()
631 mutex_enter(&zp->zone_mem_lock); in tmp_statvfs()
632 cap = zp->zone_max_swap_ctl; in tmp_statvfs()
633 used = zp->zone_max_swap; in tmp_statvfs()
634 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
499 if (!global && zp->zone_max_swap_ctl != UINT64_MAX) { in swapctl()
559 mutex_enter(&zp->zone_mem_lock); in swapctl()
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()
610 if (zp->zone_max_swap_ctl != UINT64_MAX) { in swapctl()
613 mutex_enter(&zp->zone_mem_lock); in swapctl()
614 cap = zp->zone_max_swap_ctl; in swapctl()
615 used = zp->zone_max_swap; in swapctl()
[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