| /freebsd/sys/ufs/ufs/ |
| H A D | ufs_extern.h | 38 struct inode; 59 int ufs_checkpath(ino_t, ino_t, struct inode *, struct ucred *, ino_t *); 60 void ufs_dirbad(struct inode *, doff_t, char *); 62 int ufs_dirempty(struct inode *, ino_t, struct ucred *, int); 65 void ufs_makedirentry(struct inode *, struct componentname *, 69 int ufs_dirremove(struct vnode *, struct inode *, int, bool); 70 int ufs_dirrewrite(struct inode *, struct inode *, ino_t, int, u_int); 81 void ffs_snapgone(struct inode *); 92 int softdep_setup_directory_add(struct buf *, struct inode *, off_t, 94 void softdep_change_directoryentry_offset(struct buf *, struct inode *, [all …]
|
| H A D | dirhash.h | 118 int ufsdirhash_build(struct inode *); 119 doff_t ufsdirhash_findfree(struct inode *, int, int *); 120 doff_t ufsdirhash_enduseful(struct inode *); 121 int ufsdirhash_lookup(struct inode *, char *, int, doff_t *, struct buf **, 123 void ufsdirhash_newblk(struct inode *, doff_t); 124 void ufsdirhash_add(struct inode *, struct direct *, doff_t); 125 void ufsdirhash_remove(struct inode *, struct direct *, doff_t); 126 void ufsdirhash_move(struct inode *, struct direct *, doff_t, doff_t); 127 void ufsdirhash_dirtrunc(struct inode *, doff_t); 128 void ufsdirhash_free(struct inode *); [all …]
|
| H A D | inode.h | 64 * The inode is used to describe each active (or recently active) file in the 72 * An inode may only be changed while holding either the exclusive 79 struct inode { struct 80 TAILQ_ENTRY(inode) i_nextsnap; /* Snapshot file list. */ 81 struct vnode *i_vnode; /* Vnode associated with this inode. */ argument 82 struct ufsmount *i_ump; /* Ufsmount point associated with this inode. */ argument 89 * The real copy of the on-disk inode. argument 93 ino_t i_number; /* The identity of the inode. */ 149 #define IN_IBLKDATA 0x0800 /* datasync requires inode block 170 struct inode *_i 94 dinode_uinode global() argument 96 i_numberinode global() argument 97 i_flaginode global() argument 98 i_effnlinkinode global() argument 103 i_countinode global() argument 127 i_ea_refsinode global() argument 152 i_modeinode global() argument [all...] |
| /freebsd/contrib/pjdfstest/tests/rename/ |
| H A D | 09.t | 33 inode=`${fstest} lstat ${n0}/${n2} inode` 38 expect ENOENT lstat ${n0}/${n2} inode 39 expect ${inode},65534,65534 lstat ${n1}/${n3} inode,uid,gid 41 expect ${inode} lstat ${n0}/${n2} inode 42 expect ENOENT lstat ${n1}/${n3} inode 51 inode=`${fstest} lstat ${n0}/${n2} inode` 56 expect ENOENT lstat ${n0}/${n2} inode 57 expect ${inode},${id},${id} lstat ${n1}/${n3} inode,uid,gid 59 expect ${inode} lstat ${n0}/${n2} inode 60 expect ENOENT lstat ${n1}/${n3} inode [all …]
|
| H A D | 10.t | 32 inode=`${fstest} lstat ${n0}/${n2} inode` 37 expect ENOENT lstat ${n0}/${n2} inode 38 expect ${inode} lstat ${n1}/${n3} inode 40 expect ${inode} lstat ${n0}/${n2} inode 41 expect ENOENT lstat ${n1}/${n3} inode 50 inode=`${fstest} lstat ${n0}/${n2} inode` 55 expect ENOENT lstat ${n0}/${n2} inode 56 expect ${inode} lstat ${n1}/${n3} inode 58 expect ${inode} lstat ${n0}/${n2} inode 59 expect ENOENT lstat ${n1}/${n3} inode [all …]
|
| H A D | 00.t | 24 inode=`${fstest} lstat ${n0} inode` 27 expect ${type},${inode},0644,1 lstat ${n1} type,inode,mode,nlink 29 expect ${type},${inode},0644,2 lstat ${n0} type,inode,mode,nlink 30 expect ${type},${inode},0644,2 lstat ${n1} type,inode,mode,nlink 32 expect ${type},${inode},0644,2 lstat ${n0} type,inode,mode,nlink 34 expect ${type},${inode},0644,2 lstat ${n2} type,inode,mode,nlink 41 inode=`${fstest} lstat ${n0} inode` 44 expect dir,${inode},0755 lstat ${n1} type,inode,mode 48 rinode=`${fstest} lstat ${n0} inode` 51 sinode=`${fstest} lstat ${n1} inode` [all …]
|
| /freebsd/sys/fs/ext2fs/ |
| H A D | ext2_extern.h | 46 struct inode; 52 int ext2_alloc(struct inode *, daddr_t, e4fs_daddr_t, int, 54 e4fs_daddr_t ext2_alloc_meta(struct inode *ip); 55 int ext2_balloc(struct inode *, 58 void ext2_blkfree(struct inode *, e4fs_daddr_t, long); 59 e4fs_daddr_t ext2_blkpref(struct inode *, e2fs_lbn_t, int, e2fs_daddr_t *, 66 void ext2_dirbad(struct inode *ip, doff_t offset, char *how); 67 int ext2_ei2i(struct ext2fs_dinode *, struct inode *); 69 int ext2_i2ei(struct inode *, struct ext2fs_dinode *); 81 void ext2_print_inode(struct inode *); [all …]
|
| H A D | ext2_extattr.h | 99 int ext2_extattr_inode_delete(struct inode *ip, int attrnamespace, 102 int ext2_extattr_block_delete(struct inode *ip, int attrnamespace, 105 int ext2_extattr_free(struct inode *ip); 106 int ext2_extattr_inode_list(struct inode *ip, int attrnamespace, 109 int ext2_extattr_block_list(struct inode *ip, int attrnamespace, 112 int ext2_extattr_inode_get(struct inode *ip, int attrnamespace, 115 int ext2_extattr_block_get(struct inode *ip, int attrnamespace, 118 int ext2_extattr_inode_set(struct inode *ip, int attrnamespace, 121 int ext2_extattr_block_set(struct inode *ip, int attrnamespace,
|
| H A D | ext2_extents.h | 118 struct inode; 120 void ext4_ext_tree_init(struct inode *ip); 121 int ext4_ext_in_cache(struct inode *, daddr_t, struct ext4_extent *); 122 void ext4_ext_put_cache(struct inode *, struct ext4_extent *, int); 123 int ext4_ext_find_extent(struct inode *, daddr_t, struct ext4_extent_path **); 125 int ext4_ext_remove_space(struct inode *ip, off_t length, int flags, 127 int ext4_ext_get_blocks(struct inode *ip, int64_t iblock, 131 int ext4_ext_walk(struct inode *ip);
|
| /freebsd/sys/fs/cd9660/ |
| H A D | cd9660_node.c | 68 if (ip->inode.iso_mode == 0) in cd9660_inactive() 109 inop->inode.iso_mode = S_IFDIR; in cd9660_defattr() 114 inop->inode.iso_links = 1; in cd9660_defattr() 116 inop->inode.iso_mode = S_IFREG; in cd9660_defattr() 117 inop->inode.iso_links = 1; in cd9660_defattr() 131 inop->inode.iso_mode |= S_IXOTH; in cd9660_defattr() 133 inop->inode.iso_mode |= S_IROTH; in cd9660_defattr() 135 inop->inode.iso_mode |= S_IXGRP; in cd9660_defattr() 137 inop->inode.iso_mode |= S_IRGRP; in cd9660_defattr() 139 inop->inode.iso_mode |= S_IXUSR; in cd9660_defattr() [all …]
|
| /freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
| H A D | zfs_ctldir.h | 56 extern struct inode *zfsctl_root(znode_t *); 59 extern boolean_t zfsctl_is_node(struct inode *ip); 60 extern boolean_t zfsctl_is_snapdir(struct inode *ip); 61 extern int zfsctl_fid(struct inode *ip, fid_t *fidp); 64 extern int zfsctl_root_lookup(struct inode *dip, const char *name, 65 struct inode **ipp, int flags, cred_t *cr, int *direntflags, 69 extern int zfsctl_snapdir_lookup(struct inode *dip, const char *name, 70 struct inode **ipp, int flags, cred_t *cr, int *direntflags, 72 extern int zfsctl_snapdir_rename(struct inode *sdip, const char *sname, 73 struct inode *tdip, const char *tname, cred_t *cr, int flags); [all …]
|
| H A D | zfs_vnops_os.h | 42 extern int zfs_open(struct inode *ip, int mode, int flag, cred_t *cr); 43 extern int zfs_close(struct inode *ip, int flag, cred_t *cr); 52 extern int zfs_tmpfile(struct inode *dip, vattr_t *vapzfs, int excl, 53 int mode, struct inode **ipp, cred_t *cr, int flag, vsecattr_t *vsecp, 60 extern int zfs_readdir(struct inode *ip, struct dir_context *ctx, cred_t *cr); 62 extern int zfs_getattr_fast(zidmap_t *, u32 request_mask, struct inode *ip, 65 extern int zfs_getattr_fast(zidmap_t *, struct inode *ip, struct kstat *sp); 74 extern int zfs_readlink(struct inode *ip, zfs_uio_t *uio, cred_t *cr); 77 extern void zfs_inactive(struct inode *ip); 80 extern int zfs_fid(struct inode *ip, fid_t *fidp); [all …]
|
| H A D | zpl.h | 41 extern void zpl_vap_init(vattr_t *vap, struct inode *dir, 64 extern int zpl_xattr_security_init(struct inode *ip, struct inode *dip, 73 extern int zpl_set_acl(struct user_namespace *userns, struct inode *ip, 79 extern int zpl_set_acl(struct inode *ip, struct posix_acl *acl, int type); 83 extern struct posix_acl *zpl_get_acl(struct inode *ip, int type, bool rcu); 85 extern struct posix_acl *zpl_get_acl(struct inode *ip, int type); 87 extern int zpl_init_acl(struct inode *ip, struct inode *dir); 88 extern int zpl_chmod_acl(struct inode *ip); 91 zpl_init_acl(struct inode *ip, struct inode *dir) in zpl_init_acl() 97 zpl_chmod_acl(struct inode *ip) in zpl_chmod_acl()
|
| H A D | zfs_znode_impl.h | 53 struct inode z_inode; 59 #define ITOZ(inode) (container_of((inode), znode_t, z_inode)) argument 61 #define ITOZSB(inode) ((zfsvfs_t *)((inode)->i_sb->s_fs_info)) argument 159 extern int zfs_inode_alloc(struct super_block *, struct inode **ip); 160 extern void zfs_inode_free(struct inode *); 161 extern void zfs_inode_destroy(struct inode *); 162 extern void zfs_mark_inode_dirty(struct inode *); 163 extern boolean_t zfs_relatime_need_update(const struct inode *);
|
| /freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/ |
| H A D | xattr_compat.h | 59 struct inode *inode, const char *name, void *buffer, \ 62 return (__ ## fn(inode, name, buffer, size)); \ 68 struct inode *inode, const char *name, void *buffer, size_t size) \ 70 return (__ ## fn(inode, name, buffer, size)); \ 84 struct dentry *dentry, struct inode *inode, const char *name, \ 87 return (__ ## fn(user_ns, inode, name, buffer, size, flags)); \ 99 struct dentry *dentry, struct inode *inode, const char *name, \ 102 return (__ ## fn(user_ns, inode, name, buffer, size, flags)); \ 113 struct inode *inode, const char *name, const void *buffer, \ 116 return (__ ## fn(kcred->user_ns, inode, name, buffer, size, flags));\
|
| /freebsd/sys/compat/linuxkpi/common/include/linux/ |
| H A D | fs.h | 61 #define inode vnode macro 144 int (*open)(struct inode *, struct file *); 145 int (*release)(struct inode *, struct linux_file *); 166 int (*ioctl)(struct inode *, struct file *, unsigned int, 249 nonseekable_open(struct inode *inode, struct file *filp) in nonseekable_open() argument 255 simple_open(struct inode *inode, struct file *filp) in simple_open() argument 257 filp->private_data = inode->i_private; in simple_open() 261 extern unsigned int linux_iminor(struct inode *); 285 static inline struct inode * 286 igrab(struct inode *inode) in igrab() argument [all …]
|
| H A D | seq_file.h | 40 #define inode vnode macro 45 static int __name ## _open(struct inode *inode, struct linux_file *file) \ 47 return single_open(file, __name ## _show, inode->i_private); \ 59 static int __name ## _open(struct inode *inode, struct linux_file *file) \ 61 return single_open(file, __name ## _show, inode->i_private); \ 95 int seq_release_private(struct inode *, struct linux_file *); 98 int seq_release(struct inode *inode, struct linux_file *file); 103 int single_release(struct inode *, struct linux_file *);
|
| /freebsd/sys/fs/p9fs/ |
| H A D | p9fs_vnops.c | 80 struct p9fs_inode *inode; in p9fs_itimes() local 83 inode = &node->inode; in p9fs_itimes() 86 inode->i_mtime = ts.tv_sec; in p9fs_itimes() 167 P9_DEBUG(VOPS, "%s: vp:%p node:%p file:%s\n", __func__, vp, np, np->inode.i_name); in p9fs_inactive() 382 if ((dnp->inode.i_mode & ISVTX) && in p9fs_lookup() 384 cnp->cn_cred->cr_uid != dnp->inode.n_uid && in p9fs_lookup() 385 cnp->cn_cred->cr_uid != np->inode.n_uid) { in p9fs_lookup() 521 dinode = &dnp->inode; in p9fs_create() 555 dinode = &dnp->inode; in p9fs_mkdir() 588 dinode = &dnp->inode; in p9fs_mknod() [all …]
|
| /freebsd/sys/ufs/ffs/ |
| H A D | ffs_extern.h | 43 struct inode; 55 int ffs_alloc(struct inode *, ufs2_daddr_t, ufs2_daddr_t, int, int, 64 ufs2_daddr_t ffs_blkpref_ufs1(struct inode *, ufs_lbn_t, int, ufs1_daddr_t *); 65 ufs2_daddr_t ffs_blkpref_ufs2(struct inode *, ufs_lbn_t, int, ufs2_daddr_t *); 91 int ffs_realloccg(struct inode *, ufs2_daddr_t, ufs2_daddr_t, 173 void softdep_update_inodeblock(struct inode *, struct buf *, int); 174 void softdep_load_inodeblock(struct inode *); 182 void softdep_setup_freeblocks(struct inode *, off_t, int); 183 void softdep_setup_inomapdep(struct buf *, struct inode *, ino_t, int); 186 void softdep_setup_allocdirect(struct inode *, ufs_lbn_t, ufs2_daddr_t, [all …]
|
| /freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zpl_inode.c | 41 zpl_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) in zpl_lookup() 44 struct inode *ip; in zpl_lookup() 138 zpl_vap_init(vattr_t *vap, struct inode *dir, umode_t mode, cred_t *cr, in zpl_vap_init() 169 zpl_create(struct user_namespace *user_ns, struct inode *dir, in zpl_create() 172 zpl_create(struct mnt_idmap *user_ns, struct inode *dir, in zpl_create() 175 zpl_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool flag) in zpl_create() 222 zpl_mknod(struct user_namespace *user_ns, struct inode *dir, in zpl_mknod() 225 zpl_mknod(struct mnt_idmap *user_ns, struct inode *dir, in zpl_mknod() 228 zpl_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, in zpl_mknod() 284 zpl_tmpfile(struct mnt_idmap *userns, struct inode *dir, in zpl_tmpfile() [all …]
|
| H A D | zpl_ctldir.c | 44 zpl_common_open(struct inode *ip, struct file *filp) in zpl_common_open() 110 struct inode *ip = path->dentry->d_inode; in zpl_root_getattr_impl() 132 zpl_root_lookup(struct inode *dip, struct dentry *dentry, unsigned int flags) in zpl_root_lookup() 135 struct inode *ip; in zpl_root_lookup() 195 zpl_snapdir_revalidate(struct inode *dir, const struct qstr *name, in zpl_snapdir_revalidate() 264 zpl_snapdir_lookup(struct inode *dip, struct dentry *dentry, in zpl_snapdir_lookup() 269 struct inode *ip = NULL; in zpl_snapdir_lookup() 333 zpl_snapdir_rename2(struct user_namespace *user_ns, struct inode *sdip, in zpl_snapdir_rename2() 334 struct dentry *sdentry, struct inode *tdip, struct dentry *tdentry, in zpl_snapdir_rename2() 337 zpl_snapdir_rename2(struct mnt_idmap *user_ns, struct inode *sdip, in zpl_snapdir_rename2() [all …]
|
| /freebsd/sys/contrib/openzfs/config/ |
| H A D | kernel-xattr-handler.m4 | 39 dnl # changed to take dentry, inode and flags. 46 struct dentry *dentry, struct inode *inode, 58 [whether xattr_handler->get() wants dentry and inode and flags]) 62 [xattr_handler->get() wants dentry and inode and flags]) 77 struct dentry *dentry, struct inode *inode, 92 struct dentry *dentry, struct inode *inode, 106 struct dentry *dentry, struct inode *inode, 126 AC_MSG_CHECKING([whether xattr_handler->set() wants dentry, inode, and mnt_idmap]) 133 AC_MSG_CHECKING([whether xattr_handler->set() wants dentry, inode, and user_namespace]) 142 dnl # dentry and inode. [all …]
|
| /freebsd/usr.sbin/makefs/ |
| H A D | walk.c | 210 curino = link_check(cur->inode); in walk_dir() 212 free(cur->inode); in walk_dir() 213 cur->inode = curino; in walk_dir() 214 cur->inode->nlink++; in walk_dir() 246 cur->inode = ecalloc(1, sizeof(*cur->inode)); in create_fsnode() 249 cur->inode->nlink = 1; in create_fsnode() 250 cur->inode->st = *stbuf; in create_fsnode() 294 if (cur->inode->nlink-- == 1) in free_fsnodes() 295 free(cur->inode); in free_fsnodes() 501 dirnode->inode->st.st_gid, specnode->st_gid); in apply_specentry() [all …]
|
| /freebsd/usr.sbin/makefs/ffs/ |
| H A D | ffs_extern.h | 37 struct inode; 52 int ffs_alloc(struct inode *, daddr_t, daddr_t, int, daddr_t *); 53 daddr_t ffs_blkpref_ufs1(struct inode *, daddr_t, int, int32_t *); 54 daddr_t ffs_blkpref_ufs2(struct inode *, daddr_t, int, int64_t *); 55 void ffs_blkfree(struct inode *, daddr_t, long); 59 int ffs_balloc(struct inode *, off_t, int, struct m_buf **); 76 int ufs_getlbns(struct inode *, daddr_t, struct indir *, int *);
|
| /freebsd/lib/libprocstat/ |
| H A D | common_kvm.c | 90 struct inode inode; in ufs_filestat() local 93 if (!kvm_read_all(kd, (unsigned long)VTOI(vp), &inode, sizeof(inode))) { in ufs_filestat() 97 if (!kvm_read_all(kd, (unsigned long)inode.i_ump, &um, sizeof(um))) { in ufs_filestat() 98 warnx("can't read ufsmount at %p", (void *)inode.i_ump); in ufs_filestat() 107 vn->vn_fileid = inode.i_number; in ufs_filestat() 108 vn->vn_mode = (mode_t)inode.i_mode; in ufs_filestat() 109 vn->vn_size = inode.i_size; in ufs_filestat()
|