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

/freebsd-13-stable/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
794 znode_t *dzp = dl->dl_dzp; local
904 zfs_dropname(zfs_dirlock_t *dl, znode_t *zp, znode_t *dzp, dmu_tx_t *tx, int flag) argument
940 znode_t *dzp = dl->dl_dzp; local
1038 zfs_dirempty(znode_t *dzp) argument
[all...]
H A Dzpl_ctldir.c484 znode_t *dzp; local
495 error = -zfs_zget(zfsvfs, zfsvfs->z_shares_dir, &dzp);
500 error = -zfs_readdir(ZTOI(dzp), ctx, cr);
503 iput(ZTOI(dzp));
540 znode_t *dzp; local
557 error = -zfs_zget(zfsvfs, zfsvfs->z_shares_dir, &dzp);
560 error = -zfs_getattr_fast(user_ns, ZTOI(dzp), stat);
562 error = -zfs_getattr_fast(kcred->user_ns, ZTOI(dzp), stat);
564 iput(ZTOI(dzp));
H A Dzfs_vnops_os.c540 * IN: dzp - znode of directory to put new file entry in.
554 * dzp - ctime|mtime updated if new entry created
560 zfs_create(znode_t *dzp, char *name, vattr_t *vap, int excl, argument
564 zfsvfs_t *zfsvfs = ZTOZSB(dzp);
593 ZFS_VERIFY_ZP(dzp);
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, B_FALSE, cr))) {
659 if ((dzp
809 znode_t *zp = NULL, *dzp = ITOZ(dip); local
944 zfs_remove(znode_t *dzp, char *name, cred_t *cr, int flags) argument
1184 zfs_mkdir(znode_t *dzp, char *dirname, vattr_t *vap, znode_t **zpp, cred_t *cr, int flags, vsecattr_t *vsecp) argument
1373 zfs_rmdir(znode_t *dzp, char *name, znode_t *cwd, cred_t *cr, int flags) argument
1720 zfs_setattr_dir(znode_t *dzp) argument
3044 zfs_symlink(znode_t *dzp, char *name, vattr_t *vap, char *link, znode_t **zpp, cred_t *cr, int flags) argument
[all...]
H A Dzfs_acl.c1783 zfs_acl_ids_create(znode_t *dzp, int flag, vattr_t *vap, cred_t *cr, argument
1787 zfsvfs_t *zfsvfs = ZTOZSB(dzp);
1824 if (acl_ids->z_fgid != KGID_TO_SGID(ZTOI(dzp)->i_gid) &&
1830 if (dzp->z_mode & S_ISGID) {
1835 ZTOI(dzp)->i_gid);
1866 if (!(flag & IS_ROOT_NODE) && (dzp->z_mode & S_ISGID) &&
1876 mutex_enter(&dzp->z_acl_lock);
1877 mutex_enter(&dzp->z_lock);
1879 (dzp->z_pflags & ZFS_INHERIT_ACE) &&
1880 !(dzp
2778 zfs_zaccess_delete(znode_t *dzp, znode_t *zp, cred_t *cr) argument
[all...]
H A Dzfs_ctldir.c1209 znode_t *dzp; local
1219 if ((error = zfs_zget(zfsvfs, zfsvfs->z_shares_dir, &dzp)) == 0) {
1220 error = zfs_lookup(dzp, name, &zp, 0, cr, NULL, NULL);
1221 zrele(dzp);
H A Dzfs_znode.c655 * IN: dzp - parent directory for new znode
665 * OUT: zpp - allocated znode (set to dzp if IS_ROOT_NODE)
669 zfs_mknode(znode_t *dzp, vattr_t *vap, dmu_tx_t *tx, cred_t *cr, argument
676 zfsvfs_t *zfsvfs = ZTOZSB(dzp);
748 dzp->z_id = obj;
754 if (dzp->z_pflags & ZFS_XATTR) {
774 parent = dzp->z_id;
791 projid = zfs_inherit_projid(dzp);
792 if (dzp->z_pflags & ZFS_PROJINHERIT)
924 VERIFY(dzp !
[all...]
/freebsd-13-stable/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_dir.c70 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, argument
81 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1,
84 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid);
98 * dzp - znode for directory
102 * ZXATTR: we want dzp's xattr directory
112 zfs_dirent_lookup(znode_t *dzp, const char *name, znode_t **zpp, int flag) argument
114 zfsvfs_t *zfsvfs = dzp->z_zfsvfs;
121 ASSERT_VOP_LOCKED(ZTOV(dzp), __func__);
130 (zfs_has_ctldir(dzp) && strcmp(name, ZFS_CTLDIR_NAME) == 0)))
173 if (dzp
202 zfs_dd_lookup(znode_t *dzp, znode_t **zpp) argument
227 zfs_dirlook(znode_t *dzp, const char *name, znode_t **zpp) argument
370 zfs_purgedir(znode_t *dzp) argument
569 zfs_link_create(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx, int flag) argument
676 zfs_dropname(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx, int flag) argument
705 zfs_link_destroy(znode_t *dzp, const char *name, znode_t *zp, dmu_tx_t *tx, int flag, boolean_t *unlinkedp) argument
795 zfs_dirempty(znode_t *dzp) argument
[all...]
H A Dzfs_vnops_os.c1048 zfs_create(znode_t *dzp, const char *name, vattr_t *vap, int excl, int mode, argument
1052 zfsvfs_t *zfsvfs = dzp->z_zfsvfs;
1065 vnode_t *dvp = ZTOV(dzp);
1085 ZFS_VERIFY_ZP(dzp);
1096 if ((error = secpolicy_xvattr(ZTOV(dzp), (xvattr_t *)vap,
1108 error = zfs_dirent_lookup(dzp, name, &zp, ZNEW);
1119 if ((error = zfs_zaccess(dzp, ACE_ADD_FILE, 0, B_FALSE, cr))) {
1128 if ((dzp->z_pflags & ZFS_XATTR) &&
1134 if ((error = zfs_acl_ids_create(dzp, 0, vap,
1139 projid = zfs_inherit_projid(dzp);
1217 znode_t *dzp = VTOZ(dvp); local
1329 zfs_lookup_internal(znode_t *dzp, const char *name, vnode_t **vpp, struct componentname *cnp, int nameiop) argument
1366 zfs_remove(znode_t *dzp, const char *name, cred_t *cr, int flags) argument
1401 zfs_mkdir(znode_t *dzp, const char *dirname, vattr_t *vap, znode_t **zpp, cred_t *cr, int flags, vsecattr_t *vsecp) argument
1580 znode_t *dzp = VTOZ(dvp); local
1638 zfs_rmdir(znode_t *dzp, const char *name, znode_t *cwd, cred_t *cr, int flags) argument
3525 zfs_symlink(znode_t *dzp, const char *name, vattr_t *vap, const char *link, znode_t **zpp, cred_t *cr, int flags) argument
5787 znode_t *dzp; local
[all...]
H A Dzfs_acl.c1618 zfs_acl_ids_create(znode_t *dzp, int flag, vattr_t *vap, cred_t *cr, argument
1622 zfsvfs_t *zfsvfs = dzp->z_zfsvfs;
1631 ASSERT_VOP_ELOCKED(ZTOV(dzp), __func__);
1633 ASSERT(dzp->z_vnode == NULL);
1662 if (acl_ids->z_fgid != dzp->z_gid &&
1671 acl_ids->z_fgid = dzp->z_gid;
1695 if (!(flag & IS_ROOT_NODE) && (dzp->z_mode & S_ISGID) &&
1700 secpolicy_vnode_setids_setgids(ZTOV(dzp), cr, gid) != 0)
1705 mutex_enter(&dzp->z_acl_lock);
1707 (dzp
2486 zfs_delete_final_check(znode_t *zp, znode_t *dzp, mode_t available_perms, cred_t *cr) argument
2538 zfs_zaccess_delete(znode_t *dzp, znode_t *zp, cred_t *cr) argument
[all...]
H A Dzfs_znode.c540 * IN: dzp - parent directory for new znode
555 zfs_mknode(znode_t *dzp, vattr_t *vap, dmu_tx_t *tx, cred_t *cr, argument
562 zfsvfs_t *zfsvfs = dzp->z_zfsvfs;
635 dzp->z_id = obj;
637 dzp_pflags = dzp->z_pflags;
663 parent = dzp->z_id;
788 *zpp = dzp;
/freebsd-13-stable/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,
44 extern int zfs_symlink(znode_t *dzp, const char *name, vattr_t *vap,
50 extern int zfs_create(znode_t *dzp, const char *name, vattr_t *vap, int excl,
/freebsd-13-stable/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,
51 extern int zfs_remove(znode_t *dzp, char *name, cred_t *cr, int flags);
52 extern int zfs_mkdir(znode_t *dzp, char *dirname, vattr_t *vap,
54 extern int zfs_rmdir(znode_t *dzp, char *name, znode_t *cwd,
62 extern int zfs_symlink(znode_t *dzp, char *name, vattr_t *vap,
/freebsd-13-stable/sys/contrib/openzfs/module/zfs/
H A Dzfs_replay.c295 znode_t *dzp; local
329 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0)
387 error = zfs_create(dzp, name, &xva.xva_vattr,
417 error = zfs_mkdir(dzp, name, &xva.xva_vattr,
431 zrele(dzp);
447 znode_t *dzp; local
468 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0)
528 error = zfs_create(dzp, name, &xva.xva_vattr,
546 error = zfs_mkdir(dzp, name, &xva.xva_vattr,
550 error = zfs_make_xattrdir(dzp,
583 znode_t *dzp; local
618 znode_t *dzp, *zp; local
[all...]
H A Dzfs_log.c233 znode_t *dzp; local
247 if (zfs_zget(ZTOZSB(tzp), tzp->z_xattr_parent, &dzp) != 0) {
254 tzp = dzp;
267 if (zfs_zget(ZTOZSB(zp), zp->z_xattr_parent, &dzp) != 0) {
273 zp = dzp;
302 znode_t *dzp, znode_t *zp, const char *name, vsecattr_t *vsecp,
317 if (zil_replaying(zilog, tx) || zfs_xattr_owner_unlinked(dzp))
347 lr->lr_doid = dzp->z_id;
416 znode_t *dzp, const char *name, uint64_t foid, boolean_t unlinked)
422 if (zil_replaying(zilog, tx) || zfs_xattr_owner_unlinked(dzp))
301 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
415 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
450 zfs_log_link(zilog_t *zilog, dmu_tx_t *tx, uint64_t txtype, znode_t *dzp, znode_t *zp, const char *name) argument
473 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...]
/freebsd-13-stable/sys/contrib/openzfs/include/sys/
H A Dzfs_znode.h227 zfs_inherit_projid(znode_t *dzp) argument
229 return ((dzp->z_pflags & ZFS_PROJINHERIT) ? dzp->z_projid :
264 znode_t *dzp, znode_t *zp, const char *name, vsecattr_t *,
269 znode_t *dzp, const char *name, uint64_t foid, boolean_t unlinked);
272 znode_t *dzp, znode_t *zp, const char *name);
274 znode_t *dzp, znode_t *zp, const char *name, const char *link);

Completed in 215 milliseconds