| /mirbsd/src/sys/ufs/ext2fs/ |
| D | ext2fs_extern.h | 40 struct inode; 59 int ext2fs_alloc(struct inode *, ufs1_daddr_t, ufs1_daddr_t , struct ucred *, 61 int ext2fs_realloccg(struct inode *, ufs1_daddr_t, ufs1_daddr_t, int, int, 64 int ext2fs_inode_alloc(struct inode *pip, mode_t mode, struct ucred *, 66 daddr_t ext2fs_blkpref(struct inode *, ufs1_daddr_t, int, ufs1_daddr_t *); 67 void ext2fs_blkfree(struct inode *, ufs1_daddr_t); 68 int ext2fs_inode_free(struct inode *pip, ino_t ino, mode_t mode); 71 int ext2fs_buf_alloc(struct inode *, daddr_t, int, struct ucred *, 79 u_int64_t ext2fs_size(struct inode *); 80 int ext2fs_setsize(struct inode *, u_int64_t); [all …]
|
| D | ext2fs_alloc.c | 56 static ufs1_daddr_t ext2fs_alloccg(struct inode *, int, ufs1_daddr_t, int); 59 static u_long ext2fs_hashalloc(struct inode *, int, long, int, 60 ufs1_daddr_t (*)(struct inode *, int, ufs1_daddr_t, int)); 61 static ufs1_daddr_t ext2fs_nodealloccg(struct inode *, int, ufs1_daddr_t, int); 83 struct inode *ip; in ext2fs_alloc() 138 ext2fs_inode_alloc(struct inode *pip, mode_t mode, struct ucred *cred, in ext2fs_inode_alloc() 143 struct inode *ip; in ext2fs_inode_alloc() 227 struct inode *ip; in ext2fs_blkpref() 274 struct inode *ip; in ext2fs_hashalloc() 278 ufs1_daddr_t (*allocator)(struct inode *, int, ufs1_daddr_t, int); [all …]
|
| /mirbsd/src/sys/ufs/ufs/ |
| D | ufs_extern.h | 43 struct inode; 113 int ufs_ihashins(struct inode *); 114 void ufs_ihashrem(struct inode *); 121 void ufs_dirbad(struct inode *, doff_t, char *); 123 void ufs_makedirentry(struct inode *, struct componentname *, 127 int ufs_dirremove(struct vnode *, struct inode *, int, int); 128 int ufs_dirrewrite(struct inode *, struct inode *, 130 int ufs_dirempty(struct inode *, ino_t, struct ucred *); 131 int ufs_checkpath(struct inode *, struct inode *, struct ucred *); 151 int softdep_setup_directory_add(struct buf *, struct inode *, off_t, [all …]
|
| D | dirhash.h | 119 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 …]
|
| D | quota.h | 122 struct inode; 133 int ufs_quota_alloc_blocks2(struct inode *, int32_t, struct ucred *, enum ufs_quota_flags); 134 int ufs_quota_free_blocks2(struct inode *, int32_t, struct ucred *, enum ufs_quota_flags); 135 int ufs_quota_alloc_inode2(struct inode *, struct ucred *, enum ufs_quota_flags); 136 int ufs_quota_free_inode2(struct inode *, struct ucred *, enum ufs_quota_flags); 138 int ufs_quota_delete(struct inode *); 140 int getinoquota(struct inode *);
|
| D | ufs_quota_stub.c | 22 getinoquota(struct inode *ip) { in getinoquota() 27 ufs_quota_alloc_blocks2(struct inode *ip, daddr_t change, in ufs_quota_alloc_blocks2() 33 ufs_quota_free_blocks2(struct inode *ip, daddr_t change, in ufs_quota_free_blocks2() 39 ufs_quota_alloc_inode2(struct inode *ip, struct ucred *cred, in ufs_quota_alloc_inode2() 45 ufs_quota_free_inode2(struct inode *ip, struct ucred *cred, in ufs_quota_free_inode2() 70 ufs_quota_delete(struct inode *ip) { in ufs_quota_delete()
|
| D | ufs_ihash.c | 48 LIST_HEAD(ihashhead, inode) *ihashtbl; 73 struct inode *ip; 96 struct inode *ip; 119 struct inode *ip; in ufs_ihashins() 121 struct inode *curip; 152 struct inode *ip; in ufs_ihashrem()
|
| D | inode.h | 64 struct inode { struct 65 LIST_ENTRY(inode) i_hash; /* Hash chain */ 126 int (* iv_truncate)(struct inode *, off_t, int, argument 128 int (* iv_update)(struct inode *, struct timespec *, struct timespec *, 130 int (* iv_inode_alloc)(struct inode *, mode_t mode, 132 int (* iv_inode_free)(struct inode *, ino_t ino, mode_t mode); 133 int (* iv_buf_alloc)(struct inode *, off_t, int, struct ucred *, 135 int (* iv_bufatoff)(struct inode *, off_t offset, char **res, 271 #define VTOI(vp) ((struct inode *)(vp)->v_data)
|
| /mirbsd/src/sys/ufs/ffs/ |
| D | ffs_extern.h | 83 struct inode; 101 int ffs_alloc(struct inode *, daddr_t, daddr_t , int, struct ucred *, 103 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 *, ino_t, mode_t); 108 int ffs_freefile(struct inode *, ino_t, mode_t); 110 daddr_t ffs_blkpref(struct inode *, daddr_t, int, daddr_t *); 111 void ffs_blkfree(struct inode *, daddr_t, long); 115 int ffs_balloc(struct inode *, off_t, int, struct ucred *, int, struct buf **); 119 int ffs_update(struct inode *, struct timespec *, struct timespec *, int); [all …]
|
| D | ffs_softdep_stub.c | 80 struct inode *ip; 99 struct inode *ip; in softdep_setup_allocdirect() 113 struct inode *ip; in softdep_setup_allocindir_page() 128 struct inode *ip; 139 struct inode *ip; in softdep_setup_freeblocks() 159 struct inode *dp; 172 struct inode *dp; in softdep_change_directoryentry_offset() 185 struct inode *dp; 186 struct inode *ip; 196 struct inode *dp; [all …]
|
| D | ffs_alloc.c | 59 static daddr_t ffs_alloccg(struct inode *, int, daddr_t, int); 60 static daddr_t ffs_alloccgblk(struct inode *, struct buf *, daddr_t); 61 static daddr_t ffs_clusteralloc(struct inode *, int, daddr_t, int); 62 static ino_t ffs_dirpref(struct inode *); 63 static daddr_t ffs_fragextend(struct inode *, int, long, int, int); 65 static u_long ffs_hashalloc(struct inode *, int, long, int, 66 daddr_t (*)(struct inode *, int, daddr_t, int)); 67 static daddr_t ffs_nodealloccg(struct inode *, int, daddr_t, int); 71 static int ffs_checkblk(struct inode *, daddr_t, long); 95 register struct inode *ip; in ffs_alloc() [all …]
|
| /mirbsd/src/sys/isofs/cd9660/ |
| D | cd9660_node.c | 259 if (ip->inode.iso_mode == 0) 312 inop->inode.iso_mode = S_IFDIR; 317 inop->inode.iso_links = 1; 319 inop->inode.iso_mode = S_IFREG; 320 inop->inode.iso_links = 1; 334 inop->inode.iso_mode |= S_IRUSR; 336 inop->inode.iso_mode |= S_IXUSR; 338 inop->inode.iso_mode |= S_IRGRP; 340 inop->inode.iso_mode |= S_IXGRP; 342 inop->inode.iso_mode |= S_IROTH; [all …]
|
| D | cd9660_rrip.c | 93 ana->inop->inode.iso_mode = isonum_733(p->mode); 94 ana->inop->inode.iso_uid = isonum_733(p->uid); 95 ana->inop->inode.iso_gid = isonum_733(p->gid); 96 ana->inop->inode.iso_links = isonum_733(p->links); 362 &ana->inop->inode.iso_mtime); 365 bzero(&ana->inop->inode.iso_mtime, 370 &ana->inop->inode.iso_atime); 373 ana->inop->inode.iso_atime = 374 ana->inop->inode.iso_mtime; 378 &ana->inop->inode.iso_ctime); [all …]
|
| /mirbsd/src/usr.sbin/makefs/ |
| D | walk.c | 121 cur->inode->serno = cur->parent->inode->serno; in walk_dir() 133 cur->inode->serno = vinode++; in walk_dir() 141 curino = link_check(cur->inode); in walk_dir() 143 free(cur->inode); in walk_dir() 144 cur->inode = curino; in walk_dir() 145 cur->inode->nlink++; in walk_dir() 152 if (!cur->inode->serno) in walk_dir() 153 cur->inode->serno = vinode++; in walk_dir() 182 (cur->inode = calloc(1, sizeof(fsinode))) == NULL) in create_fsnode() 185 cur->inode->nlink = 1; in create_fsnode() [all …]
|
| D | ffs.c | 601 } else if ((node->inode->flags & FI_SIZED) == 0) { in ffs_size_dir() 603 node->inode->flags |= FI_SIZED; in ffs_size_dir() 607 (long long)node->inode->st.st_size); in ffs_size_dir() 610 ADDSIZE(node->inode->st.st_size); in ffs_size_dir() 639 dinp->di_mode = cur->inode->st.st_mode; in ffs_build_dinode1() 640 dinp->di_nlink = cur->inode->nlink; in ffs_build_dinode1() 641 dinp->di_size = cur->inode->st.st_size; in ffs_build_dinode1() 642 dinp->di_atime = cur->inode->st.st_atime; in ffs_build_dinode1() 643 dinp->di_mtime = cur->inode->st.st_mtime; in ffs_build_dinode1() 644 dinp->di_ctime = cur->inode->st.st_ctime; in ffs_build_dinode1() [all …]
|
| D | cd9660.c | 778 cd9660_time_915(makefs_root->inode->st.st_mtime, in cd9660_setup_root_node() 780 cd9660_time_915(makefs_root->inode->st.st_mtime, in cd9660_setup_root_node() 782 cd9660_time_915(makefs_root->inode->st.st_mtime, in cd9660_setup_root_node() 937 newnode->fileDataLength = node->inode->st.st_size; in cd9660_translate_node() 943 cd9660_time_915(node->inode->st.st_mtime, newnode->isoDirRecord->date); in cd9660_translate_node() 1907 fsinode *inode; in cd9660_compute_offsets() local 1988 inode = child->node->inode; in cd9660_compute_offsets() 1989 if ((inode->flags & FI_ALLOCATED) == 0) { in cd9660_compute_offsets() 1990 inode->ino = in cd9660_compute_offsets() 1993 inode->flags |= FI_ALLOCATED; in cd9660_compute_offsets() [all …]
|
| /mirbsd/src/usr.bin/fstat/ |
| D | isofs.c | 80 struct iso_node inode; in isofs_filestat() local 82 if (!KVM_READ(VTOI(vp), &inode, sizeof (inode))) { in isofs_filestat() 87 fsp->fsid = inode.i_dev & 0xffff; in isofs_filestat() 88 fsp->fileid = (long)inode.i_number; in isofs_filestat() 89 fsp->mode = inode.inode.iso_mode; in isofs_filestat() 90 fsp->size = inode.i_size; in isofs_filestat() 91 fsp->rdev = inode.i_dev; in isofs_filestat()
|
| D | fstat.c | 504 struct inode inode; in ufs_filestat() local 506 if (!KVM_READ(VTOI(vp), &inode, sizeof (inode))) { in ufs_filestat() 511 fsp->fsid = inode.i_dev & 0xffff; in ufs_filestat() 512 fsp->fileid = (long)inode.i_number; in ufs_filestat() 513 fsp->mode = inode.i_ffs_mode; in ufs_filestat() 514 fsp->size = inode.i_ffs_size; in ufs_filestat() 515 fsp->rdev = inode.i_ffs_rdev; in ufs_filestat() 523 struct inode inode; in ext2fs_filestat() local 525 if (!KVM_READ(VTOI(vp), &inode, sizeof (inode))) { in ext2fs_filestat() 530 fsp->fsid = inode.i_dev & 0xffff; in ext2fs_filestat() [all …]
|
| /mirbsd/src/usr.sbin/makefs/ffs/ |
| D | ffs_extern.h | 55 int ffs_alloc(struct inode *, daddr_t, daddr_t, int, daddr_t *); 56 daddr_t ffs_blkpref_ufs1(struct inode *, daddr_t, int, int32_t *); 57 daddr_t ffs_blkpref_ufs2(struct inode *, daddr_t, int, int64_t *); 58 void ffs_blkfree(struct inode *, daddr_t, long); 62 int ffs_balloc(struct inode *, off_t, int, struct buf **); 79 int ufs_getlbns(struct inode *, daddr_t, struct indir *, int *);
|
| D | ffs_alloc.c | 72 static daddr_t ffs_alloccg(struct inode *, int, daddr_t, int); 73 static daddr_t ffs_alloccgblk(struct inode *, struct buf *, daddr_t); 74 static daddr_t ffs_hashalloc(struct inode *, int, daddr_t, int, 75 daddr_t (*)(struct inode *, int, daddr_t, int)); 102 ffs_alloc(struct inode *ip, daddr_t lbn __unused, daddr_t bpref, int size, in ffs_alloc() 160 ffs_blkpref_ufs1(struct inode *ip, daddr_t lbn, int indx, int32_t *bap) in ffs_blkpref_ufs1() 199 ffs_blkpref_ufs2(struct inode *ip, daddr_t lbn, int indx, int64_t *bap) in ffs_blkpref_ufs2() 251 ffs_hashalloc(struct inode *ip, int cg, daddr_t pref, int size, in ffs_hashalloc() 252 daddr_t (*allocator)(struct inode *, int, daddr_t, int)) in ffs_hashalloc() argument 300 ffs_alloccg(struct inode *ip, int cg, daddr_t bpref, int size) in ffs_alloccg() [all …]
|
| /mirbsd/src/usr.sbin/makefs/nbsrc/sys/ufs/ffs/ |
| D | ffs_extern.h | 50 struct inode; 90 int ffs_alloc(struct inode *, daddr_t, daddr_t , int, int, kauth_cred_t, 92 int ffs_realloccg(struct inode *, daddr_t, daddr_t, int, int , 95 daddr_t ffs_blkpref_ufs1(struct inode *, daddr_t, int, int, int32_t *); 96 daddr_t ffs_blkpref_ufs2(struct inode *, daddr_t, int, int, int64_t *); 97 int ffs_blkalloc(struct inode *, daddr_t, long); 153 void ffs_snapgone(struct inode *); 193 void ffs_load_inode(struct buf *, struct inode *, struct fs *, ino_t); 201 void ffs_itimes(struct inode *, const struct timespec *,
|
| /mirbsd/src/usr.sbin/quot/ |
| D | quot.c | 313 ino_t inode, maxino; in dofsizes() local 324 for (inode = 0; inode < maxino; inode++) { in dofsizes() 326 if ((ip = get_inode(fd, super, inode)) in dofsizes() 384 ino_t inode, maxino; in douser() local 390 for (inode = 0; inode < maxino; inode++) { in douser() 392 if ((ip = get_inode(fd, super, inode)) in douser() 424 ino_t inode, inode1; in donames() local 434 while (scanf("%d", &inode) == 1) { in donames() 435 if (inode < 0 || inode > maxino) { in donames() 437 fprintf(stderr, "invalid inode %d\n", inode); in donames() [all …]
|
| /mirbsd/src/usr.sbin/makefs/cd9660/ |
| D | iso9660_rrip.c | 383 if ((node->node != NULL) && (node->node->inode != NULL)) { in cd9660_rrip_initialize_inode() 400 node->node->inode != NULL && in cd9660_rrip_initialize_inode() 401 S_ISLNK(node->node->inode->st.st_mode)) in cd9660_rrip_initialize_inode() 405 if (node->node->inode != NULL && in cd9660_rrip_initialize_inode() 406 ((S_ISCHR(node->node->inode->st.st_mode) || in cd9660_rrip_initialize_inode() 407 S_ISBLK(node->node->inode->st.st_mode)))) { in cd9660_rrip_initialize_inode() 436 parent->node->inode != NULL) { in cd9660_rrip_initialize_node() 445 grandparent->node->inode != NULL) { in cd9660_rrip_initialize_node() 693 (((pxinfo->inode->st.st_mode & 0111) ? 0555 : 0444) | in cd9660node_rrip_px() 695 pxinfo->inode->st.st_mode) & ~07222 : pxinfo->inode->st.st_mode, in cd9660node_rrip_px() [all …]
|
| D | cd9660_write.c | 293 fsinode *inode = writenode->node->inode; in cd9660_write_file() local 295 if ((inode->flags & FI_WRITTEN) != 0) { in cd9660_write_file() 297 (int)inode->st.st_ino)); in cd9660_write_file() 300 __func__, (int)inode->st.st_ino, inode->ino)); in cd9660_write_file() 301 inode->flags |= FI_WRITTEN; in cd9660_write_file()
|
| /mirbsd/src/sbin/ffsinfo/ |
| D | ffsinfo.c | 435 dump_whole_inode(ino_t inode, int fsi, int level) in dump_whole_inode() argument 449 ino=ginode(inode, fsi); in dump_whole_inode() 459 snprintf(comment, sizeof(comment), "Inode 0x%08x", inode); in dump_whole_inode() 482 inode); in dump_whole_inode() 496 inode); in dump_whole_inode() 508 "Inode 0x%08x: indirect 1->%d", inode, ind2ctr); in dump_whole_inode() 523 inode); in dump_whole_inode() 538 "Inode 0x%08x: indirect 2->%d", inode, ind3ctr); in dump_whole_inode() 552 "Inode 0x%08x: indirect 2->%d->%d", inode, in dump_whole_inode()
|