HomeSort by: relevance | last modified time | path
    Searched refs:fs (Results 1 - 25 of 760) 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
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...]
  /src/sys/ufs/mfs/
mfs_miniroot.c 40 #include <ufs/ffs/fs.h>
52 struct fs *fs = (struct fs *)((char *)base + SBLOCK_UFS1); local
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/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_kclean.c 81 struct lfs *fs; local
92 fs = lifa->fs;
94 devvp = VTOI(fs->lfs_ivnode)->i_devvp;
97 error = bread(devvp, LFS_FSBTODB(fs, offset), lfs_sb_getibsize(fs),
108 num = LFS_INOPB(fs);
110 dip = DINO_IN_BLOCK(fs, lifa->buf, i);
111 ino = lfs_dino_getinumber(fs, dip);
114 true_addr = lfs_sb_getidaddr(fs);
154 struct lfs *fs; local
307 struct lfs *fs; local
412 struct lfs *fs; local
590 struct lfs *fs; local
641 struct lfs *fs; local
811 struct lfs *fs; local
    [all...]
lfs_segment.c 121 #define LFS_PARTIAL_FITS(fs) \
122 (lfs_sb_getfsbpseg(fs) - \
123 (lfs_sb_getoffset(fs) - lfs_sb_getcurseg(fs)) > \
124 lfs_sb_getfrag(fs))
130 #define LFS_SHOULD_CHECKPOINT(fs, flags) \
132 ((fs->lfs_nactive > LFS_MAX_ACTIVE || \
134 lfs_sb_getnclean(fs) < LFS_MAX_ACTIVE)))
140 int lfs_writevnodes(struct lfs *fs, struct mount *mp,
166 * read the fs mod time off of it. We don't set IN_UPDATE here
196 struct lfs *fs; local
417 struct lfs *fs; member in struct:lfs_writevnodes_ctx
547 struct lfs *fs; local
1294 struct lfs *fs; local
1641 struct lfs *fs; local
2561 struct lfs *fs; local
2578 struct lfs *fs; local
2607 struct lfs *fs; local
    [all...]
lfs_rfw.c 93 static bool lfs_isseq(const struct lfs *fs, long int lbn1, long int lbn2);
105 * XXX this function does not have appropriate locking to be used on a live fs;
111 lfs_rf_valloc(struct lfs *fs, ino_t ino, int vers, struct lwp *l,
120 LFS_ASSERT_MAXINO(fs, ino);
122 ASSERT_SEGLOCK(fs); /* XXX it doesn't, really */
129 error = VFS_VGET(fs->lfs_ivnode->v_mount, ino, LK_EXCLUSIVE, &vp);
139 : lfs_dino_getnlink(fs, dip)), (intmax_t)vers));
147 && lfs_dino_getnlink(fs, dip) > 0) {
157 vp->v_type = IFTOVT(lfs_dino_getmode(fs, dip));
158 update_inoblk_copy_dinode(fs, ip->i_din, dip)
413 struct lfs *fs; local
517 struct lfs *fs; local
561 struct lfs *fs; local
1092 struct lfs *fs; local
    [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
563 struct lfs *fs; local
    [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
542 struct lfs *fs; local
    [all...]
  /src/libexec/lfs_cleanerd/
fdfs.c 63 struct fdfs *fs; local
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
174 struct fdfs *fs = (struct fdfs *)vp->v_fs; local
223 struct fdfs *fs; local
241 struct fdfs *fs; local
    [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/
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
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
200 struct fs *fs; local
253 struct fs *fs; local
305 struct fs *fs = ip->i_fs; local
389 struct fs *fs = ip->i_fs; local
447 struct fs *fs = ip->i_fs; local
    [all...]
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 *);
  /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
    [all...]
  /src/sys/arch/hp300/stand/common/
rawfs.c 61 struct rawfs_file *fs; local
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
101 struct rawfs_file *fs = (struct rawfs_file *)f->f_fsdata; local
179 struct rawfs_file *fs; local
    [all...]
  /src/sys/arch/sun68k/stand/tapeboot/
rawfs.c 62 struct file *fs; local
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
106 struct file *fs = (struct file *)f->f_fsdata; local
147 struct file *fs = (struct file *)f->f_fsdata; local
201 struct file *fs; local
    [all...]
  /src/sys/arch/mvme68k/stand/bootst/
rawfs.c 59 struct file *fs; local
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
79 fs = (struct file *)f->f_fsdata
90 struct file *fs = (struct file *)f->f_fsdata; local
134 struct file *fs = (struct file *)f->f_fsdata; local
217 struct file *fs; local
    [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 714 milliseconds

1 2 3 4 5 6 7 8 91011>>