/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, int); 70 int ufs_dirrewrite(struct inode *, struct inode *, ino_t, int, 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 | 79 struct inode { struct 80 TAILQ_ENTRY(inode) i_nextsnap; /* Snapshot file list. */ 173 struct inode *_ip = (ip); \ 181 struct inode *_ip = (ip); \ 191 struct inode *_ip = (ip); \ 219 I_IS_UFS1(const struct inode *ip) in I_IS_UFS1() 226 I_IS_UFS2(const struct inode *ip) in I_IS_UFS2() 265 #define VTOI(vp) ((struct inode *)(vp)->v_data) 266 #define VTOI_SMR(vp) ((struct inode *)vn_load_v_data_smr(vp)) 286 void ufs_init_trackers(struct inode *ip); [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 | 55 extern struct inode *zfsctl_root(znode_t *); 58 extern boolean_t zfsctl_is_node(struct inode *ip); 59 extern boolean_t zfsctl_is_snapdir(struct inode *ip); 60 extern int zfsctl_fid(struct inode *ip, fid_t *fidp); 63 extern int zfsctl_root_lookup(struct inode *dip, const char *name, 64 struct inode **ipp, int flags, cred_t *cr, int *direntflags, 68 extern int zfsctl_snapdir_lookup(struct inode *dip, const char *name, 69 struct inode **ipp, int flags, cred_t *cr, int *direntflags, 71 extern int zfsctl_snapdir_rename(struct inode *sdip, const char *sname, 72 struct inode *tdip, const char *tname, cred_t *cr, int flags); [all …]
|
H A D | zfs_vnops_os.h | 41 extern int zfs_open(struct inode *ip, int mode, int flag, cred_t *cr); 42 extern int zfs_close(struct inode *ip, int flag, cred_t *cr); 51 extern int zfs_tmpfile(struct inode *dip, vattr_t *vapzfs, int excl, 52 int mode, struct inode **ipp, cred_t *cr, int flag, vsecattr_t *vsecp, 59 extern int zfs_readdir(struct inode *ip, struct dir_context *ctx, cred_t *cr); 61 extern int zfs_getattr_fast(zidmap_t *, u32 request_mask, struct inode *ip, 64 extern int zfs_getattr_fast(zidmap_t *, struct inode *ip, struct kstat *sp); 73 extern int zfs_readlink(struct inode *ip, zfs_uio_t *uio, cred_t *cr); 76 extern void zfs_inactive(struct inode *ip); 79 extern int zfs_fid(struct inode *ip, fid_t *fidp); [all …]
|
H A D | zpl.h | 40 extern void zpl_vap_init(vattr_t *vap, struct inode *dir, 62 extern int zpl_xattr_security_init(struct inode *ip, struct inode *dip, 71 extern int zpl_set_acl(struct user_namespace *userns, struct inode *ip, 77 extern int zpl_set_acl(struct inode *ip, struct posix_acl *acl, int type); 81 extern struct posix_acl *zpl_get_acl(struct inode *ip, int type, bool rcu); 83 extern struct posix_acl *zpl_get_acl(struct inode *ip, int type); 85 extern int zpl_init_acl(struct inode *ip, struct inode *dir); 86 extern int zpl_chmod_acl(struct inode *ip); 89 zpl_init_acl(struct inode *ip, struct inode *dir) in zpl_init_acl() 95 zpl_chmod_acl(struct inode *ip) in zpl_chmod_acl()
|
H A D | zfs_znode_impl.h | 52 struct inode z_inode; 58 #define ITOZ(inode) (container_of((inode), znode_t, z_inode)) argument 60 #define ITOZSB(inode) ((zfsvfs_t *)((inode)->i_sb->s_fs_info)) argument 158 extern int zfs_inode_alloc(struct super_block *, struct inode **ip); 159 extern void zfs_inode_destroy(struct inode *); 160 extern void zfs_mark_inode_dirty(struct inode *); 161 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 | 58 struct inode *inode, const char *name, void *buffer, \ 61 return (__ ## fn(inode, name, buffer, size)); \ 67 struct inode *inode, const char *name, void *buffer, size_t size) \ 69 return (__ ## fn(inode, name, buffer, size)); \ 83 struct dentry *dentry, struct inode *inode, const char *name, \ 86 return (__ ## fn(user_ns, inode, name, buffer, size, flags)); \ 98 struct dentry *dentry, struct inode *inode, const char *name, \ 101 return (__ ## fn(user_ns, inode, name, buffer, size, flags)); \ 112 struct inode *inode, const char *name, const void *buffer, \ 115 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 *); 161 int (*ioctl)(struct inode *, struct file *, unsigned int, 244 nonseekable_open(struct inode *inode, struct file *filp) in nonseekable_open() argument 250 simple_open(struct inode *inode, struct file *filp) in simple_open() argument 252 filp->private_data = inode->i_private; in simple_open() 256 extern unsigned int linux_iminor(struct inode *); 275 igrab(struct inode * inode) igrab() argument 287 iput(struct inode * inode) iput() argument 334 i_size_write(struct inode * inode,loff_t i_size) i_size_write() argument [all...] |
H A D | seq_file.h | 36 #define inode vnode macro 41 static int __name ## _open(struct inode *inode, struct linux_file *file) \ 43 return single_open(file, __name ## _show, inode->i_private); \ 76 int seq_release_private(struct inode *, struct linux_file *); 79 int seq_release(struct inode *inode, struct linux_file *file); 84 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 *); 90 int ffs_realloccg(struct inode *, ufs2_daddr_t, ufs2_daddr_t, 172 void softdep_update_inodeblock(struct inode *, struct buf *, int); 173 void softdep_load_inodeblock(struct inode *); 181 void softdep_setup_freeblocks(struct inode *, off_t, int); 182 void softdep_setup_inomapdep(struct buf *, struct inode *, ino_t, int); 185 void softdep_setup_allocdirect(struct inode *, ufs_lbn_t, ufs2_daddr_t, [all …]
|
/freebsd/usr.sbin/makefs/ |
H A D | walk.c | 185 curino = link_check(cur->inode); in walk_dir() 187 free(cur->inode); in walk_dir() 188 cur->inode = curino; in walk_dir() 189 cur->inode->nlink++; in walk_dir() 225 cur->inode = ecalloc(1, sizeof(*cur->inode)); in create_fsnode() 228 cur->inode->nlink = 1; in create_fsnode() 229 cur->inode->st = *stbuf; in create_fsnode() 231 cur->inode->st.st_atime = stampst.st_atime; in create_fsnode() 232 cur->inode->st.st_mtime = stampst.st_mtime; in create_fsnode() 233 cur->inode->st.st_ctime = stampst.st_ctime; in create_fsnode() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zpl_inode.c | 38 zpl_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags) in zpl_lookup() 41 struct inode *ip; in zpl_lookup() 135 zpl_vap_init(vattr_t *vap, struct inode *dir, umode_t mode, cred_t *cr, in zpl_vap_init() 166 zpl_create(struct user_namespace *user_ns, struct inode *dir, in zpl_create() 169 zpl_create(struct mnt_idmap *user_ns, struct inode *dir, in zpl_create() 172 zpl_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool flag) in zpl_create() 219 zpl_mknod(struct user_namespace *user_ns, struct inode *dir, in zpl_mknod() 222 zpl_mknod(struct mnt_idmap *user_ns, struct inode *dir, in zpl_mknod() 225 zpl_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, in zpl_mknod() 281 zpl_tmpfile(struct mnt_idmap *userns, struct inode *dir, in zpl_tmpfile() [all …]
|
H A D | zpl_ctldir.c | 43 zpl_common_open(struct inode *ip, struct file *filp) in zpl_common_open() 109 struct inode *ip = path->dentry->d_inode; in zpl_root_getattr_impl() 131 zpl_root_lookup(struct inode *dip, struct dentry *dentry, unsigned int flags) in zpl_root_lookup() 134 struct inode *ip; in zpl_root_lookup() 212 zpl_snapdir_lookup(struct inode *dip, struct dentry *dentry, in zpl_snapdir_lookup() 217 struct inode *ip = NULL; in zpl_snapdir_lookup() 284 zpl_snapdir_rename2(struct user_namespace *user_ns, struct inode *sdip, in zpl_snapdir_rename2() 285 struct dentry *sdentry, struct inode *tdip, struct dentry *tdentry, in zpl_snapdir_rename2() 288 zpl_snapdir_rename2(struct mnt_idmap *user_ns, struct inode *sdip, in zpl_snapdir_rename2() 289 struct dentry *sdentry, struct inode *tdip, struct dentry *tdentry, 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, 59 [whether xattr_handler->get() wants dentry and inode and flags]) 63 [xattr_handler->get() wants dentry and inode and flags]) 78 struct dentry *dentry, struct inode *inode, 93 struct dentry *dentry, struct inode *inode, 107 struct dentry *dentry, struct inode *inode, 127 AC_MSG_CHECKING([whether xattr_handler->set() wants dentry, inode, and mnt_idmap]) 134 AC_MSG_CHECKING([whether xattr_handler->set() wants dentry, inode, and user_namespace]) 143 dnl # dentry and inode. [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()
|