Searched refs:dzp (Results 1 - 15 of 15) sorted by relevance

/freebsd-current/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_dir.c63 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, argument
83 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1,
86 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid);
108 * Lock a directory entry. A dirlock on <dzp, name> protects that name
109 * in dzp's directory zap object. As long as you hold a dirlock, you can
110 * assume two things: (1) dzp cannot be reaped, and (2) no other thread
114 * dzp - znode for directory
119 * ZXATTR: we want dzp's xattr directory
143 zfs_dirent_lock(zfs_dirlock_t **dlpp, znode_t *dzp, char *name, argument
146 zfsvfs_t *zfsvfs = ZTOZSB(dzp);
348 znode_t *dzp = dl->dl_dzp; local
383 zfs_dirlook(znode_t *dzp, char *name, znode_t **zpp, int flags, int *deflg, pathname_t *rpnp) argument
589 zfs_purgedir(znode_t *dzp) argument
801 znode_t *dzp = dl->dl_dzp; local
911 zfs_dropname(zfs_dirlock_t *dl, znode_t *zp, znode_t *dzp, dmu_tx_t *tx, int flag) argument
1015 znode_t *dzp = dl->dl_dzp; local
1091 zfs_dirempty(znode_t *dzp) argument
[all...]
H A Dzfs_vnops_os.c539 * IN: dzp - znode of directory to put new file entry in.
554 * dzp - ctime|mtime updated if new entry created
558 zfs_create(znode_t *dzp, char *name, vattr_t *vap, int excl, argument
563 zfsvfs_t *zfsvfs = ZTOZSB(dzp);
592 if ((error = zfs_enter_verify_zp(zfsvfs, dzp, FTAG)) != 0)
617 zhold(dzp);
618 zp = dzp;
628 error = zfs_dirent_lock(&dl, dzp, name, &zp, zflg,
648 if ((error = zfs_zaccess(dzp, ACE_ADD_FILE, 0, skip_acl, cr,
660 if ((dzp
811 znode_t *zp = NULL, *dzp = ITOZ(dip); local
945 zfs_remove(znode_t *dzp, char *name, cred_t *cr, int flags) argument
1187 zfs_mkdir(znode_t *dzp, char *dirname, vattr_t *vap, znode_t **zpp, cred_t *cr, int flags, vsecattr_t *vsecp, zidmap_t *mnt_ns) argument
1376 zfs_rmdir(znode_t *dzp, char *name, znode_t *cwd, cred_t *cr, int flags) argument
1728 zfs_setattr_dir(znode_t *dzp) argument
3228 zfs_symlink(znode_t *dzp, char *name, vattr_t *vap, char *link, znode_t **zpp, cred_t *cr, int flags, zidmap_t *mnt_ns) argument
[all...]
H A Dzpl_ctldir.c543 znode_t *dzp; local
555 error = -zfs_zget(zfsvfs, zfsvfs->z_shares_dir, &dzp);
560 error = -zfs_readdir(ZTOI(dzp), ctx, cr);
563 iput(ZTOI(dzp));
604 znode_t *dzp; local
630 error = -zfs_zget(zfsvfs, zfsvfs->z_shares_dir, &dzp);
633 error = -zfs_getattr_fast(user_ns, request_mask, ZTOI(dzp),
636 error = -zfs_getattr_fast(user_ns, ZTOI(dzp), stat);
638 error = -zfs_getattr_fast(kcred->user_ns, ZTOI(dzp), stat);
640 iput(ZTOI(dzp));
[all...]
H A Dzfs_acl.c1802 zfs_acl_ids_create(znode_t *dzp, int flag, vattr_t *vap, cred_t *cr, argument
1806 zfsvfs_t *zfsvfs = ZTOZSB(dzp);
1843 if (acl_ids->z_fgid != KGID_TO_SGID(ZTOI(dzp)->i_gid) &&
1849 if (dzp->z_mode & S_ISGID) {
1854 ZTOI(dzp)->i_gid);
1885 if (!(flag & IS_ROOT_NODE) && (dzp->z_mode & S_ISGID) &&
1891 zfs_i_user_ns(ZTOI(dzp))) != 0) {
1897 mutex_enter(&dzp->z_acl_lock);
1898 mutex_enter(&dzp->z_lock);
1900 (dzp
2864 zfs_zaccess_delete(znode_t *dzp, znode_t *zp, cred_t *cr, zidmap_t *mnt_ns) argument
[all...]
H A Dzfs_ctldir.c1264 znode_t *dzp; local
1275 if ((error = zfs_zget(zfsvfs, zfsvfs->z_shares_dir, &dzp)) == 0) {
1276 error = zfs_lookup(dzp, name, &zp, 0, cr, NULL, NULL);
1277 zrele(dzp);
H A Dzfs_znode.c679 * IN: dzp - parent directory for new znode
689 * OUT: zpp - allocated znode (set to dzp if IS_ROOT_NODE)
693 zfs_mknode(znode_t *dzp, vattr_t *vap, dmu_tx_t *tx, cred_t *cr, argument
700 zfsvfs_t *zfsvfs = ZTOZSB(dzp);
772 dzp->z_id = obj;
778 if (dzp->z_pflags & ZFS_XATTR) {
798 parent = dzp->z_id;
815 projid = zfs_inherit_projid(dzp);
816 if (dzp->z_pflags & ZFS_PROJINHERIT)
948 VERIFY(dzp !
[all...]
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_dir.c69 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, argument
80 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1,
83 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid);
97 * dzp - znode for directory
101 * ZXATTR: we want dzp's xattr directory
111 zfs_dirent_lookup(znode_t *dzp, const char *name, znode_t **zpp, int flag) argument
113 zfsvfs_t *zfsvfs = dzp->z_zfsvfs;
120 ASSERT_VOP_LOCKED(ZTOV(dzp), __func__);
129 (zfs_has_ctldir(dzp) && strcmp(name, ZFS_CTLDIR_NAME) == 0)))
172 if (dzp
201 zfs_dd_lookup(znode_t *dzp, znode_t **zpp) argument
226 zfs_dirlook(znode_t *dzp, const char *name, znode_t **zpp) argument
368 zfs_purgedir(znode_t *dzp) argument
575 zfs_link_create(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx, int flag) argument
682 zfs_dropname(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx, int flag) argument
711 zfs_link_destroy(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx, int flag, boolean_t *unlinkedp) argument
801 zfs_dirempty(znode_t *dzp) argument
[all...]
H A Dzfs_vnops_os.c1061 zfs_create(znode_t *dzp, const char *name, vattr_t *vap, int excl, int mode, argument
1066 zfsvfs_t *zfsvfs = dzp->z_zfsvfs;
1078 vnode_t *dvp = ZTOV(dzp);
1090 if ((error = zfs_enter_verify_zp(zfsvfs, dzp, FTAG)) != 0)
1102 if ((error = secpolicy_xvattr(ZTOV(dzp), (xvattr_t *)vap,
1114 error = zfs_dirent_lookup(dzp, name, &zp, ZNEW);
1125 if ((error = zfs_zaccess(dzp, ACE_ADD_FILE, 0, B_FALSE, cr, mnt_ns))) {
1134 if ((dzp->z_pflags & ZFS_XATTR) &&
1140 if ((error = zfs_acl_ids_create(dzp, 0, vap,
1145 projid = zfs_inherit_projid(dzp);
1236 znode_t *dzp = VTOZ(dvp); local
1351 zfs_lookup_internal(znode_t *dzp, const char *name, vnode_t **vpp, struct componentname *cnp, int nameiop) argument
1393 zfs_remove(znode_t *dzp, const char *name, cred_t *cr, int flags) argument
1428 zfs_mkdir(znode_t *dzp, const char *dirname, vattr_t *vap, znode_t **zpp, cred_t *cr, int flags, vsecattr_t *vsecp, zidmap_t *mnt_ns) argument
1608 znode_t *dzp = VTOZ(dvp); local
1670 zfs_rmdir(znode_t *dzp, const char *name, znode_t *cwd, cred_t *cr, int flags) argument
3507 zfs_symlink(znode_t *dzp, const char *name, vattr_t *vap, const char *link, znode_t **zpp, cred_t *cr, int flags, zidmap_t *mnt_ns) argument
6158 znode_t *dzp; local
[all...]
H A Dzfs_acl.c1619 zfs_acl_ids_create(znode_t *dzp, int flag, vattr_t *vap, cred_t *cr, argument
1623 zfsvfs_t *zfsvfs = dzp->z_zfsvfs;
1632 ASSERT_VOP_ELOCKED(ZTOV(dzp), __func__);
1634 ASSERT3P(dzp->z_vnode, ==, NULL);
1665 if (acl_ids->z_fgid != dzp->z_gid &&
1674 acl_ids->z_fgid = dzp->z_gid;
1698 if (!(flag & IS_ROOT_NODE) && (dzp->z_mode & S_ISGID) &&
1703 secpolicy_vnode_setids_setgids(ZTOV(dzp), cr, gid) != 0)
1708 mutex_enter(&dzp->z_acl_lock);
1710 (dzp
2490 zfs_delete_final_check(znode_t *zp, znode_t *dzp, mode_t available_perms, cred_t *cr) argument
2542 zfs_zaccess_delete(znode_t *dzp, znode_t *zp, cred_t *cr, zidmap_t *mnt_ns) argument
[all...]
H A Dzfs_znode.c559 * IN: dzp - parent directory for new znode
574 zfs_mknode(znode_t *dzp, vattr_t *vap, dmu_tx_t *tx, cred_t *cr, argument
581 zfsvfs_t *zfsvfs = dzp->z_zfsvfs;
654 dzp->z_id = obj;
656 dzp_pflags = dzp->z_pflags;
682 parent = dzp->z_id;
807 *zpp = dzp;
/freebsd-current/sys/contrib/openzfs/include/os/freebsd/zfs/sys/
H A Dzfs_vnops_os.h36 extern int zfs_remove(znode_t *dzp, const char *name, cred_t *cr, int flags);
37 extern int zfs_mkdir(znode_t *dzp, const char *dirname, vattr_t *vap,
39 extern int zfs_rmdir(znode_t *dzp, const char *name, znode_t *cwd,
46 extern int zfs_symlink(znode_t *dzp, const char *name, vattr_t *vap,
52 extern int zfs_create(znode_t *dzp, const char *name, vattr_t *vap, int excl,
/freebsd-current/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dzfs_vnops_os.h45 extern int zfs_lookup(znode_t *dzp, char *nm, znode_t **zpp, int flags,
47 extern int zfs_create(znode_t *dzp, char *name, vattr_t *vap, int excl,
53 extern int zfs_remove(znode_t *dzp, char *name, cred_t *cr, int flags);
54 extern int zfs_mkdir(znode_t *dzp, char *dirname, vattr_t *vap,
56 extern int zfs_rmdir(znode_t *dzp, char *name, znode_t *cwd,
70 extern int zfs_symlink(znode_t *dzp, char *name, vattr_t *vap,
/freebsd-current/sys/contrib/openzfs/include/sys/
H A Dzfs_znode.h251 zfs_inherit_projid(znode_t *dzp) argument
253 return ((dzp->z_pflags & ZFS_PROJINHERIT) ? dzp->z_projid :
289 znode_t *dzp, znode_t *zp, const char *name, vsecattr_t *,
294 znode_t *dzp, const char *name, uint64_t foid, boolean_t unlinked);
297 znode_t *dzp, znode_t *zp, const char *name);
299 znode_t *dzp, znode_t *zp, const char *name, const char *link);
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Dzfs_replay.c298 znode_t *dzp; local
334 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0)
393 error = zfs_create(dzp, name, &xva.xva_vattr,
396 error = zfs_create(dzp, name, &xva.xva_vattr,
428 error = zfs_mkdir(dzp, name, &xva.xva_vattr,
431 error = zfs_mkdir(dzp, name, &xva.xva_vattr,
446 zrele(dzp);
462 znode_t *dzp; local
485 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0)
546 error = zfs_create(dzp, nam
616 znode_t *dzp; local
653 znode_t *dzp, *zp; local
[all...]
H A Dzfs_log.c230 znode_t *dzp; local
244 if (zfs_zget(ZTOZSB(tzp), tzp->z_xattr_parent, &dzp) != 0) {
251 tzp = dzp;
264 if (zfs_zget(ZTOZSB(zp), zp->z_xattr_parent, &dzp) != 0) {
270 zp = dzp;
299 znode_t *dzp, znode_t *zp, const char *name, vsecattr_t *vsecp,
314 if (zil_replaying(zilog, tx) || zfs_xattr_owner_unlinked(dzp))
344 lr->lr_doid = dzp->z_id;
413 znode_t *dzp, const char *name, uint64_t foid, boolean_t unlinked)
419 if (zil_replaying(zilog, tx) || zfs_xattr_owner_unlinked(dzp))
298 zfs_log_create(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, const char *name, vsecattr_t *vsecp, zfs_fuid_info_t *fuidp, vattr_t *vap) argument
412 zfs_log_remove(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, const char *name, uint64_t foid, boolean_t unlinked) argument
447 zfs_log_link(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, const char *name) argument
470 zfs_log_symlink(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, const char *name, const char *link) argument
[all...]

Completed in 238 milliseconds