Searched refs:inode (Results 1 - 25 of 117) sorted by relevance

12345

/freebsd-11.0-release/sys/ufs/ufs/
H A Dufs_extern.h39 struct inode;
60 int ufs_checkpath(ino_t, ino_t, struct inode *, struct ucred *, ino_t *);
61 void ufs_dirbad(struct inode *, doff_t, char *);
63 int ufs_dirempty(struct inode *, ino_t, struct ucred *);
66 void ufs_makedirentry(struct inode *, struct componentname *,
70 int ufs_dirremove(struct vnode *, struct inode *, int, int);
71 int ufs_dirrewrite(struct inode *, struct inode *, ino_t, int, int);
82 void ffs_snapgone(struct inode *);
93 int softdep_setup_directory_add(struct buf *, struct inode *, off_
[all...]
H A Ddirhash.h119 int ufsdirhash_build(struct inode *);
120 doff_t ufsdirhash_findfree(struct inode *, int, int *);
121 doff_t ufsdirhash_enduseful(struct inode *);
122 int ufsdirhash_lookup(struct inode *, char *, int, doff_t *, struct buf **,
124 void ufsdirhash_newblk(struct inode *, doff_t);
125 void ufsdirhash_add(struct inode *, struct direct *, doff_t);
126 void ufsdirhash_remove(struct inode *, struct direct *, doff_t);
127 void ufsdirhash_move(struct inode *, struct direct *, doff_t, doff_t);
128 void ufsdirhash_dirtrunc(struct inode *, doff_t);
129 void ufsdirhash_free(struct inode *);
[all...]
H A Dacl.h42 void ufs_sync_acl_from_inode(struct inode *ip, struct acl *acl);
43 void ufs_sync_inode_from_acl(struct acl *acl, struct inode *ip);
H A Dufs_gjournal.c43 #include <ufs/ufs/inode.h>
61 struct inode *ip;
109 struct inode *ip;
128 struct inode *ip;
/freebsd-11.0-release/sys/fs/ext2fs/
H A Dext2_extern.h46 struct inode;
52 int ext2_alloc(struct inode *, daddr_t, e4fs_daddr_t, int,
54 int ext2_balloc(struct inode *,
57 void ext2_blkfree(struct inode *, e4fs_daddr_t, long);
58 e4fs_daddr_t ext2_blkpref(struct inode *, e2fs_lbn_t, int, e2fs_daddr_t *,
63 void ext2_dirbad(struct inode *ip, doff_t offset, char *how);
64 void ext2_ei2i(struct ext2fs_dinode *, struct inode *);
66 void ext2_i2ei(struct inode *, struct ext2fs_dinode *);
78 void ext2_print_inode(struct inode *);
80 int ext2_direnter(struct inode *,
[all...]
H A Dext2_extents.h96 struct inode;
98 int ext4_ext_in_cache(struct inode *, daddr_t, struct ext4_extent *);
99 void ext4_ext_put_cache(struct inode *, struct ext4_extent *, int);
101 struct inode *, daddr_t, struct ext4_extent_path *);
/freebsd-11.0-release/usr.sbin/makefs/ffs/
H A Dffs_extern.h38 struct inode;
53 int ffs_alloc(struct inode *, daddr_t, daddr_t, int, daddr_t *);
54 daddr_t ffs_blkpref_ufs1(struct inode *, daddr_t, int, int32_t *);
55 daddr_t ffs_blkpref_ufs2(struct inode *, daddr_t, int, int64_t *);
56 void ffs_blkfree(struct inode *, daddr_t, long);
60 int ffs_balloc(struct inode *, off_t, int, struct buf **);
77 int ufs_getlbns(struct inode *, daddr_t, struct indir *, int *);
/freebsd-11.0-release/contrib/pjdfstest/tests/rename/
H A D10.t31 inode=`${fstest} lstat ${n0}/${n2} inode`
36 expect ENOENT lstat ${n0}/${n2} inode
37 expect ${inode} lstat ${n1}/${n3} inode
39 expect ${inode} lstat ${n0}/${n2} inode
40 expect ENOENT lstat ${n1}/${n3} inode
49 inode=`${fstest} lstat ${n0}/${n2} inode`
[all...]
H A D00.t23 inode=`${fstest} lstat ${n0} inode`
26 expect ${type},${inode},0644,1 lstat ${n1} type,inode,mode,nlink
28 expect ${type},${inode},0644,2 lstat ${n0} type,inode,mode,nlink
29 expect ${type},${inode},0644,2 lstat ${n1} type,inode,mode,nlink
31 expect ${type},${inode},0644,2 lstat ${n0} type,inode,mod
[all...]
H A D09.t32 inode=`${fstest} lstat ${n0}/${n2} inode`
37 expect ENOENT lstat ${n0}/${n2} inode
38 expect ${inode},65534,65534 lstat ${n1}/${n3} inode,uid,gid
40 expect ${inode} lstat ${n0}/${n2} inode
41 expect ENOENT lstat ${n1}/${n3} inode
50 inode=`${fstest} lstat ${n0}/${n2} inode`
[all...]
/freebsd-11.0-release/sys/fs/cd9660/
H A Dcd9660_node.c57 * Last reference to an inode, write the inode out and if necessary,
72 * If we are done with the inode, reclaim it
75 if (ip->inode.iso_mode == 0)
81 * Reclaim an inode so that it can be used for other purposes.
97 * Remove the inode from its hash chain.
102 * Purge old data structures associated with the inode.
127 inop->inode.iso_mode = S_IFDIR;
132 inop->inode.iso_links = 1;
134 inop->inode
[all...]
H A Dcd9660_rrip.c91 ana->inop->inode.iso_mode = isonum_733(p->mode);
92 ana->inop->inode.iso_uid = isonum_733(p->uid);
93 ana->inop->inode.iso_gid = isonum_733(p->gid);
94 ana->inop->inode.iso_links = isonum_733(p->links);
353 cd9660_tstamp_conv7(ptime,&ana->inop->inode.iso_mtime,
357 bzero(&ana->inop->inode.iso_mtime,sizeof(struct timespec));
360 cd9660_tstamp_conv7(ptime,&ana->inop->inode.iso_atime,
364 ana->inop->inode.iso_atime = ana->inop->inode.iso_mtime;
367 cd9660_tstamp_conv7(ptime,&ana->inop->inode
[all...]
/freebsd-11.0-release/sys/compat/linuxkpi/common/include/linux/
H A Dfs.h56 #define inode vnode macro
66 struct inode *d_inode;
111 int (*open)(struct inode *, struct file *);
112 int (*release)(struct inode *, struct file *);
128 int (*ioctl)(struct inode *, struct file *, unsigned int,
178 nonseekable_open(struct inode *inode, struct file *filp) argument
184 iminor(struct inode *inode) argument
187 return dev2unit(inode
191 igrab(struct inode *inode) argument
203 iput(struct inode *inode) argument
[all...]
/freebsd-11.0-release/sys/ufs/ffs/
H A Dffs_extern.h44 struct inode;
56 int ffs_alloc(struct inode *, ufs2_daddr_t, ufs2_daddr_t, int, int,
65 ufs2_daddr_t ffs_blkpref_ufs1(struct inode *, ufs_lbn_t, int, ufs1_daddr_t *);
66 ufs2_daddr_t ffs_blkpref_ufs2(struct inode *, ufs_lbn_t, int, ufs2_daddr_t *);
79 void ffs_load_inode(struct buf *, struct inode *, struct fs *, ino_t);
83 int ffs_realloccg(struct inode *, ufs2_daddr_t, ufs2_daddr_t,
129 void softdep_update_inodeblock(struct inode *, struct buf *, int);
130 void softdep_load_inodeblock(struct inode *);
134 void softdep_setup_freeblocks(struct inode *, off_t, int);
135 void softdep_setup_inomapdep(struct buf *, struct inode *, ino_
[all...]
/freebsd-11.0-release/lib/libufs/
H A Dinode.c29 __FBSDID("$FreeBSD: releng/11.0/lib/libufs/inode.c 207141 2010-04-24 07:05:35Z jeff $");
50 getino(struct uufsd *disk, void **dino, ino_t inode, int *mode) argument
68 ERROR(disk, "unable to allocate inode block");
73 if (inode >= min && inode < max)
75 bread(disk, fsbtodb(fs, ino_to_fsba(fs, inode)), inoblock,
77 disk->d_inomin = min = inode - (inode % INOPB(fs));
81 dp1 = &((struct ufs1_dinode *)inoblock)[inode - min];
86 dp2 = &((struct ufs2_dinode *)inoblock)[inode
[all...]
/freebsd-11.0-release/usr.sbin/makefs/
H A Dwalk.c185 curino = link_check(cur->inode);
187 free(cur->inode);
188 cur->inode = curino;
189 cur->inode->nlink++;
226 (cur->inode = calloc(1, sizeof(fsinode))) == NULL)
230 cur->inode->nlink = 1;
231 cur->inode->st = *stbuf;
233 cur->inode->st.st_atime = stampst.st_atime;
234 cur->inode->st.st_mtime = stampst.st_mtime;
235 cur->inode
[all...]
H A Dffs.c115 #define DFL_FRAGSPERINODE 4 /* fragments per inode */
191 "bytes per inode" },
624 } else if ((node->inode->flags & FI_SIZED) == 0) {
626 node->inode->flags |= FI_SIZED;
630 (long long)node->inode->st.st_size);
633 ADDSIZE(node->inode->st.st_size);
660 struct stat *st = stampst.st_ino != 0 ? &stampst : &cur->inode->st;
663 dinp->di_mode = cur->inode->st.st_mode;
664 dinp->di_nlink = cur->inode->nlink;
665 dinp->di_size = cur->inode
[all...]
/freebsd-11.0-release/lib/libprocstat/
H A Dcommon_kvm.c47 #include <ufs/ufs/inode.h>
90 struct inode inode; local
92 if (!kvm_read_all(kd, (unsigned long)VTOI(vp), &inode, sizeof(inode))) {
93 warnx("can't read inode at %p", (void *)VTOI(vp));
101 vn->vn_fsid = dev2udev(kd, inode.i_dev);
102 vn->vn_fileid = inode.i_number;
103 vn->vn_mode = (mode_t)inode.i_mode;
104 vn->vn_size = inode
[all...]
/freebsd-11.0-release/sys/fs/nandfs/
H A Dnandfs_ifile.c61 struct nandfs_inode *inode; local
72 /* Allocate new inode in ifile */
87 inode = ((struct nandfs_inode *) req.bp_entry->b_data) + entry;
88 nandfs_inode_init(inode, mode);
157 struct nandfs_inode *inode; local
178 inode = ((struct nandfs_inode *) req.bp_entry->b_data) + index;
179 memcpy(inode, &node->nn_inode, sizeof(*inode));
186 nandfs_get_node_entry(struct nandfsmount *nmp, struct nandfs_inode **inode, argument
208 *inode
[all...]
H A Dnandfs_subr.c629 uint64_t ino, struct nandfs_inode *inode, struct nandfs_node **nodep)
679 if (inode != NULL)
680 node->nn_inode = *inode;
697 struct nandfs_inode inode, *entry; local
725 /* Look up inode structure in mountpoints ifile */
738 /* Get inode entry */
740 memcpy(&inode, entry, sizeof(struct nandfs_inode));
745 error = nandfs_get_node_raw(nmp->nm_nandfsdev, nmp, ino, &inode, nodep);
835 (ndirent->inode != 0)) {
836 *ino = ndirent->inode;
628 nandfs_get_node_raw(struct nandfs_device *nandfsdev, struct nandfsmount *nmp, uint64_t ino, struct nandfs_inode *inode, struct nandfs_node **nodep) argument
869 nandfs_inode_init(struct nandfs_inode *inode, uint16_t mode) argument
893 nandfs_inode_destroy(struct nandfs_inode *inode) argument
[all...]
/freebsd-11.0-release/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_debugfs.c118 static int debugfs_log_open(struct inode *inode, struct file *file) argument
120 return single_open(file, debugfs_log_show, inode->i_private);
203 static int debugfs_usecount_open(struct inode *inode, struct file *file) argument
205 return single_open(file, debugfs_usecount_show, inode->i_private);
227 static int debugfs_trace_open(struct inode *inode, struct file *file) argument
229 return single_open(file, debugfs_trace_show, inode->i_private);
/freebsd-11.0-release/lib/libstand/
H A Dnandfs.c63 struct nandfs_inode *inode; member in struct:nandfs_node
343 fs->nf_datfile.inode = &fs->nf_sroot.sr_dat;
345 fs->nf_cpfile.inode = &fs->nf_sroot.sr_cpfile;
361 fs->nf_ifile.inode = &fs->nf_checkpoint.cp_ifile_inode;
425 free(node->inode);
461 if (fs->nf_offset >= fs->nf_opened_node->inode->i_size)
494 size = fs->nf_opened_node->inode->i_size;
529 sb->st_size = fs->nf_opened_node->inode->i_size;
530 sb->st_mode = fs->nf_opened_node->inode->i_mode;
531 sb->st_uid = fs->nf_opened_node->inode
606 struct nandfs_inode *inode; local
636 uint64_t i, done, pinode, inode; local
[all...]
/freebsd-11.0-release/sbin/newfs_nandfs/
H A Dnewfs_nandfs.c80 struct nandfs_inode *inode; member in struct:file_info
450 file->inode->i_db[i] = vblock;
454 file->inode->i_db[i] = datfile.blocks[i];
593 datfile.inode = &sr->sr_dat;
594 cpfile.inode = &sr->sr_cpfile;
595 sufile.inode = &sr->sr_sufile;
614 de->inode = ino;
631 de->inode = parent_ino;
640 de->inode = ino;
742 ifile.inode
754 init_inode(struct nandfs_inode *inode, struct file_info *file) argument
777 struct nandfs_inode *inode; local
[all...]
/freebsd-11.0-release/sbin/ffsinfo/
H A Dffsinfo.c317 /* Dump the requested inode(s) */
336 * Here we dump a list of all blocks allocated by this inode. We follow
340 dump_whole_ufs1_inode(ino_t inode, int level) argument
352 * Read the inode from disk/cache.
354 if (getino(&disk, (void **)&ino, inode, &mode) == -1)
359 return; /* inode not in use */
363 * Dump the main inode structure.
365 snprintf(comment, sizeof(comment), "Inode 0x%08jx", (uintmax_t)inode);
390 (uintmax_t)inode);
406 (uintmax_t)inode);
494 dump_whole_ufs2_inode(ino_t inode, int level) argument
[all...]
/freebsd-11.0-release/sys/boot/common/
H A Dufsread.c168 fsread_size(ufs_ino_t inode, void *buf, size_t nbyte, size_t *fsizep) argument
196 * Force probe if inode is zero to ensure we have a valid fs, otherwise
200 if (!dsk_meta || inode == 0) {
230 if (!inode)
232 if (inomap != inode) {
234 if (dskread(blkbuf, INO_TO_VBA(&fs, n, inode), DBPERVBLK))
236 n = INO_TO_VBO(n, inode);
251 inomap = inode;
321 fsread(ufs_ino_t inode, void *buf, size_t nbyte) argument
324 return fsread_size(inode, bu
[all...]

Completed in 161 milliseconds

12345