Home
last modified time | relevance | path

Searched refs:inode (Results 1 – 25 of 132) sorted by relevance

123456

/openbsd-src/regress/sys/ffs/tests/rename/
H A D10.t25 inode=`${FSTEST} lstat ${n0}/${n2} inode`
28 expect ENOENT lstat ${n0}/${n2} inode
29 expect ${inode} lstat ${n1}/${n3} inode
32 expect ${inode} lstat ${n0}/${n2} inode
33 expect ENOENT lstat ${n1}/${n3} inode
36 expect ENOENT lstat ${n0}/${n2} inode
37 expect ${inode} lstat ${n1}/${n3} inode
42 inode=`${FSTEST} lstat ${n0}/${n2} inode`
46 expect ${inode} lstat ${n1}/${n3} inode
49 expect ${inode} lstat ${n0}/${n2} inode
[all …]
H A D00.t17 inode=`${FSTEST} lstat ${n0} inode`
20 expect regular,${inode},0644,1 lstat ${n1} type,inode,mode,nlink
22 expect regular,${inode},0644,2 lstat ${n0} type,inode,mode,nlink
23 expect regular,${inode},0644,2 lstat ${n1} type,inode,mode,nlink
25 expect regular,${inode},0644,2 lstat ${n0} type,inode,mode,nlink
27 expect regular,${inode},0644,2 lstat ${n2} type,inode,mode,nlink
33 inode=`${FSTEST} lstat ${n0} inode`
36 expect dir,${inode},0755 lstat ${n1} type,inode,mode
41 inode=`${FSTEST} lstat ${n0} inode`
44 expect fifo,${inode},0644,1 lstat ${n1} type,inode,mode,nlink
[all …]
/openbsd-src/sys/ufs/ext2fs/
H A Dext2fs_extern.h40 struct inode;
60 int ext2fs_alloc(struct inode *, u_int32_t, u_int32_t , struct ucred *,
62 int ext2fs_inode_alloc(struct inode *, mode_t mode, struct ucred *,
64 daddr_t ext2fs_blkpref(struct inode *, u_int32_t, int, u_int32_t *);
65 void ext2fs_blkfree(struct inode *, u_int32_t);
66 void ext2fs_inode_free(struct inode *, ufsino_t, mode_t);
69 int ext2fs_buf_alloc(struct inode *, u_int32_t, int, struct ucred *,
76 u_int64_t ext2fs_size(struct inode *);
78 int ext2fs_setsize(struct inode *, u_int64_t);
79 int ext2fs_update(struct inode *i
[all...]
H A Dext2fs_extents.h92 struct inode;
94 int ext4_ext_in_cache(struct inode *, daddr_t, struct ext4_extent *);
95 void ext4_ext_put_cache(struct inode *, struct ext4_extent *, int);
97 struct inode *, daddr_t, struct ext4_extent_path *);
H A Dext2fs_alloc.c54 static u_int32_t ext2fs_alloccg(struct inode *, int, u_int32_t, int);
57 static u_int32_t ext2fs_hashalloc(struct inode *, int, u_int32_t, int,
58 u_int32_t (*)(struct inode *, int, u_int32_t, int));
59 static ufsino_t ext2fs_nodealloccg(struct inode *, int, ufsino_t, int);
80 ext2fs_alloc(struct inode *ip, u_int32_t lbn, u_int32_t bpref, in ext2fs_alloc()
132 ext2fs_inode_alloc(struct inode *pip, mode_t mode, struct ucred *cred, in ext2fs_inode_alloc()
137 struct inode *ip; in ext2fs_inode_alloc()
220 ext2fs_blkpref(struct inode *ip, u_int32_t lbn, int baps, u_int32_t *bap) in ext2fs_blkpref()
263 ext2fs_hashalloc(struct inode *ip, int cg, u_int32_t pref, int size, in ext2fs_hashalloc()
264 u_int32_t (*allocator)(struct inode *, int, u_int32_t, int)) in ext2fs_hashalloc() argument
[all …]
/openbsd-src/sys/isofs/cd9660/
H A Dcd9660_node.c193 if (ip->inode.iso_mode == 0) in cd9660_inactive()
244 inop->inode.iso_mode = S_IFDIR; in cd9660_defattr()
249 inop->inode.iso_links = 1; in cd9660_defattr()
251 inop->inode.iso_mode = S_IFREG; in cd9660_defattr()
252 inop->inode.iso_links = 1; in cd9660_defattr()
266 inop->inode.iso_mode |= S_IRUSR; in cd9660_defattr()
268 inop->inode.iso_mode |= S_IXUSR; in cd9660_defattr()
270 inop->inode.iso_mode |= S_IRGRP; in cd9660_defattr()
272 inop->inode.iso_mode |= S_IXGRP; in cd9660_defattr()
274 inop->inode.iso_mode |= S_IROTH; in cd9660_defattr()
[all …]
H A Dcd9660_rrip.c88 ana->inop->inode.iso_mode = isonum_733(p->mode); in cd9660_rrip_attr()
89 ana->inop->inode.iso_uid = isonum_733(p->uid); in cd9660_rrip_attr()
90 ana->inop->inode.iso_gid = isonum_733(p->gid); in cd9660_rrip_attr()
91 ana->inop->inode.iso_links = isonum_733(p->links); in cd9660_rrip_attr()
342 &ana->inop->inode.iso_mtime); in cd9660_rrip_tstamp()
345 bzero(&ana->inop->inode.iso_mtime, in cd9660_rrip_tstamp()
350 &ana->inop->inode.iso_atime); in cd9660_rrip_tstamp()
353 ana->inop->inode.iso_atime = in cd9660_rrip_tstamp()
354 ana->inop->inode.iso_mtime; in cd9660_rrip_tstamp()
358 &ana->inop->inode.iso_ctime); in cd9660_rrip_tstamp()
[all …]
/openbsd-src/lib/libkvm/
H A Dkvm_cd9660.c43 struct iso_node inode; in _kvm_stat_cd9660() local
45 if (KREAD(kd, (u_long)VTOI(vp), &inode)) { in _kvm_stat_cd9660()
49 kf->va_fsid = inode.i_dev & 0xffff; in _kvm_stat_cd9660()
50 kf->va_fileid = (long)inode.i_number; in _kvm_stat_cd9660()
51 kf->va_mode = inode.inode.iso_mode; in _kvm_stat_cd9660()
52 kf->va_size = inode.i_size; in _kvm_stat_cd9660()
53 kf->va_rdev = inode.i_dev; in _kvm_stat_cd9660()
54 kf->va_nlink = inode.inode.iso_links; in _kvm_stat_cd9660()
/openbsd-src/sys/ufs/ufs/
H A Ddirhash.h118 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 Dufs_extern.h43 struct inode;
101 int ufs_ihashins(struct inode *);
102 void ufs_ihashrem(struct inode *);
109 void ufs_dirbad(struct inode *, doff_t, char *);
111 void ufs_makedirentry(struct inode *, struct componentname *,
115 int ufs_dirremove(struct vnode *, struct inode *, int, int);
116 int ufs_dirrewrite(struct inode *, struct inode *,
118 int ufs_dirempty(struct inode *, ufsino_t, struct ucred *);
119 int ufs_checkpath(struct inode *, struct inode *, struct ucred *);
H A Dufs_quota_stub.c19 getinoquota(struct inode *ip) { in getinoquota()
24 ufs_quota_alloc_blocks2(struct inode *ip, daddr_t change, in ufs_quota_alloc_blocks2()
30 ufs_quota_free_blocks2(struct inode *ip, daddr_t change, in ufs_quota_free_blocks2()
36 ufs_quota_alloc_inode2(struct inode *ip, struct ucred *cred, in ufs_quota_alloc_inode2()
42 ufs_quota_free_inode2(struct inode *ip, struct ucred *cred, in ufs_quota_free_inode2()
67 ufs_quota_delete(struct inode *ip) { in ufs_quota_delete()
H A Dquota.h121 struct inode;
132 int ufs_quota_alloc_blocks2(struct inode *, daddr_t, struct ucred *, enum ufs_quota_flags);
133 int ufs_quota_free_blocks2(struct inode *, daddr_t, struct ucred *, enum ufs_quota_flags);
134 int ufs_quota_alloc_inode2(struct inode *, struct ucred *, enum ufs_quota_flags);
135 int ufs_quota_free_inode2(struct inode *, struct ucred *, enum ufs_quota_flags);
137 int ufs_quota_delete(struct inode *);
139 int getinoquota(struct inode *);
H A Dufs_ihash.c42 #include <ufs/ufs/inode.h>
50 * Structures associated with inode caching.
52 LIST_HEAD(ihashhead, inode) *ihashtbl;
72 * Initialize inode hash table. in ufs_ihashinit()
82 * Use the device/inum pair to find the incore inode, and return a pointer
89 struct inode *ip; in ufs_ihashget()
101 * Check if the inode is valid. in ufs_ihashget()
125 * This should recycle the inode immediately, in ufs_ihashins()
129 * with the inode. in ufs_ihashins()
144 * Insert the inode int in ufs_ihashrem()
[all...]
/openbsd-src/sys/ufs/ffs/
H A Dffs_extern.h43 #define FFS_SD_INO_LIMIT_PUSH 9 /* # of times inode limit neared */
45 #define FFS_SD_INO_LIMIT_HIT 11 /* # of times inode slowdown imposed */
48 #define FFS_SD_INODE_BITMAP 14 /* bufs redirtied as inode bitmap not written */
82 struct inode;
102 int ffs_alloc(struct inode *, daddr_t, daddr_t , int, struct ucred *,
104 int ffs_realloccg(struct inode *, daddr_t, daddr_t, int, int ,
106 int ffs_inode_alloc(struct inode *, mode_t, struct ucred *, struct vnode **);
107 int ffs_inode_free(struct inode *, ufsino_t, mode_t);
108 int ffs_freefile(struct inode *, ufsino_t, mode_t);
110 int32_t ffs1_blkpref(struct inode *, daddr_
[all...]
/openbsd-src/gnu/usr.sbin/mkhybrid/src/
H A Dhash.c43 if (spnt->dev == (dev_t) UNCACHED_DEVICE || spnt->inode == UNCACHED_INODE) return; in FDECL1()
44 hash_number = HASH_FN((unsigned int) spnt->dev, (unsigned int) spnt->inode); in FDECL1()
51 s_hash->inode = spnt->inode; in FDECL1()
58 struct file_hash * FDECL2(find_hash, dev_t, dev, ino_t, inode){ in FDECL2() argument
61 hash_number = HASH_FN((unsigned int) dev, (unsigned int) inode); in FDECL2()
62 if (dev == (dev_t) UNCACHED_DEVICE || inode == UNCACHED_INODE) return NULL; in FDECL2()
66 if(spnt->inode == inode && spnt->dev == dev) return spnt; in FDECL2()
93 void FDECL2(add_directory_hash, dev_t, dev, ino_t, inode){ in FDECL2() argument
97 if (dev == (dev_t) UNCACHED_DEVICE || inode == UNCACHED_INODE) return; in FDECL2()
98 hash_number = HASH_FN((unsigned int) dev, (unsigned int) inode); in FDECL2()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D20001124-1.c2 struct inode { struct
26 do_isofs_readdir(struct inode *inode, struct file *filp) in do_isofs_readdir() argument
28 int bufsize = inode->i_sb->s_blocksize; in do_isofs_readdir()
29 unsigned char bufbits = inode->i_sb->s_blocksize_bits; in do_isofs_readdir()
34 if (filp->f_pos >= inode->i_size) in do_isofs_readdir()
39 hs = inode->i_sb->s_hs; in do_isofs_readdir()
41 while (filp->f_pos < inode->i_size) { in do_isofs_readdir()
62 struct inode i;
/openbsd-src/sys/dev/pci/drm/i915/gt/
H A Dintel_gt_debugfs.h23 static int __name ## _open(struct inode *inode, struct file *file) \
25 return single_open(file, __name ## _show, inode->i_private); \
30 static int __name ## _open(struct inode *inode, struct file *file) \
32 return single_open_size(file, __name ## _show, inode->i_private, \
33 __size_vf(inode->i_private)); \
/openbsd-src/usr.sbin/makefs/ffs/
H A Dffs_extern.h49 struct inode;
50 int ffs_alloc(struct inode *, daddr_t, daddr_t, int, daddr_t *);
51 daddr_t ffs_blkpref_ufs1(struct inode *, daddr_t, int, int32_t *);
52 daddr_t ffs_blkpref_ufs2(struct inode *, daddr_t, int, int64_t *);
56 int ffs_balloc(struct inode *, off_t, int, struct mkfsbuf **);
64 int ufs_getlbns(struct inode *, daddr_t, struct indir *, int *);
/openbsd-src/usr.sbin/makefs/
H A Dffs.c573 } else if ((node->inode->flags & FI_SIZED) == 0) { in ffs_size_dir()
575 node->inode->flags |= FI_SIZED; in ffs_size_dir()
578 ADDSIZE(node->inode->st.st_size); in ffs_size_dir()
603 dinp->di_mode = cur->inode->st.st_mode; in ffs_build_dinode1()
604 dinp->di_nlink = cur->inode->nlink; in ffs_build_dinode1()
605 dinp->di_size = cur->inode->st.st_size; in ffs_build_dinode1()
606 dinp->di_flags = cur->inode->st.st_flags; in ffs_build_dinode1()
607 dinp->di_gen = cur->inode->st.st_gen; in ffs_build_dinode1()
608 dinp->di_uid = cur->inode->st.st_uid; in ffs_build_dinode1()
609 dinp->di_gid = cur->inode->st.st_gid; in ffs_build_dinode1()
[all …]
H A Dwalk.c166 curino = link_check(cur->inode); in walk_dir()
168 free(cur->inode); in walk_dir()
169 cur->inode = curino; in walk_dir()
170 cur->inode->nlink++; in walk_dir()
202 cur->inode = ecalloc(1, sizeof(*cur->inode)); in create_fsnode()
205 cur->inode->nlink = 1; in create_fsnode()
206 cur->inode->st = *stbuf; in create_fsnode()
208 cur->inode->st.st_atim.tv_sec = stampts; in create_fsnode()
209 cur->inode->st.st_atim.tv_nsec = 0; in create_fsnode()
210 cur->inode->st.st_mtim = cur->inode->st.st_ctim = in create_fsnode()
[all …]
H A Dcd9660.c743 newnode->fileDataLength = node->inode->st.st_size; in cd9660_translate_node()
750 Tflag ? stampts : node->inode->st.st_mtime); in cd9660_translate_node()
1179 /* TODO: Inherit permissions / ownership (basically the entire inode) */ in cd9660_rrip_move_directory()
1684 fsinode *inode; in cd9660_compute_offsets() local
1766 inode = child->node->inode; in cd9660_compute_offsets()
1767 if ((inode->flags & FI_ALLOCATED) == 0) { in cd9660_compute_offsets()
1768 inode->ino = in cd9660_compute_offsets()
1771 inode->flags |= FI_ALLOCATED; in cd9660_compute_offsets()
1775 INODE_WARNX(("%s: already allocated inode in cd9660_compute_offsets()
[all...]
/openbsd-src/sys/dev/pci/drm/i915/
H A Di915_debugfs_params.c34 static int i915_param_int_open(struct inode *inode, struct file *file) in i915_param_int_open() argument
36 return single_open(file, i915_param_int_show, inode->i_private); in i915_param_int_open()
97 static int i915_param_uint_open(struct inode *inode, struct file *file) in i915_param_uint_open() argument
99 return single_open(file, i915_param_uint_show, inode->i_private); in i915_param_uint_open()
160 static int i915_param_charp_open(struct inode *inode, struct file *file) in i915_param_charp_open() argument
162 return single_open(file, i915_param_charp_show, inode->i_private); in i915_param_charp_open()
/openbsd-src/sys/dev/pci/drm/i915/gt/uc/
H A Dintel_guc_log_debugfs.c110 static int guc_log_relay_open(struct inode *inode, struct file *file) in guc_log_relay_open() argument
112 struct intel_guc_log *log = inode->i_private; in guc_log_relay_open()
148 static int guc_log_relay_release(struct inode *inode, struct file *file) in guc_log_relay_release() argument
150 struct intel_guc_log *log = inode->i_private; in guc_log_relay_release()
/openbsd-src/sys/dev/pci/drm/include/drm/
H A Ddrm_file.h458 int drm_open(struct inode *inode, struct file *filp);
462 int drm_release(struct inode *inode, struct file *filp);
463 int drm_release_noglobal(struct inode *inode, struct file *filp);
/openbsd-src/usr.sbin/quot/
H A Dquot.c315 ino_t inode, maxino; in dofsizes() local
322 for (inode = 0; inode < maxino; inode++) { in dofsizes()
324 if ((dp = get_inode(fd, super, inode)) in dofsizes()
368 ino_t inode, maxino; in douser() local
376 for (inode = 0; inode < maxino; inode++) { in douser()
378 if ((dp = get_inode(fd,super,inode)) in douser()
410 unsigned long long inode; in donames() local
421 while (scanf("%llu", &inode) == 1) { in donames()
422 if (inode > maxino) { in donames()
424 (unsigned long long)inode); in donames()
[all …]

123456