/src/sys/ufs/mfs/ |
mfs_miniroot.c | 40 #include <ufs/ffs/fs.h> 52 struct fs *fs = (struct fs *)((char *)base + SBLOCK_UFS1); local in function:mfs_initminiroot 60 if (fs->fs_magic != FS_UFS1_MAGIC || fs->fs_bsize > MAXBSIZE || 61 fs->fs_bsize < sizeof(struct fs)) 65 mfs_rootsize = fs->fs_fsize * fs->fs_size [all...] |
/src/usr.sbin/fstyp/ |
ufs.c | 47 #include <ufs/ffs/fs.h> 57 struct fs *fs; local in function:fstyp_ufs 67 fs = (struct fs *)read_buf(fp, superblock, SBLOCKSIZE); 68 if (fs == NULL) 71 if (fs->fs_magic == FS_UFS2EA_MAGIC) 72 fs->fs_magic = FS_UFS2_MAGIC; 73 else if (fs->fs_magic == FS_UFS2EA_MAGIC_SWAPPED) 74 fs->fs_magic = FS_UFS2_MAGIC_SWAPPED [all...] |
ext2fs.c | 63 e2sb_t *fs; local in function:fstyp_ext2fs 66 fs = read_buf(fp, EXT2FS_SB_OFFSET, 512); 67 if (fs == NULL) 71 if (fs->s_magic == EXT2_SUPER_MAGIC && 72 fs->s_rev_level == EXT2_DYNAMIC_REV) { 76 free(fs); 80 s_volume_name = fs->s_volume_name; 82 s_volume_name[sizeof(fs->s_volume_name) - 1] = '\0'; 88 free(fs);
|
/src/sys/ufs/ffs/ |
ffs_quota2.c | 44 #include <ufs/ffs/fs.h> 50 struct fs *fs = ump->um_fs; local in function:ffs_quota2_mount 55 if ((fs->fs_flags & FS_DOQUOTA2) == 0) 59 ump->umq2_bsize = fs->fs_bsize; 60 ump->umq2_bmask = fs->fs_qbmask; 61 if (fs->fs_quota_magic != Q2_HEAD_MAGIC) { 66 if ((fs->fs_quota_flags & FS_Q2_DO_TYPE(USRQUOTA)) && 67 fs->fs_quotafile[USRQUOTA] == 0) { 72 if ((fs->fs_quota_flags & FS_Q2_DO_TYPE(GRPQUOTA)) & [all...] |
/src/distrib/alpha/rz25dist/ |
Makefile | 23 mount-fs: 35 build-fs: 65 unmount-fs: 69 diskimage.gz: mount-fs build-fs unmount-fs 82 bin.tar.gz: mount-fs build-fs 88 etc.tar.gz: mount-fs build-fs [all...] |
/src/lib/librefuse/ |
fuse_internal.h | 52 struct fuse_fs *fs; /* The base filesystem layer. */ member in struct:fuse
|
/src/sys/arch/sparc/sparc/ |
process_machdep.c | 159 struct fpstate *fs; local in function:process_read_fpregs 161 if ((fs = l->l_md.md_fpstate) == NULL) 162 fs = &initfpstate; 164 *regs = fs->fs_reg; 171 struct fpstate *fs; local in function:process_write_fpregs 173 if ((fs = l->l_md.md_fpstate) == NULL) { 174 fs = kmem_zalloc(sizeof(*fs), KM_SLEEP); 175 l->l_md.md_fpstate = fs; 178 fs->fs_qsize = 0 [all...] |
/src/sys/arch/sparc64/sparc64/ |
process_machdep.c | 206 const struct fpstate64 *fs; local in function:process_read_fpregs 208 if ((fs = l->l_md.md_fpstate) == NULL) 209 fs = &initfpstate; 213 *regs = fs->fs_reg; 222 regp->fr_regs[i] = fs->fs_regs[i]; 223 regp->fr_fsr = fs->fs_fsr; 231 struct fpstate64 *fs; local in function:process_write_fpregs 233 if ((fs = l->l_md.md_fpstate) == NULL) { 234 fs = pool_cache_get(fpstate_cache, PR_WAITOK); 235 memcpy(fs, &initfpstate, sizeof *fs) [all...] |
/src/sys/ufs/ext2fs/ |
ext2fs_subr.c | 85 struct m_ext2fs *fs; local in function:ext2fs_blkatoff 91 fs = ip->i_e2fs; 92 lbn = ext2_lblkno(fs, offset); 95 if ((error = bread(vp, lbn, fs->e2fs_bsize, 0, &bp)) != 0) { 99 *res = (char *)bp->b_data + ext2_blkoff(fs, offset);
|
/src/sys/ufs/lfs/ |
lfs_itimes.c | 60 struct lfs *fs = ip->i_lfs; local in function:lfs_itimes 74 lfs_dino_setatime(fs, ip->i_din, acc->tv_sec); 75 lfs_dino_setatimensec(fs, ip->i_din, acc->tv_nsec); 76 if (fs->lfs_is64 || lfs_sb_getversion(fs) > 1) { 80 LFS_IENTRY(ifp, fs, ip->i_number, ibp); 81 lfs_if_setatime_sec(fs, ifp, acc->tv_sec); 82 lfs_if_setatime_nsec(fs, ifp, acc->tv_nsec); 85 fs->lfs_flags |= LFS_IFDIRTY; 99 lfs_dino_setmtime(fs, ip->i_din, mod->tv_sec) [all...] |
/src/games/backgammon/common_source/ |
save.c | 62 char *fs; local in function:save 78 fs = fname; 79 while ((*fs = readc()) != '\n') { 80 if (*fs == old.c_cc[VERASE]) { 81 if (fs > fname) { 82 fs--; 86 writec(*fs); 91 writec(*fs++); 93 *fs = '\0';
|
/src/sys/arch/ews4800mips/stand/common/ |
devopen.c | 136 enum fstype fs; local in function:devopen 145 fs = FSTYPE_USTARFS; 149 fs = fstype(partition); 155 switch (fs) {
|
/src/usr.sbin/makefs/ffs/ |
buf.c | 68 fsinfo_t *fs = vp->fs; local in function:bread 77 offset = (*bpp)->b_blkno * fs->sectorsize + fs->offset; 153 fsinfo_t *fs = bp->b_fs; local in function:bwrite 156 offset = bp->b_blkno * fs->sectorsize + fs->offset; 228 bp->b_fs = vp->fs;
|
/src/tests/lib/libc/c063/ |
t_utimensat.c | 64 checkstattime(const struct stat *st, const struct statvfs *fs) 67 if ((fs->f_flag & ST_NOATIME) == 0) { 94 struct statvfs fs; local in function:ATF_TC_BODY 105 RL(statvfs(FILE, &fs)); 106 checkstattime(&st, &fs); 119 struct statvfs fs; local in function:ATF_TC_BODY 129 RL(statvfs(BASEFILE, &fs)); 130 checkstattime(&st, &fs); 208 struct statvfs fs; local in function:ATF_TC_BODY 222 RL(statvfs(DIR, &fs)); /* XXX should do lstatvfs(LINK, &fs) * [all...] |
/src/libexec/lfs_cleanerd/ |
fdfs.c | 63 struct fdfs *fs; local in function:fd_vget 67 fs = malloc(sizeof(*fs)); 68 if (fs == NULL) 71 fs->fd_bufp = malloc(nseg * sizeof(struct fd_buf)); 72 if (fs->fd_bufp == NULL) { 73 free(fs); 77 fs->fd_bufp[i].start = 0x0; 78 fs->fd_bufp[i].end = 0x0; 79 fs->fd_bufp[i].buf = malloc(segsize) 129 struct fdfs *fs; local in function:fd_reclaim 174 struct fdfs *fs = (struct fdfs *)vp->v_fs; local in function:fd_preload 223 struct fdfs *fs; local in function:fd_ptrget 241 struct fdfs *fs; local in function:fd_vop_strategy [all...] |
/src/sbin/dump/ |
snapshot.c | 65 struct statvfs *mntbuf, *fs, fsb; local in function:snap_open 86 for (fs = mntbuf, i = 0; i < n; i++, fs++) { 87 if (strcmp(fs->f_mntfromname, path) == 0) { 88 fss.fss_mount = fs->f_mntonname;
|
/src/sbin/fsck_ext2fs/ |
pass5.c | 86 struct m_ext2fs *fs = &sblock; local in function:pass5 100 ibmap = malloc(fs->e2fs_bsize); 101 bbmap = malloc(fs->e2fs_bsize); 106 for (c = 0; c < fs->e2fs_ncg; c++) { 112 nifree = fs->e2fs.e2fs_ipg; 116 blk_bitmap = getdatablk(fs2h32(fs->e2fs_gd[c].ext2bgd_b_bitmap), 117 fs->e2fs_bsize); 119 getblk(blk_bitmap, fs2h32(fs->e2fs_gd[c].ext2bgd_b_bitmap), 120 fs->e2fs_bsize); 123 ino_bitmap = getdatablk(fs2h32(fs->e2fs_gd[c].ext2bgd_i_bitmap) [all...] |
/src/sbin/fsck_v7fs/ |
main.c | 60 struct v7fs_self *fs; local in function:v7fs_fsck 63 if ((error = v7fs_io_init(&fs, mount, V7FS_BSIZE))) { 68 if ((error = v7fs_superblock_load(fs))) { 79 error = check_filesystem(fs, flags); 82 v7fs_io_fini(fs); 89 check_filesystem(struct v7fs_self *fs, int flags) 95 v7fs_superblock_dump(fs); 97 if ((error = freeinode_check(fs))) 102 if ((error = freeblock_check(fs))) 107 if ((error = ilist_check(fs))) [all...] |
/src/sys/arch/hp300/stand/common/ |
rawfs.c | 61 struct rawfs_file *fs; local in function:rawfs_open 67 fs = alloc(sizeof(struct rawfs_file)); 68 fs->fs_nextblk = 0; 69 fs->fs_len = 0; 70 fs->fs_ptr = fs->fs_buf; 73 printf("rawfs_open: fs=0x%x\n", (u_long)fs); 76 f->f_fsdata = fs; 83 struct rawfs_file *fs; local in function:rawfs_close 101 struct rawfs_file *fs = (struct rawfs_file *)f->f_fsdata; local in function:rawfs_read 179 struct rawfs_file *fs; local in function:rawfs_get_block [all...] |
/src/sys/arch/sun68k/stand/tapeboot/ |
rawfs.c | 62 struct file *fs; local in function:rawfs_open 68 fs = alloc(sizeof(struct file)); 69 fs->fs_nextblk = 0; 70 fs->fs_off = 0; 71 fs->fs_len = 0; 72 fs->fs_ptr = fs->fs_buf; 75 printf("rawfs_open: fs=0x%x\n", fs); 78 f->f_fsdata = fs; 85 struct file *fs; local in function:rawfs_close 106 struct file *fs = (struct file *)f->f_fsdata; local in function:rawfs_read 147 struct file *fs = (struct file *)f->f_fsdata; local in function:rawfs_seek 201 struct file *fs; local in function:rawfs_get_block [all...] |
/src/sbin/clri/ |
clri.c | 54 #include <ufs/ffs/fs.h> 75 struct fs *sbp; 84 char *fs, sblock[SBLOCKSIZE]; local in function:main 94 fs = *++argv; 98 if ((fd = open(fs, O_RDWR, 0)) < 0) 99 err(1, "%s", fs); 103 errx(1, "%s: can't find superblock", fs); 105 errx(1, "%s: can't read superblock", fs); 107 sbp = (struct fs *)sblock; 149 err(1, "%s", fs); [all...] |
/src/sbin/resize_lfs/ |
resize_lfs.c | 71 struct lfs *fs; local in function:main 111 * error checking here since we know the fs is mountable. 127 fs = (struct lfs *)calloc(sizeof(*fs), 1); 131 memcpy(&fs->lfs_dlfs_u, buf, sizeof(struct dlfs)); 132 if (sboff == LFS_LABELPAD && lfs_fsbtob(fs, 1) > LFS_LABELPAD) 133 sboff = lfs_fsbtob(fs, (off_t)lfs_sb_getsboff(fs, 0)); 140 newnsegs = (newsize * secsize) / lfs_sb_getssize(fs); 141 if (newnsegs == lfs_sb_getnseg(fs)) { [all...] |
/src/sbin/fsck_lfs/ |
pass2.c | 54 #define MINDIRSIZE(fs) \ 55 ((fs)->lfs_is64 ? sizeof(struct lfs_dirtemplate64) : \ 107 vp = vget(fs, ULFS_ROOTINO); 109 mode = lfs_dino_getmode(fs, dp); 112 lfs_dino_setmode(fs, dp, mode); 139 if (inp->i_isize < MINDIRSIZE(fs)) { 141 inp->i_isize = roundup(MINDIRSIZE(fs), LFS_DIRBLKSIZ); 143 vp = vget(fs, inp->i_number); 145 lfs_dino_setsize(fs, dp, inp->i_isize); 157 vp = vget(fs, inp->i_number) 351 if (lfs_dir_nameptr(fs, dirp)[1] == '.') { local in function:pass2check [all...] |
/src/sbin/newfs_v7fs/ |
main.c | 76 partition_check(struct v7fs_self *fs) 78 struct v7fs_superblock *sb = &fs->superblock; 81 if ((error = v7fs_superblock_load(fs))) { 88 if ((error = v7fs_superblock_writeback(fs))) { 99 make_root(struct v7fs_self *fs) 109 v7fs_inode_writeback(fs, &inode); 113 if ((error = v7fs_inode_allocate(fs, &ino))) { 128 v7fs_datablock_expand(fs, &inode, sizeof(*dir) * 2); 131 if (!(buf = scratch_read(fs, blk))) { 132 v7fs_inode_deallocate(fs, ino) 273 struct v7fs_self *fs; local in function:v7fs_newfs [all...] |
/src/sys/arch/mvme68k/stand/bootst/ |
rawfs.c | 59 struct file *fs; local in function:rawfs_open 65 fs = alloc(sizeof(struct file)); 66 fs->fs_nextblk = 0; 67 fs->fs_curblk = -1; 68 fs->fs_len = 0; 69 fs->fs_ptr = fs->fs_buf; 71 f->f_fsdata = fs; 77 struct file *fs; local in function:rawfs_close 79 fs = (struct file *)f->f_fsdata 90 struct file *fs = (struct file *)f->f_fsdata; local in function:rawfs_read 134 struct file *fs = (struct file *)f->f_fsdata; local in function:rawfs_seek 217 struct file *fs; local in function:rawfs_get_block [all...] |