Searched refs:ino (Results 1 - 25 of 205) sorted by relevance

123456789

/netbsd-current/sbin/fsck_lfs/
H A Dpass0.c104 ino_t ino, plastino, nextino, lowfreeino, freehd; local
116 freehd = ino = lfs_ci_getfree_head(fs, cip);
119 while (ino) {
120 if (lowfreeino > ino)
121 lowfreeino = ino;
122 if (ino >= maxino) {
124 (unsigned long long)ino);
127 if (visited[ino]) {
129 (unsigned long long)ino);
138 visited[ino]
[all...]
H A Dinode.c98 ginode(ino_t ino) argument
106 vp = vget(fs, ino);
110 if (din_table[ino] == 0x0) {
111 LFS_IENTRY(ifp, fs, ino, bp);
114 din_table[ino] = daddr;
525 ino_t ino; local
527 ino = lfs_dir_getino(fs, dirp);
528 if (ino == 0)
531 ino >= ULFS_ROOTINO && ino < maxin
539 pinode(ino_t ino) argument
565 blkerror(ino_t ino, const char *type, daddr_t blk) argument
599 ino_t ino; local
649 freeino(ino_t ino) argument
[all...]
/netbsd-current/sys/fs/v7fs/
H A Dv7fs_dirent.c67 v7fs_ino_t ino; local
71 ino = V7FS_VAL16(fs, dir->inode_number);
72 if (v7fs_inode_number_sanity(sb, ino)) {
73 DPRINTF("Invalid inode# %d %s\n", ino, dir->name);
76 dir->inode_number = ino;
H A Dv7fs_file.c70 const char *name, size_t namelen, v7fs_ino_t *ino)
87 *ino = lookup_arg.inode_number;
88 DPRINTF("done. ino=%d\n", *ino);
131 v7fs_ino_t *ino)
139 ino) == 0) {
145 if ((error = v7fs_inode_allocate(fs, ino)))
150 inode.inode_number = *ino;
164 v7fs_inode_deallocate(fs, *ino);
186 v7fs_inode_deallocate(fs, *ino);
69 v7fs_file_lookup_by_name(struct v7fs_self *fs, struct v7fs_inode *parent_dir, const char *name, size_t namelen, v7fs_ino_t *ino) argument
129 v7fs_file_allocate(struct v7fs_self *fs, struct v7fs_inode *parent_dir, const char *srcname, size_t srclen, struct v7fs_fileattr *attr, v7fs_ino_t *ino) argument
225 v7fs_ino_t ino; local
275 v7fs_directory_add_entry(struct v7fs_self *fs, struct v7fs_inode *parent_dir, v7fs_ino_t ino, const char *srcname, size_t srclen) argument
[all...]
H A Dv7fs_inode.c87 v7fs_inode_number_sanity(const struct v7fs_superblock *sb, v7fs_ino_t ino) argument
90 if (ino < V7FS_ROOT_INODE || ((size_t)ino >= V7FS_MAX_INODE(sb))) {
91 DPRINTF("invalid inode#%d (%d-%zu)\n", ino,
100 v7fs_inode_allocate(struct v7fs_self *fs, v7fs_ino_t *ino) argument
105 *ino = 0;
130 *ino = inode_number;
139 v7fs_inode_deallocate(struct v7fs_self *fs, v7fs_ino_t ino) argument
145 inode.inode_number = ino;
151 sb->freeinode[sb->nfreeinode++] = ino;
252 v7fs_ino_t ino = mem->inode_number; local
[all...]
/netbsd-current/sys/ufs/lfs/
H A Dlfs_alloc.c96 DLOG((DLOG_ALLOC, "lfs: ino %d wrd %d bit %d set\n", (int)(I), \
101 DLOG((DLOG_ALLOC, "lfs: ino %d wrd %d bit %d clr\n", (int)(I), \
235 ino_t *ino, int *gen)
252 LFS_GET_HEADFREE(fs, cip, cbp, ino);
255 KASSERT(*ino != LFS_UNUSED_INUM && *ino != LFS_IFILE_INUM);
257 *ino));
260 CLR_BITMAP_FREE(fs, *ino);
266 LFS_IENTRY(ifp, fs, *ino, bp);
269 *ino);
234 lfs_valloc(struct vnode *pvp, int mode, kauth_cred_t cred, ino_t *ino, int *gen) argument
323 lfs_valloc_fixed(struct lfs *fs, ino_t ino, int vers) argument
426 lfs_freelist_prev(struct lfs *fs, ino_t ino) argument
476 lfs_vfree(struct vnode *vp, ino_t ino, int mode) argument
713 ino_t ino, firstino, lastino, maxino; local
850 lfs_orphan(struct lfs *fs, ino_t ino) argument
874 ino_t ino = orphan[i]; local
[all...]
/netbsd-current/sbin/fsck_v7fs/
H A Dpathname.c58 connect_lost_and_found(struct v7fs_self *fs, v7fs_ino_t ino) argument
66 snprintf(name, sizeof(name), "%d", ino);
67 v7fs_directory_add_entry(fs, &lost_and_found, ino, name, strlen(name));
141 struct v7fs_inode *p, v7fs_ino_t ino)
149 arg->parent_ino = ino; /* My inode found. */
158 lookup_parent_from_file(struct v7fs_self *fs, v7fs_ino_t ino) argument
160 struct lookup_parent_arg arg = { .target_ino = ino, .parent_ino = 0 };
210 pathname_check_file(struct v7fs_self *fs, struct v7fs_inode *p, v7fs_ino_t ino) argument
216 if (ino == 1) /* reserved. */
220 if (!(parent_ino = lookup_parent_from_file(fs, ino)) ||
140 lookup_parent_from_file_subr(struct v7fs_self *fs, void *ctx, struct v7fs_inode *p, v7fs_ino_t ino) argument
232 pathname_check_dir(struct v7fs_self *fs, struct v7fs_inode *p, v7fs_ino_t ino) argument
271 pathname_subr(struct v7fs_self *fs, void *ctx __unused, struct v7fs_inode *p, v7fs_ino_t ino) argument
304 filename(struct v7fs_self *fs, v7fs_ino_t ino) argument
[all...]
H A Dinode.c99 v7fs_inode_check(struct v7fs_self *fs, struct v7fs_inode *p, v7fs_ino_t ino) argument
104 pwarn("*** partially allocated inode #%d", ino);
108 v7fs_inode_deallocate(fs, ino);
119 v7fs_ino_t ino)
124 if (ino != 1)
125 error = v7fs_inode_check(fs, p, ino);
118 ilistcheck_subr(struct v7fs_self *fs, void *ctx, struct v7fs_inode *p, v7fs_ino_t ino) argument
/netbsd-current/sys/arch/hppa/stand/xxboot/
H A Dreadufs.h79 int (*get_inode)(ino32_t ino, union ufs_dinode *dibuf);
116 int get_ffs_inode(ino32_t ino, union ufs_dinode *dibuf);
117 int get_lfs_inode(ino32_t ino, union ufs_dinode *dibuf);
119 #define ufs_get_inode(ino, di) ((ufs_info.fstype == UFSTYPE_FFS) ? \
120 get_ffs_inode((ino), (di)) : get_lfs_inode((ino), (di)))
123 # define ufs_get_inode(ino, di) (get_ffs_inode((ino), (di)))
126 # define ufs_get_inode(ino, di) (get_lfs_inode((ino), (d
[all...]
H A Dreadufs_lfs.c154 get_lfs_inode(ino32_t ino, union ufs_dinode *dibuf) argument
163 if (ino == LFS_IFILE_INUM)
167 printf("LFS: ino: %d\nifpb: %d, bsize: %d\n",
168 ino, fsi_lfs.ifpb, fsi.bsize);
171 ino / fsi_lfs.ifpb + fsi_lfs.ioffset,
173 i = ino % fsi_lfs.ifpb;
179 printf("LFS(%d): daddr: %d\n", ino, (int) daddr);
193 if (di->di_inumber == ino)
201 ino, di->di_mode, di->di_nlink, di->di_inumber,
/netbsd-current/sbin/restore/
H A Drestore.h126 ino_t ino; /* inumber of file */ member in struct:context
159 #define TSTINO(ino, map) \
160 (map[(u_int)((ino) - 1) / NBBY] & (1 << ((u_int)((ino) - 1) % NBBY)))
161 #define SETINO(ino, map) \
162 map[(u_int)((ino) - 1) / NBBY] |= 1 << ((u_int)((ino) - 1) % NBBY)
H A Drestore.c59 listfile(const char *name, ino_t ino, int type) argument
63 if (TSTINO(ino, dumpmap) == 0)
66 fprintf(stdout, "%10ju\t%s\n", (uintmax_t)ino, name);
75 addfile(const char *name, ino_t ino, int type) argument
81 if (TSTINO(ino, dumpmap) == 0) {
85 if (ino == UFS_WINO && command == 'i' && !vflag)
89 (uintmax_t)ino);
92 (void) genliteraldir(name, ino);
96 ep = lookupino(ino);
104 ep = addentry(name, ino, typ
117 deletefile(const char *name, ino_t ino, int type __unused) argument
208 nodeupdates(const char *name, ino_t ino, int type) argument
840 verifyfile(const char *name, ino_t ino, int type) argument
[all...]
H A Ddirs.c86 ino_t ino; member in struct:modeinfo
219 while (curfile.ino && (curfile.mode & IFMT) == IFDIR) {
229 treescan(const char *pname, ino_t ino, long (*todo)(const char *, ino_t, int)) argument
237 itp = inotablookup(ino);
242 (void) (*todo)(pname, ino, LEAF);
248 if ((*todo)(pname, ino, NODE) == FAIL)
293 ino_t ino; local
299 ino = UFS_ROOTINO;
304 if ((dp = searchdir(ino, name)) == NULL)
306 ino
538 ino_t ino; local
713 genliteraldir(const char *name, ino_t ino) argument
757 inodetype(ino_t ino) argument
809 inotablookup(ino_t ino) argument
[all...]
/netbsd-current/sbin/fsirand/
H A Dfsirand.c65 int needswap, ino, imax, is_ufs2; variable
153 for (ino = 0, imax = fs->fs_ipg * fs->fs_ncg; ino < imax;) {
155 sp = (off_t) FFS_FSBTODB(fs, ino_to_fsba(fs, ino)) *
159 err(1, "Seeking to inode %d failed", ino);
162 err(1, "Reading inodes %d+%d failed", ino, inopb);
168 ino,
177 ino,
184 if (++ino > imax)
192 err(1, "Seeking to inode %d failed", ino);
[all...]
/netbsd-current/sbin/dump/
H A Dtraverse.c63 static void writeextdata(union dinode *dp, ino_t ino, int added);
127 mapfileino(ino_t ino, u_int64_t *tape_size, int *dirskipped) argument
135 if (TSTINO(ino, usedinomap))
137 dp = getino(ino);
150 SETINO(ino, usedinomap);
152 SETINO(ino, dumpdirmap);
154 SETINO(ino, dumpinomap);
164 CLRINO(ino, usedinomap);
280 ino_t ino; local
286 for (map = dumpdirmap, ino
362 dirindir(ino_t ino, daddr_t blkno, int ind_level, off_t *filesize, u_int64_t *tape_size, int nodump) argument
416 ino_t ino; local
479 dumpino(union dinode *dp, ino_t ino) argument
609 dmpindir(union dinode *dp, ino_t ino, daddr_t blk, int ind_level, off_t *size) argument
655 blksout32(int32_t *blkp, int frags, ino_t ino) argument
687 blksout64(union dinode *dp, int64_t *blkp, int frags, ino_t ino, int last) argument
798 writeextdata(union dinode *dp, ino_t ino, int added) argument
860 dumpmap(char *map, int type, ino_t ino) argument
876 writeheader(ino_t ino) argument
[all...]
/netbsd-current/sbin/fsck_ext2fs/
H A Dinode.c618 u_int32_t ino = fs2h32(dirp->e2d_ino); local
620 if (ino == 0)
623 (ino == EXT2_ROOTINO || ino >= EXT2_FIRSTINO)
624 && ino <= maxino) {
625 idesc->id_parent = ino;
632 pinode(ino_t ino) argument
638 printf(" I=%llu ", (unsigned long long)ino);
639 if ((ino < EXT2_FIRSTINO && ino !
660 blkerror(ino_t ino, const char *type, daddr_t blk) argument
691 ino_t ino; local
741 freeino(ino_t ino) argument
[all...]
/netbsd-current/sys/arch/x68k/stand/boot_ufs/
H A Dreadufs_lfs.c22 static int get_lfs_inode(ino32_t ino, union ufs_dinode *dibuf);
157 get_lfs_inode(ino32_t ino, union ufs_dinode *dibuf) argument
166 if (ino == LFS_IFILE_INUM)
170 printf("LFS: ino: %d\nifpb: %d, bsize: %d\n",
171 ino, fsi_lfs.ifpb, fsi.bsize);
174 ino / fsi_lfs.ifpb + fsi_lfs.ioffset,
176 i = ino % fsi_lfs.ifpb;
182 printf("LFS(%d): daddr: %d\n", ino, (int) daddr);
202 if (di->di_inumber == ino)
210 ino, d
[all...]
/netbsd-current/sys/arch/sparc64/sparc64/
H A Dintr.c372 sun4v_intr_devino_to_sysino(uint64_t devhandle, uint64_t devino, uint64_t *ino) argument
375 return hv_intr_devino_to_sysino(devhandle, devino, ino);
377 *ino = devino;
382 sun4v_intr_setcookie(uint64_t devhandle, uint64_t ino, uint64_t cookie_value) argument
387 return hv_vintr_setcookie(devhandle, ino, cookie_value);
391 sun4v_intr_setenabled(uint64_t devhandle, uint64_t ino, uint64_t intr_enabled) argument
394 return hv_intr_setenabled(ino, intr_enabled);
396 return hv_vintr_setenabled(devhandle, ino, intr_enabled);
400 sun4v_intr_setstate(uint64_t devhandle, uint64_t ino, uint64_t intr_state) argument
403 return hv_intr_setstate(ino, intr_stat
409 sun4v_intr_settarget(uint64_t devhandle, uint64_t ino, uint64_t cpuid) argument
[all...]
/netbsd-current/external/bsd/am-utils/dist/scripts/
H A Dtest-attrcache.in73 ino=`ls -lLi $a/a | awk '{print $1}'`
74 if test -z "$ino"
84 if test $ino -ne $inode_a
109 ino=`ls -lLi $a/a | awk '{print $1}'`
110 if test -z "$ino"
120 if test $ino -ne $inode_b
/netbsd-current/sys/ufs/ufs/
H A Dufs_wapbl.h124 #define UFS_WAPBL_REGISTER_INODE(mp, ino, mode) \
125 if (mp->mnt_wapbl) wapbl_register_inode(mp->mnt_wapbl, ino, mode)
126 #define UFS_WAPBL_UNREGISTER_INODE(mp, ino, mode) \
127 if (mp->mnt_wapbl) wapbl_unregister_inode(mp->mnt_wapbl, ino, mode)
152 #define UFS_WAPBL_REGISTER_INODE(mp, ino, mode) do { } while (0)
153 #define UFS_WAPBL_UNREGISTER_INODE(mp, ino, mode) do { } while (0)
/netbsd-current/usr.sbin/installboot/
H A Dffs.c120 ffs_find_disk_blocks_ufs1(ib_params *params, ino_t ino, argument
161 FFS_FSBTODB(fs, ino_to_fsba(fs, ino)) + params->fstype->offset,
165 inode += ino_to_fsbo(fs, ino);
204 fprintf(stderr, "ino %lu blk %lu level %d\n", ino, blk,
230 fprintf(stderr, "ino %lu db %lu blksize %lu\n", ino,
244 (unsigned long long)ino, params->filesystem);
257 ffs_find_disk_blocks_ufs2(ib_params *params, ino_t ino, argument
298 FFS_FSBTODB(fs, ino_to_fsba(fs, ino))
398 uint32_t ino; local
541 uint32_t ino; local
[all...]
/netbsd-current/bin/pax/
H A Dtables.h55 * file hard link structure (hashed by dev/ino and chained) used to find the
59 char *name; /* name of first file seen with this ino/dev */
61 ino_t ino; /* files inode number */ member in struct:hrdlnk
146 ino_t ino; member in struct:atdir
/netbsd-current/sys/arch/sparc64/dev/
H A Dfhcreg.h75 #define FHC_INO(ino) ((ino) & 0x7)
/netbsd-current/sys/fs/filecorefs/
H A Dfilecore_node.c134 ino_t ino; local
140 KASSERT(key_len == sizeof(ino));
141 memcpy(&ino, key, key_len);
148 ip->i_number = ino;
152 if (ino == FILECORE_ROOTINO) {
163 if ((error = filecore_bread(fcmp, ino & FILECORE_INO_MASK,
170 fcdirentry(bp->b_data, ino >> FILECORE_INO_INDEX),
194 if (ino == FILECORE_ROOTINO)
/netbsd-current/lib/libc/compat/sys/
H A Dcompat_getdents.c55 ino_t ino; local
75 memcpy(&ino, &ndp->d_ino, sizeof(ino_t));
76 odp->d_ino = (uint32_t)ino;

Completed in 175 milliseconds

123456789