HomeSort by: relevance | last modified time | path
    Searched refs:fs (Results 1 - 25 of 830) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/sbin/mount_portal/examples/
fs.1.conf 1 # $NetBSD: fs.1.conf,v 1.2 2017/05/09 23:26:49 kamil Exp $
3 fs/ file fs/
  /src/sbin/mount_portal/
portal.conf 5 fs/ file fs/
  /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/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/puffs/
makerumpmanpages.sh 179 sedsub='s/xxxfsxxx/$fs/g\;s/XXXFSXXX/$fsc/g\;s/xxximagexxx/$image/g\;'\
185 fs=${x#rump_}
188 if ! member $fs $disk $net $fictional $special ; then
189 echo ERROR: $fs not found in any class!
194 member $fs $special && continue
197 if member $fs $disk ; then
202 if member $fs $net ; then
207 if member $fs $fictional ; then
209 image=$fs
210 fssrc='fictional fs'
    [all...]
  /src/sys/fs/v7fs/
v7fs_io.c 64 scratch_read(struct v7fs_self *fs, daddr_t blk)
68 MEM_LOCK(fs);
70 if (fs->scratch_free & (1 << i)) {
71 fs->scratch_free &= ~(1 << i);
78 MEM_UNLOCK(fs);
82 if (!fs->io.read(fs->io.cookie, fs->scratch[i], blk)) {
84 fs->scratch_free |= (1 << i);
85 MEM_UNLOCK(fs);
    [all...]
  /src/sbin/fsck_lfs/
pass6.c 89 error = ulfs_bmaparray(fs, vp, lbn, &daddr, a, &num);
94 daddr = LFS_DBTOFSB(fs, daddr);
96 frags = lfs_numfrags(fs, size);
99 ooff = lfs_dino_getdb(fs, ip->i_din, lbn);
101 lfs_dino_setblocks(fs, ip->i_din,
102 lfs_dino_getblocks(fs, ip->i_din) + frags);
105 ofrags = lfs_numfrags(fs, ip->i_lfs_fragsize[lbn]);
106 lfs_dino_setblocks(fs, ip->i_din,
107 lfs_dino_getblocks(fs, ip->i_din) + (frags - ofrags));
109 lfs_dino_setdb(fs, ip->i_din, lbn, ndaddr)
    [all...]
setup.c 124 nptr = (1 << bshift) / LFS_BLKPTRSIZE(fs);
211 fs = lfs_init(fsreadfd, bflag, idaddr, 0, debug);
212 if (fs == NULL) {
219 bufrehash((lfs_sb_getsegtabsz(fs) + maxino / lfs_sb_getifpb(fs)) << 4);
221 if (lfs_sb_getpflags(fs) & LFS_PF_CLEAN) {
241 tdaddr = lfs_sntod(fs, lfs_dtosn(fs, idaddr));
242 if (lfs_sntod(fs, lfs_dtosn(fs, tdaddr)) == tdaddr)
    [all...]
segwrite.c 111 lfs_match_data(struct lfs * fs, struct ubuf * bp)
117 lfs_match_indir(struct lfs * fs, struct ubuf * bp)
122 return (lbn < 0 && (-lbn - ULFS_NDADDR) % LFS_NINDIR(fs) == 0);
126 lfs_match_dindir(struct lfs * fs, struct ubuf * bp)
131 return (lbn < 0 && (-lbn - ULFS_NDADDR) % LFS_NINDIR(fs) == 1);
135 lfs_match_tindir(struct lfs * fs, struct ubuf * bp)
140 return (lbn < 0 && (-lbn - ULFS_NDADDR) % LFS_NINDIR(fs) == 2);
147 lfs_segwrite(struct lfs * fs, int flags)
155 lfs_seglock(fs, flags | SEGM_CKP);
156 sp = fs->lfs_sp
371 struct lfs *fs; local in function:lfs_gatherblock
542 struct lfs *fs; local in function:lfs_updatemeta
    [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/newfs_lfs/
make_lfs.c 276 maxfilesize(struct lfs *fs, int bshift)
281 nptr = (1 << bshift) / LFS_BLKPTRSIZE(fs);
292 make_dinode(ino_t ino, union lfs_dinode *dip, int nfrags, struct lfs *fs)
298 nblocks = howmany(nfrags, lfs_sb_getfrag(fs));
300 nfrags = roundup(nfrags, lfs_sb_getfrag(fs));
302 lfs_dino_setnlink(fs, dip, 1);
303 lfs_dino_setblocks(fs, dip, nfrags);
305 lfs_dino_setsize(fs, dip, nfrags << lfs_sb_getffshift(fs));
306 t = lfs_sb_gettstamp(fs);
400 struct lfs *fs; \/* Superblock *\/ local in function:make_lfs
    [all...]
  /src/sys/lib/libsa/
ufs.h 39 struct fs;
42 void ffs_sb_swap(const struct fs *, struct fs *);
  /src/usr.sbin/makefs/ffs/
newfs_extern.h 31 struct fs *ffs_mkfs(const char *, const fsinfo_t *, time_t);
32 void ffs_write_superblock(struct fs *, const fsinfo_t *);
ffs_alloc.c 62 #include <ufs/ffs/fs.h>
75 static int32_t ffs_mapsearch(struct fs *, struct cg *, daddr_t, int);
104 struct fs *fs = ip->i_fs; local in function:ffs_alloc
109 if (size > fs->fs_bsize || ffs_fragoff(fs, size) != 0) {
111 fs->fs_bsize, size);
113 if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0)
115 if (bpref >= fs->fs_size
161 struct fs *fs; local in function:ffs_blkpref_ufs1
200 struct fs *fs; local in function:ffs_blkpref_ufs2
253 struct fs *fs; local in function:ffs_hashalloc
305 struct fs *fs = ip->i_fs; local in function:ffs_alloccg
389 struct fs *fs = ip->i_fs; local in function:ffs_alloccgblk
439 struct fs *fs = ip->i_fs; local in function:ffs_blkfree
    [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/ufs/lfs/
lfs_subr.c 102 lfs_setup_resblks(struct lfs *fs)
107 ASSERT_NO_SEGLOCK(fs);
108 fs->lfs_resblk = malloc(LFS_N_TOTAL * sizeof(res_t), M_SEGMENT,
111 fs->lfs_resblk[i].inuse = 0;
112 fs->lfs_resblk[i].p = NULL;
115 LIST_INIT(fs->lfs_reshash + i);
122 fs->lfs_resblk[i].size = lfs_sb_getsumsize(fs);
124 fs->lfs_resblk[i].size = LFS_SBPAD;
126 fs->lfs_resblk[i].size = lfs_sb_getbsize(fs)
    [all...]
lfs_segment.c 122 #define LFS_PARTIAL_FITS(fs) \
123 (lfs_sb_getfsbpseg(fs) - \
124 (lfs_sb_getoffset(fs) - lfs_sb_getcurseg(fs)) > \
125 lfs_sb_getfrag(fs))
131 #define LFS_SHOULD_CHECKPOINT(fs, flags) \
133 ((fs->lfs_nactive > LFS_MAX_ACTIVE || \
135 lfs_sb_getnclean(fs) < LFS_MAX_ACTIVE)))
141 int lfs_writevnodes(struct lfs *fs, struct mount *mp,
167 * read the fs mod time off of it. We don't set IN_UPDATE here
197 struct lfs *fs; local in function:lfs_vflush
484 struct lfs *fs; member in struct:lfs_writevnodes_ctx
603 struct lfs *fs; local in function:lfs_segwrite
1329 struct lfs *fs; local in function:lfs_gatherblock
1655 struct lfs *fs; local in function:lfs_updatemeta
2582 struct lfs *fs; local in function:lfs_free_aiodone
2599 struct lfs *fs; local in function:lfs_super_work
2623 struct lfs *fs; local in function:lfs_cluster_work
    [all...]
lfs_alloc.c 116 lfs_extend_ifile(struct lfs *fs, kauth_cred_t cred)
129 ASSERT_SEGLOCK(fs);
138 vp = fs->lfs_ivnode;
140 blkno = lfs_lblkno(fs, ip->i_size);
141 if ((error = lfs_balloc(vp, ip->i_size, lfs_sb_getbsize(fs), cred, 0,
145 ip->i_size += lfs_sb_getbsize(fs);
146 lfs_dino_setsize(fs, ip->i_din, ip->i_size);
154 maxino = ((ip->i_size >> lfs_sb_getbshift(fs)) - lfs_sb_getcleansz(fs) -
155 lfs_sb_getsegtabsz(fs)) * lfs_sb_getifpb(fs)
249 struct lfs *fs; local in function:lfs_valloc
564 struct lfs *fs; local in function:lfs_vfree
    [all...]
lfs_bio.c 98 int lfs_fs_pagetrip = 0; /* # of pages to trip per-fs write */
124 lfs_fits_buf(struct lfs *fs, int n, int bytes)
128 ASSERT_NO_SEGLOCK(fs);
154 lfs_reservebuf(struct lfs *fs, struct vnode *vp,
159 ASSERT_MAYBE_SEGLOCK(fs);
163 cantwait = (VTOI(vp)->i_state & IN_ADIROP) || fs->lfs_unlockvp == vp;
165 while (!cantwait && n > 0 && !lfs_fits_buf(fs, n, bytes)) {
168 DLOG((DLOG_FLUSH, "lfs_reservebuf: flush filesystem %p with checkpoint\n", fs));
169 lfs_flush(fs, SEGM_CKP, 0);
209 lfs_reserveavail(struct lfs *fs, struct vnode *vp
415 struct lfs *fs; local in function:lfs_bwrite_ext
599 struct lfs *fs; local in function:lfs_check
    [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/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...]
  /src/distrib/bebox/floppies/bootfloppy/
Makefile 3 IMAGE= boot.fs
  /src/sys/external/bsd/drm2/include/linux/
poll.h 35 #include <linux/fs.h>
  /src/sys/ufs/ffs/
fs.h 1 /* $NetBSD: fs.h,v 1.73 2024/12/13 22:32:45 riastradh Exp $ */
31 * @(#)fs.h 8.13 (Berkeley) 3/21/95
53 * For file system fs, the offsets of the various blocks of interest
55 * [fs->fs_sblkno] Super-block
56 * [fs->fs_cblkno] Cylinder group block
57 * [fs->fs_iblkno] Inode blocks
58 * [fs->fs_dblkno] Data blocks
59 * The beginning of cylinder group cg in fs, is given by
60 * the ``cgbase(fs, cg)'' macro.
126 * information in the inode, using the ``ffs_blksize(fs, ip, lbn)'' macro
256 struct fs { struct
    [all...]

Completed in 134 milliseconds

1 2 3 4 5 6 7 8 91011>>