Home
last modified time | relevance | path

Searched refs:ino (Results 1 – 25 of 221) sorted by relevance

123456789

/netbsd-src/sbin/fsck_lfs/
H A Dpass0.c104 ino_t ino, plastino, nextino, lowfreeino, freehd; in pass0() local
116 freehd = ino = lfs_ci_getfree_head(fs, cip); in pass0()
119 while (ino) { in pass0()
120 if (lowfreeino > ino) in pass0()
121 lowfreeino = ino; in pass0()
122 if (ino >= maxino) { in pass0()
124 (unsigned long long)ino); in pass0()
127 if (visited[ino]) { in pass0()
129 (unsigned long long)ino); in pass0()
138 visited[ino] = 1; in pass0()
[all …]
H A Dinode.c98 ginode(ino_t ino) in ginode() argument
106 vp = vget(fs, ino); in ginode()
110 if (din_table[ino] == 0x0) { in ginode()
111 LFS_IENTRY(ifp, fs, ino, bp); in ginode()
114 din_table[ino] = daddr; in ginode()
525 ino_t ino; in findino() local
527 ino = lfs_dir_getino(fs, dirp); in findino()
528 if (ino == 0) in findino()
531 ino >= ULFS_ROOTINO && ino < maxino) { in findino()
532 idesc->id_parent = ino; in findino()
[all …]
H A Ddir.c296 direrror(ino_t ino, const char *errmesg) in direrror() argument
299 fileerror(ino, ino, errmesg); in direrror()
303 fileerror(ino_t cwd, ino_t ino, const char *errmesg) in fileerror() argument
309 pinode(ino); in fileerror()
312 getpathname(pathbuf, sizeof(pathbuf), cwd, ino); in fileerror()
313 if (ino < ULFS_ROOTINO || ino >= maxino) { in fileerror()
317 vp = vget(fs, ino); in fileerror()
551 makeentry(ino_t parent, ino_t ino, const char *name) in makeentry() argument
560 ino < ULFS_ROOTINO || ino >= maxino) in makeentry()
566 idesc.id_parent = ino; /* this is the inode to enter */ in makeentry()
[all …]
H A Dutilities.c186 getpathname(char *namebuf, size_t namebuflen, ino_t curdir, ino_t ino) in getpathname() argument
193 if (curdir == ino && ino == ULFS_ROOTINO) { in getpathname()
208 if (curdir != ino) { in getpathname()
212 while (ino != ULFS_ROOTINO) { in getpathname()
213 idesc.id_number = ino; in getpathname()
216 if ((ckinode(ginode(ino), &idesc) & FOUND) == 0) in getpathname()
220 idesc.id_parent = ino; in getpathname()
233 ino = idesc.id_number; in getpathname()
236 if (ino != ULFS_ROOTINO) in getpathname()
/netbsd-src/sys/ufs/lfs/
H A Dlfs_alloc.c235 ino_t *ino, int *gen) in lfs_valloc() argument
252 LFS_GET_HEADFREE(fs, cip, cbp, ino); in lfs_valloc()
255 KASSERT(*ino != LFS_UNUSED_INUM && *ino != LFS_IFILE_INUM); in lfs_valloc()
257 *ino)); in lfs_valloc()
260 CLR_BITMAP_FREE(fs, *ino); in lfs_valloc()
266 LFS_IENTRY(ifp, fs, *ino, bp); in lfs_valloc()
269 *ino); in lfs_valloc()
274 *ino, (uintmax_t)lfs_if_getnextfree(fs, ifp))); in lfs_valloc()
292 LFS_PUT_HEADFREE(fs, cip, cbp, *ino); in lfs_valloc()
323 lfs_valloc_fixed(struct lfs *fs, ino_t ino, int vers) in lfs_valloc_fixed() argument
[all …]
/netbsd-src/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) in mapfileino() argument
135 if (TSTINO(ino, usedinomap)) in mapfileino()
137 dp = getino(ino); in mapfileino()
150 SETINO(ino, usedinomap); in mapfileino()
152 SETINO(ino, dumpdirmap); in mapfileino()
154 SETINO(ino, dumpinomap); in mapfileino()
164 CLRINO(ino, usedinomap); in mapfileino()
280 ino_t ino; in mapdirs() local
286 for (map = dumpdirmap, ino = 1; ino < maxino; ino++) { in mapdirs()
[all …]
/netbsd-src/sbin/fsck_v7fs/
H A Dpathname.c58 connect_lost_and_found(struct v7fs_self *fs, v7fs_ino_t ino) in connect_lost_and_found() argument
66 snprintf(name, sizeof(name), "%d", ino); in connect_lost_and_found()
67 v7fs_directory_add_entry(fs, &lost_and_found, ino, name, strlen(name)); in connect_lost_and_found()
141 struct v7fs_inode *p, v7fs_ino_t ino) in lookup_parent_from_file_subr() argument
149 arg->parent_ino = ino; /* My inode found. */ in lookup_parent_from_file_subr()
158 lookup_parent_from_file(struct v7fs_self *fs, v7fs_ino_t ino) in lookup_parent_from_file() argument
160 struct lookup_parent_arg arg = { .target_ino = ino, .parent_ino = 0 }; in lookup_parent_from_file()
210 pathname_check_file(struct v7fs_self *fs, struct v7fs_inode *p, v7fs_ino_t ino) in pathname_check_file() argument
216 if (ino == 1) /* reserved. */ in pathname_check_file()
220 if (!(parent_ino = lookup_parent_from_file(fs, ino)) || in pathname_check_file()
[all …]
/netbsd-src/sbin/restore/
H A Drestore.c59 listfile(const char *name, ino_t ino, int type) in listfile() argument
63 if (TSTINO(ino, dumpmap) == 0) in listfile()
66 fprintf(stdout, "%10ju\t%s\n", (uintmax_t)ino, name); in listfile()
75 addfile(const char *name, ino_t ino, int type) in addfile() argument
81 if (TSTINO(ino, dumpmap) == 0) { in addfile()
85 if (ino == UFS_WINO && command == 'i' && !vflag) in addfile()
89 (uintmax_t)ino); in addfile()
92 (void) genliteraldir(name, ino); in addfile()
96 ep = lookupino(ino); in addfile()
104 ep = addentry(name, ino, type); in addfile()
[all …]
H A Ddirs.c86 ino_t ino; member
219 while (curfile.ino && (curfile.mode & IFMT) == IFDIR) { in skipdirs()
229 treescan(const char *pname, ino_t ino, long (*todo)(const char *, ino_t, int)) in treescan() argument
237 itp = inotablookup(ino); in treescan()
242 (void) (*todo)(pname, ino, LEAF); in treescan()
248 if ((*todo)(pname, ino, NODE) == FAIL) in treescan()
293 ino_t ino; in pathsearch() local
299 ino = UFS_ROOTINO; in pathsearch()
304 if ((dp = searchdir(ino, name)) == NULL) in pathsearch()
306 ino = dp->d_ino; in pathsearch()
[all …]
H A Drestore.h126 ino_t ino; /* inumber of file */ member
159 #define TSTINO(ino, map) \ argument
160 (map[(u_int)((ino) - 1) / NBBY] & (1 << ((u_int)((ino) - 1) % NBBY)))
161 #define SETINO(ino, map) \ argument
162 map[(u_int)((ino) - 1) / NBBY] |= 1 << ((u_int)((ino) - 1) % NBBY)
/netbsd-src/sbin/fsck_ext2fs/
H A Dinode.c618 u_int32_t ino = fs2h32(dirp->e2d_ino); in findino() local
620 if (ino == 0) in findino()
623 (ino == EXT2_ROOTINO || ino >= EXT2_FIRSTINO) in findino()
624 && ino <= maxino) { in findino()
625 idesc->id_parent = ino; in findino()
632 pinode(ino_t ino) in pinode() argument
638 printf(" I=%llu ", (unsigned long long)ino); in pinode()
639 if ((ino < EXT2_FIRSTINO && ino != EXT2_ROOTINO) || ino > maxino) in pinode()
641 dp = ginode(ino); in pinode()
660 blkerror(ino_t ino, const char *type, daddr_t blk) in blkerror() argument
[all …]
H A Ddir.c290 direrror(ino_t ino, const char *errmesg) in direrror() argument
293 fileerror(ino, ino, errmesg); in direrror()
297 fileerror(ino_t cwd, ino_t ino, const char *errmesg) in fileerror() argument
303 pinode(ino); in fileerror()
305 getpathname(pathbuf, sizeof(pathbuf), cwd, ino); in fileerror()
306 if ((ino < EXT2_FIRSTINO && ino != EXT2_ROOTINO) || ino > maxino) { in fileerror()
310 dp = ginode(ino); in fileerror()
520 makeentry(ino_t parent, ino_t ino, const char *name) in makeentry() argument
528 (ino < EXT2_FIRSTINO && ino < EXT2_ROOTINO) || ino >= maxino) in makeentry()
534 idesc.id_parent = ino; /* this is the inode to enter */ in makeentry()
[all …]
/netbsd-src/lib/libc/db/hash/
H A Dhash_page.c189 uint16_t *ino; in __split_page() local
209 ino = (uint16_t *)(void *)(op = old_bufp->page); in __split_page()
214 for (n = 1, ndx = 1; n < ino[0]; n += 2) { in __split_page()
215 if (ino[n + 1] < REAL_KEY) { in __split_page()
223 key.data = (uint8_t *)op + ino[n]; in __split_page()
224 key.size = off - ino[n]; in __split_page()
230 copyto = ino[n + 1] + diff; in __split_page()
231 memmove(op + copyto, op + ino[n + 1], in __split_page()
232 (size_t)(off - ino[n + 1])); in __split_page()
233 ino[ndx] = copyto + ino[n] - ino[n + 1]; in __split_page()
[all …]
/netbsd-src/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;) { in fixinodes()
155 sp = (off_t) FFS_FSBTODB(fs, ino_to_fsba(fs, ino)) * in fixinodes()
159 err(1, "Seeking to inode %d failed", ino); in fixinodes()
162 err(1, "Reading inodes %d+%d failed", ino, inopb); in fixinodes()
168 ino, in fixinodes()
177 ino, in fixinodes()
184 if (++ino > imax) in fixinodes()
192 err(1, "Seeking to inode %d failed", ino); in fixinodes()
195 err(1, "Writing inodes %d+%d failed", ino, inopb); in fixinodes()
[all …]
/netbsd-src/sys/fs/v7fs/
H A Dv7fs_file.c70 const char *name, size_t namelen, v7fs_ino_t *ino) in v7fs_file_lookup_by_name() argument
87 *ino = lookup_arg.inode_number; in v7fs_file_lookup_by_name()
88 DPRINTF("done. ino=%d\n", *ino); in v7fs_file_lookup_by_name()
131 v7fs_ino_t *ino) in v7fs_file_allocate() argument
139 ino) == 0) { in v7fs_file_allocate()
145 if ((error = v7fs_inode_allocate(fs, ino))) in v7fs_file_allocate()
150 inode.inode_number = *ino; in v7fs_file_allocate()
164 v7fs_inode_deallocate(fs, *ino); in v7fs_file_allocate()
186 v7fs_inode_deallocate(fs, *ino); in v7fs_file_allocate()
192 v7fs_inode_deallocate(fs, *ino); in v7fs_file_allocate()
[all …]
H A Dv7fs_inode.c87 v7fs_inode_number_sanity(const struct v7fs_superblock *sb, v7fs_ino_t ino) in v7fs_inode_number_sanity() argument
90 if (ino < V7FS_ROOT_INODE || ((size_t)ino >= V7FS_MAX_INODE(sb))) { in v7fs_inode_number_sanity()
91 DPRINTF("invalid inode#%d (%d-%zu)\n", ino, in v7fs_inode_number_sanity()
100 v7fs_inode_allocate(struct v7fs_self *fs, v7fs_ino_t *ino) in v7fs_inode_allocate() argument
105 *ino = 0; in v7fs_inode_allocate()
130 *ino = inode_number; in v7fs_inode_allocate()
139 v7fs_inode_deallocate(struct v7fs_self *fs, v7fs_ino_t ino) in v7fs_inode_deallocate() argument
145 inode.inode_number = ino; in v7fs_inode_deallocate()
151 sb->freeinode[sb->nfreeinode++] = ino; in v7fs_inode_deallocate()
252 v7fs_ino_t ino = mem->inode_number; v7fs_inode_writeback() local
[all...]
/netbsd-src/usr.sbin/installboot/
H A Dffs.c120 ffs_find_disk_blocks_ufs1(ib_params *params, ino_t ino, in ffs_find_disk_blocks_ufs1() argument
161 FFS_FSBTODB(fs, ino_to_fsba(fs, ino)) + params->fstype->offset, in ffs_find_disk_blocks_ufs1()
165 inode += ino_to_fsbo(fs, ino); in ffs_find_disk_blocks_ufs1()
204 fprintf(stderr, "ino %lu blk %lu level %d\n", ino, blk, in ffs_find_disk_blocks_ufs1()
230 fprintf(stderr, "ino %lu db %lu blksize %lu\n", ino, in ffs_find_disk_blocks_ufs1()
244 (unsigned long long)ino, params->filesystem); in ffs_find_disk_blocks_ufs1()
257 ffs_find_disk_blocks_ufs2(ib_params *params, ino_t ino, in ffs_find_disk_blocks_ufs2() argument
298 FFS_FSBTODB(fs, ino_to_fsba(fs, ino)) + params->fstype->offset, in ffs_find_disk_blocks_ufs2()
302 inode += ino_to_fsbo(fs, ino); in ffs_find_disk_blocks_ufs2()
341 fprintf(stderr, "ino %lu blk %llu level %d\n", ino, in ffs_find_disk_blocks_ufs2()
[all …]
/netbsd-src/sbin/fsck_ffs/
H A Ddir.c315 uint32_t ino; in dircheck() local
323 ino = iswap32(dp->d_ino); in dircheck()
333 if (ino >= maxino || in dircheck()
338 if (ino == 0) { in dircheck()
408 ino, reclen, namlen, type, dp->d_name); in dircheck()
413 direrror(ino_t ino, const char *errmesg) in direrror() argument
416 fileerror(ino, ino, errmesg); in direrror()
420 fileerror(ino_t cwd, ino_t ino, const char *errmesg) in fileerror() argument
427 pinode(ino); in fileerror()
429 getpathname(pathbuf, sizeof(pathbuf), cwd, ino); in fileerror()
[all …]
/netbsd-src/external/bsd/iscsi/dist/src/osd/
H A Dosdfs.c247 static int entry_del(kdev_t dev, ino_t dir_ino, ino_t ino, const char *name, uint64_t *new_size) { in entry_del() argument
309 static int entry_num(kdev_t dev, ino_t ino) { in entry_num() argument
314 if (entries_get(dev, ino, &entries, &num_entries, &size)!=0) { in entry_num()
318 iscsi_trace(TRACE_OSDFS, "ino %li has %i entries\n", ino, num_entries); in entry_num()
346 ino_t ino = ObjectID; in osdfs_get_inode() local
354 if ((inode=iget(sb, ino))==NULL) { in osdfs_get_inode()
369 ino_t ino = inode->i_ino; in osdfs_read_inode() local
371 uint64_t uid = ino; in osdfs_read_inode()
376 (unsigned) ino, MAJOR(dev), MINOR(dev)); in osdfs_read_inode()
407 ino_t ino = inode->i_ino; in osdfs_write_inode() local
[all …]
/netbsd-src/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) ? \ argument
120 get_ffs_inode((ino), (di)) : get_lfs_inode((ino), (di)))
123 # define ufs_get_inode(ino, di) (get_ffs_inode((ino), (di))) argument
126 # define ufs_get_inode(ino, di) (get_lfs_inode((ino), (di))) argument
/netbsd-src/external/gpl2/gmake/dist/
H A Ddir.c234 ino_t ino[3]; member
236 ino_t ino; member
256 ^ ((unsigned int) key->ino[0] in directory_contents_hash_1()
257 + (unsigned int) key->ino[1] in directory_contents_hash_1()
258 + (unsigned int) key->ino[2])); in directory_contents_hash_1()
260 hash = ((unsigned int) key->dev << 4) ^ (unsigned int) key->ino; in directory_contents_hash_1()
279 ^ ~((unsigned int) key->ino[0] in directory_contents_hash_2()
280 + (unsigned int) key->ino[1] in directory_contents_hash_2()
281 + (unsigned int) key->ino[2])); in directory_contents_hash_2()
283 hash = ((unsigned int) key->dev << 4) ^ (unsigned int) ~key->ino; in directory_contents_hash_2()
[all …]
/netbsd-src/sys/arch/sparc64/sparc64/
H A Dintr.c372 sun4v_intr_devino_to_sysino(uint64_t devhandle, uint64_t devino, uint64_t *ino) in sun4v_intr_devino_to_sysino() argument
375 return hv_intr_devino_to_sysino(devhandle, devino, ino); in sun4v_intr_devino_to_sysino()
377 *ino = devino; in sun4v_intr_devino_to_sysino()
382 sun4v_intr_setcookie(uint64_t devhandle, uint64_t ino, uint64_t cookie_value) in sun4v_intr_setcookie() argument
387 return hv_vintr_setcookie(devhandle, ino, cookie_value); in sun4v_intr_setcookie()
391 sun4v_intr_setenabled(uint64_t devhandle, uint64_t ino, uint64_t intr_enabled) in sun4v_intr_setenabled() argument
394 return hv_intr_setenabled(ino, intr_enabled); in sun4v_intr_setenabled()
396 return hv_vintr_setenabled(devhandle, ino, intr_enabled); in sun4v_intr_setenabled()
400 sun4v_intr_setstate(uint64_t devhandle, uint64_t ino, uint64_t intr_state) in sun4v_intr_setstate() argument
403 return hv_intr_setstate(ino, intr_state); in sun4v_intr_setstate()
[all …]
/netbsd-src/usr.bin/du/
H A Ddu.c281 linkchk(dev_t dev, ino_t ino) in linkchk() argument
285 ino_t ino; in linkchk() member
300 if (dev == 0 && ino == 0) { in linkchk()
327 if (ohtable[i].ino || ohtable[i].dev) in linkchk()
328 linkchk(ohtable[i].dev, ohtable[i].ino); in linkchk()
336 tmp |= ino; in linkchk()
342 while (htable[h].ino || htable[h].dev) { in linkchk()
343 if ((htable[h].ino == ino) && (htable[h].dev == dev)) in linkchk()
350 htable[h].ino = ino; in linkchk()
/netbsd-src/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) in get_lfs_inode() argument
166 if (ino == LFS_IFILE_INUM) in get_lfs_inode()
171 ino, fsi_lfs.ifpb, fsi.bsize); in get_lfs_inode()
174 ino / fsi_lfs.ifpb + fsi_lfs.ioffset, in get_lfs_inode()
176 i = ino % fsi_lfs.ifpb; in get_lfs_inode()
182 printf("LFS(%d): daddr: %d\n", ino, (int) daddr); in get_lfs_inode()
202 if (di->di_inumber == ino) in get_lfs_inode()
210 ino, di->di_mode, di->di_nlink, di->di_inumber, in get_lfs_inode()
/netbsd-src/sys/fs/filecorefs/
H A Dfilecore_node.c134 ino_t ino; in filecore_loadvnode() local
140 KASSERT(key_len == sizeof(ino)); in filecore_loadvnode()
141 memcpy(&ino, key, key_len); in filecore_loadvnode()
148 ip->i_number = ino; in filecore_loadvnode()
152 if (ino == FILECORE_ROOTINO) { in filecore_loadvnode()
163 if ((error = filecore_bread(fcmp, ino & FILECORE_INO_MASK, in filecore_loadvnode()
170 fcdirentry(bp->b_data, ino >> FILECORE_INO_INDEX), in filecore_loadvnode()
194 if (ino == FILECORE_ROOTINO) in filecore_loadvnode()

123456789