Searched refs:fs (Results 1 - 25 of 855) sorted by relevance

1234567891011>>

/src/sbin/mount_portal/examples/
H A Dfs.1.conf1 # $NetBSD: fs.1.conf,v 1.2 2017/05/09 23:26:49 kamil Exp $
3 fs/ file fs/
/src/sbin/mount_portal/
H A Dportal.conf5 fs/ file fs/
/src/usr.sbin/fstyp/
H A Dufs.c47 #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
[all...]
/src/sys/ufs/mfs/
H A Dmfs_miniroot.c40 #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
[all...]
/src/usr.sbin/puffs/
H A Dmakerumpmanpages.sh179 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/
H A Dv7fs_io.c64 scratch_read(struct v7fs_self *fs, daddr_t blk) argument
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);
107 scratch_remain(const struct v7fs_self * fs) argument
[all...]
/src/sbin/fsck_lfs/
H A Dpass6.c89 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, i
[all...]
H A Dsetup.c124 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, tdadd
[all...]
H A Dsegwrite.c111 lfs_match_data(struct lfs * fs, struct ubuf * bp) argument
117 lfs_match_indir(struct lfs * fs, struct ubuf * bp) argument
122 return (lbn < 0 && (-lbn - ULFS_NDADDR) % LFS_NINDIR(fs) == 0);
126 lfs_match_dindir(struct lfs * fs, struct ubuf * bp) argument
131 return (lbn < 0 && (-lbn - ULFS_NDADDR) % LFS_NINDIR(fs) == 1);
135 lfs_match_tindir(struct lfs * fs, struct ubuf * bp) argument
140 return (lbn < 0 && (-lbn - ULFS_NDADDR) % LFS_NINDIR(fs) == 2);
147 lfs_segwrite(struct lfs * fs, int flags) argument
155 lfs_seglock(fs, flags | SEGM_CKP);
156 sp = fs
195 lfs_writefile(struct lfs * fs,struct segment * sp,struct uvnode * vp) argument
242 lfs_writeinode(struct lfs * fs,struct segment * sp,struct inode * ip) argument
371 struct lfs *fs; local in function:lfs_gatherblock
417 lfs_gather(struct lfs * fs,struct segment * sp,struct uvnode * vp,int (* match)(struct lfs *,struct ubuf *)) argument
450 lfs_update_single(struct lfs * fs,struct segment * sp,daddr_t lbn,daddr_t ndaddr,int size) argument
542 struct lfs *fs; local in function:lfs_updatemeta
637 lfs_initseg(struct lfs * fs) argument
724 lfs_newseg(struct lfs * fs) argument
763 lfs_writeseg(struct lfs * fs,struct segment * sp) argument
898 lfs_shellsort(struct lfs * fs,struct ubuf ** bp_array,union lfs_blocks * lb_array,int nmemb,int size) argument
933 lfs_seglock(struct lfs * fs,unsigned long flags) argument
963 lfs_segunlock(struct lfs * fs) argument
1005 lfs_writevnodes(struct lfs * fs,struct segment * sp,int op) argument
1035 lfs_writesuper(struct lfs * fs,daddr_t daddr) argument
[all...]
/src/libexec/lfs_cleanerd/
H A Dfdfs.c63 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
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/sys/ufs/lfs/
H A Dlfs_subr.c102 lfs_setup_resblks(struct lfs *fs) argument
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
154 lfs_free_resblks(struct lfs * fs) argument
185 lfs_malloc(struct lfs * fs,size_t size,int type) argument
243 lfs_free(struct lfs * fs,void * p,int type) argument
282 lfs_seglock(struct lfs * fs,unsigned long flags) argument
365 lfs_unmark_dirop(struct lfs * fs) argument
416 lfs_auto_segclean(struct lfs * fs) argument
477 lfs_segunlock(struct lfs * fs) argument
605 lfs_cleanerlock(struct lfs * fs) argument
627 lfs_cleanerlock_held(struct lfs * fs) argument
642 lfs_cleanerunlock(struct lfs * fs) argument
662 lfs_writer_enter(struct lfs * fs,const char * wmesg) argument
684 lfs_writer_tryenter(struct lfs * fs) argument
699 lfs_writer_leave(struct lfs * fs) argument
717 lfs_segunlock_relock(struct lfs * fs) argument
774 lfs_wakeup_cleaner(struct lfs * fs) argument
789 lfs_setclean(struct lfs * fs,struct vnode * vp) argument
817 lfs_clrclean(struct lfs * fs,struct vnode * vp) argument
845 lfs_seguse_clrflag_all(struct lfs * fs,uint32_t flag) argument
[all...]
H A Dlfs_kclean.c76 struct lfs *fs; local in function:ino_func_setclean
87 fs = lifa->fs;
89 devvp = VTOI(fs->lfs_ivnode)->i_devvp;
92 error = bread(devvp, LFS_FSBTODB(fs, offset), lfs_sb_getibsize(fs),
103 num = LFS_INOPB(fs);
105 dip = DINO_IN_BLOCK(fs, lifa->buf, i);
106 ino = lfs_dino_getinumber(fs, dip);
109 true_addr = lfs_sb_getidaddr(fs);
149 struct lfs *fs; local in function:ino_func_rewrite
224 rewrite_block(struct lfs * fs,struct vnode * vp,daddr_t lbn,daddr_t offset,size_t size,int * have_finfop) argument
280 struct lfs *fs; local in function:finfo_func_rewrite
381 struct lfs *fs; local in function:finfo_func_setclean
430 lfs_rewrite_segment(struct lfs * fs,int sn,int * fragsp,kauth_cred_t cred,struct lwp * l) argument
477 lfs_rewrite_segments(struct lfs * fs,int * snn,int len,int * directp,int * offsetp,struct lwp * l) argument
613 struct lfs *fs; local in function:ino_func_checkempty
664 struct lfs *fs; local in function:finfo_func_checkempty
737 lfs_checkempty(struct lfs * fs,int sn,kauth_cred_t cred,struct lwp * l) argument
760 segselect_greedy(struct lfs * fs,int sn,SEGUSE * sup) argument
766 segselect_cb_rosenblum(struct lfs * fs,int sn,SEGUSE * sup,long age) argument
785 segselect_cb_time(struct lfs * fs,int sn,SEGUSE * sup) argument
834 struct lfs *fs; local in function:lfs_cleanerd
906 clean(struct lfs * fs) argument
1067 lfs_rewrite_file(struct lfs * fs,ino_t * inoa,int len,bool scramble,int * directp,int * offsetp) argument
1130 lfs_cleanctl(struct lfs * fs,struct lfs_autoclean_params * params) argument
[all...]
H A Dlfs_segment.c120 #define LFS_PARTIAL_FITS(fs) \
121 (lfs_sb_getfsbpseg(fs) - \
122 (lfs_sb_getoffset(fs) - lfs_sb_getcurseg(fs)) > \
123 lfs_sb_getfrag(fs))
129 #define LFS_SHOULD_CHECKPOINT(fs, flags) \
131 ((fs->lfs_nactive > LFS_MAX_ACTIVE || \
133 lfs_sb_getnclean(fs) < LFS_MAX_ACTIVE)))
139 int lfs_writevnodes(struct lfs *fs, struct mount *mp,
165 * read the fs mo
170 lfs_imtime(struct lfs * fs) argument
195 struct lfs *fs; local in function:lfs_vflush
411 struct lfs *fs; member in struct:lfs_writevnodes_ctx
450 lfs_writevnodes(struct lfs * fs,struct mount * mp,struct segment * sp,int op) argument
530 struct lfs *fs; local in function:lfs_segwrite
783 lfs_writefile(struct lfs * fs,struct segment * sp,struct vnode * vp) argument
882 lfs_update_iaddr(struct lfs * fs,struct segment * sp,struct inode * ip,daddr_t ndaddr) argument
983 lfs_writeinode(struct lfs * fs,struct segment * sp,struct inode * ip) argument
1253 struct lfs *fs; local in function:lfs_gatherblock
1325 lfs_ungather(struct lfs * fs,struct segment * sp,struct vnode * vp,int (* match)(struct lfs *,struct buf *)) argument
1357 lfs_gather(struct lfs * fs,struct segment * sp,struct vnode * vp,int (* match)(struct lfs *,struct buf *)) argument
1461 lfs_update_single(struct lfs * fs,struct segment * sp,struct vnode * vp,daddr_t lbn,daddr_t ndaddr,int size) argument
1595 struct lfs *fs; local in function:lfs_updatemeta
1740 lfs_rewind(struct lfs * fs,int newsn) argument
1782 lfs_initseg(struct lfs * fs,uint16_t flags) argument
1890 lfs_invalidate(struct lfs * fs,int sn) argument
1910 lfs_newseg(struct lfs * fs) argument
1983 lfs_newclusterbuf(struct lfs * fs,struct vnode * vp,daddr_t addr,int n) argument
2016 lfs_writeseg(struct lfs * fs,struct segment * sp) argument
2392 lfs_writesuper(struct lfs * fs,daddr_t daddr) argument
2459 lfs_match_fake(struct lfs * fs,struct buf * bp) argument
2477 lfs_match_data(struct lfs * fs,struct buf * bp) argument
2485 lfs_match_indir(struct lfs * fs,struct buf * bp) argument
2495 lfs_match_dindir(struct lfs * fs,struct buf * bp) argument
2505 lfs_match_tindir(struct lfs * fs,struct buf * bp) argument
2517 struct lfs *fs; local in function:lfs_free_aiodone
2534 struct lfs *fs; local in function:lfs_super_work
2558 struct lfs *fs; local in function:lfs_cluster_work
2710 lfs_shellsort(struct lfs * fs,struct buf ** bp_array,union lfs_blocks * lb_array,int nmemb,int size) argument
2775 lfs_acquire_finfo(struct lfs * fs,ino_t ino,int vers) argument
2799 lfs_release_finfo(struct lfs * fs) argument
[all...]
H A Dlfs_alloc.c116 lfs_extend_ifile(struct lfs *fs, kauth_cred_t cred) argument
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_getifp
249 struct lfs *fs; local in function:lfs_valloc
350 lfs_valloc_fixed(struct lfs * fs,ino_t ino,int vers) argument
564 struct lfs *fs; local in function:lfs_vfree
797 lfs_order_freelist(struct lfs * fs,ino_t ** orphanp,size_t * norphanp) argument
950 lfs_orphan(struct lfs * fs,struct vnode * vp) argument
1003 lfs_free_orphans(struct lfs * fs,ino_t * orphan,size_t norphan) argument
1082 lfs_check_freelist(struct lfs * fs,const char * func,int line) argument
1185 dump_freelist(struct lfs * fs) argument
[all...]
H A Dlfs_bio.c98 int lfs_fs_pagetrip = 0; /* # of pages to trip per-fs write */
124 lfs_fits_buf(struct lfs *fs, int n, int bytes) argument
128 ASSERT_NO_SEGLOCK(fs);
154 lfs_reservebuf(struct lfs *fs, struct vnode *vp, argument
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, struc argument
268 lfs_reserve(struct lfs * fs,struct vnode * vp,struct vnode * vp2,int fsb) argument
348 lfs_fits(struct lfs * fs,int fsb) argument
371 lfs_availwait(struct lfs * fs,int fsb) argument
415 struct lfs *fs; local in function:lfs_bwrite_ext
503 lfs_flush_fs(struct lfs * fs,int flags) argument
533 lfs_flush(struct lfs * fs,int flags,int only_onefs) argument
599 lfs_needsflush(struct lfs * fs) argument
621 lfs_needswait(struct lfs * fs) argument
648 struct lfs *fs; local in function:lfs_check
757 lfs_newbuf(struct lfs * fs,struct vnode * vp,daddr_t daddr,size_t size,int type) argument
793 lfs_freebuf(struct lfs * fs,struct buf * bp) argument
[all...]
/src/sys/lib/libsa/
H A Dufs.h39 struct fs;
42 void ffs_sb_swap(const struct fs *, struct fs *);
/src/sbin/newfs_lfs/
H A Dmake_lfs.c276 maxfilesize(struct lfs *fs, int bshift) argument
281 nptr = (1 << bshift) / LFS_BLKPTRSIZE(fs);
292 make_dinode(ino_t ino, union lfs_dinode *dip, int nfrags, struct lfs *fs) argument
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);
355 make_dir(struct lfs * fs,void * bufp,const struct dirproto * protodir,unsigned numentries) argument
400 struct lfs *fs; /* Superblock */ local in function:make_lfs
[all...]
/src/usr.sbin/makefs/ffs/
H A Dnewfs_extern.h31 struct fs *ffs_mkfs(const char *, const fsinfo_t *, time_t);
32 void ffs_write_superblock(struct fs *, const fsinfo_t *);
H A Dffs_alloc.c62 #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
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
538 ffs_mapsearch(struct fs * fs,struct cg * cgp,daddr_t bpref,int allocsiz) argument
[all...]
/src/sys/arch/hp300/stand/common/
H A Drawfs.c61 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/
H A Drawfs.c62 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/
H A Drawfs.c59 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
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/sys/external/bsd/drm2/include/linux/
H A Dpoll.h35 #include <linux/fs.h>
/src/distrib/bebox/floppies/bootfloppy/
H A DMakefile3 IMAGE= boot.fs
/src/sys/ufs/ffs/
H A Dfs.h1 /* $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, i
256 struct fs { struct
[all...]

Completed in 16 milliseconds

1234567891011>>