Home
last modified time | relevance | path

Searched refs:lfs (Results 1 – 25 of 118) sorted by relevance

12345

/netbsd-src/sys/ufs/lfs/
H A Dlfs_extern.h103 struct lfs;
128 int lfs_valloc_fixed(struct lfs *, ino_t, int);
130 void lfs_order_freelist(struct lfs *, ino_t **, size_t *);
131 int lfs_extend_ifile(struct lfs *, kauth_cred_t);
132 void lfs_orphan(struct lfs *, ino_t);
133 void lfs_free_orphans(struct lfs *, ino_t *, size_t);
142 int lfs_availwait(struct lfs *, int);
144 int lfs_fits(struct lfs *, int);
145 void lfs_flush_fs(struct lfs *, int);
146 void lfs_flush(struct lfs *, int, int);
[all …]
H A DREADME.wc3 (Part of the premise of splitting lfs from ufs is that in the long run
4 the size of a standalone lfs will be substantially smaller than the
5 size of lfs plus the size of ufs. This file is for keeping track of
10 lfs 1467 13858 15325
15 lfs-native 1467 13858 15325
16 lfs-ulfs 2070 12938 15008
17 lfs-total 3537 26796 30333
24 lfs-native 1482 13858 15340
25 lfs-ulfs 1994 13028 15022
26 lfs-total 3476 26886 30362
H A Dlfs_inode.h134 struct lfs *i_lfs; /* The LFS volume we belong to. */
153 struct lfs_inode_ext *lfs; member
200 #define i_lfs_osize inode_ext.lfs->lfs_osize
201 #define i_lfs_effnblks inode_ext.lfs->lfs_effnblocks
202 #define i_lfs_fragsize inode_ext.lfs->lfs_fragsize
203 #define i_lfs_dchain inode_ext.lfs->lfs_dchain
204 #define i_lfs_pchain inode_ext.lfs->lfs_pchain
205 #define i_lfs_iflags inode_ext.lfs->lfs_iflags
206 #define i_lfs_hiblk inode_ext.lfs->lfs_hiblk
207 #define i_lfs_lbtree inode_ext.lfs->lfs_lbtree
[all …]
H A Dlfs_subr.c102 lfs_setup_resblks(struct lfs *fs) in lfs_setup_resblks()
154 lfs_free_resblks(struct lfs *fs) in lfs_free_resblks()
185 lfs_malloc(struct lfs *fs, size_t size, int type) in lfs_malloc()
243 lfs_free(struct lfs *fs, void *p, int type) in lfs_free()
282 lfs_seglock(struct lfs *fs, unsigned long flags) in lfs_seglock()
336 static void lfs_unmark_dirop(struct lfs *);
339 lfs_unmark_dirop(struct lfs *fs) in lfs_unmark_dirop()
358 marker->inode_ext.lfs = pool_get(&lfs_inoext_pool, PR_WAITOK); in lfs_unmark_dirop()
359 memset(marker->inode_ext.lfs, 0, sizeof(*marker->inode_ext.lfs)); in lfs_unmark_dirop()
390 pool_put(&lfs_inoext_pool, marker->inode_ext.lfs); in lfs_unmark_dirop()
[all …]
H A Dulfsmount.h67 struct lfs *um_lfs;
120 #define MNINDIR(lfs) ((lfs)->um_nindir) argument
121 #define blkptrtodb(lfs, b) ((b) << (lfs)->um_bptrtodb) argument
H A Dlfs_bio.c116 static int lfs_fits_buf(struct lfs *, int, int);
117 static int lfs_reservebuf(struct lfs *, struct vnode *vp, struct vnode *vp2,
119 static int lfs_reserveavail(struct lfs *, struct vnode *vp, struct vnode *vp2,
123 lfs_fits_buf(struct lfs *fs, int n, int bytes) in lfs_fits_buf()
153 lfs_reservebuf(struct lfs *fs, struct vnode *vp, in lfs_reservebuf()
206 lfs_reserveavail(struct lfs *fs, struct vnode *vp, in lfs_reserveavail()
265 lfs_reserve(struct lfs *fs, struct vnode *vp, struct vnode *vp2, int fsb) in lfs_reserve()
345 lfs_fits(struct lfs *fs, int fsb) in lfs_fits()
368 lfs_availwait(struct lfs *fs, int fsb) in lfs_availwait()
412 struct lfs *fs; in lfs_bwrite_ext()
[all …]
H A Dulfs_quota.c232 struct lfs *fs = ump->um_lfs; in quota_handle_cmd_stat()
271 struct lfs *fs = ump->um_lfs; in quota_handle_cmd_idtypestat()
305 struct lfs *fs = ump->um_lfs; in quota_handle_cmd_objtypestat()
353 struct lfs *fs = ump->um_lfs; in quota_handle_cmd_get()
391 struct lfs *fs = ump->um_lfs; in quota_handle_cmd_put()
440 struct lfs *fs = ump->um_lfs; in quota_handle_cmd_del()
484 struct lfs *fs = ump->um_lfs; in quota_handle_cmd_cursorget()
520 struct lfs *fs = ump->um_lfs; in quota_handle_cmd_cursoropen()
549 struct lfs *fs = ump->um_lfs; in quota_handle_cmd_cursorclose()
577 struct lfs *fs = ump->um_lfs; in quota_handle_cmd_cursorskipidtype()
[all …]
H A Dlfs_segment.c134 int lfs_match_fake(struct lfs *, struct buf *);
135 void lfs_newseg(struct lfs *);
137 void lfs_writesuper(struct lfs *, daddr_t);
138 int lfs_writevnodes(struct lfs *fs, struct mount *mp,
141 static void lfs_shellsort(struct lfs *, struct buf **, union lfs_blocks *,
166 lfs_imtime(struct lfs *fs) in lfs_imtime()
191 struct lfs *fs; in lfs_vflush()
478 struct lfs *fs;
517 lfs_writevnodes(struct lfs *fs, struct mount *mp, struct segment *sp, int op) in lfs_writevnodes()
597 struct lfs *fs; in lfs_segwrite()
[all …]
H A Dlfs_vfsops.c100 #include <ufs/lfs/ulfs_quotacommon.h>
101 #include <ufs/lfs/ulfs_inode.h>
102 #include <ufs/lfs/ulfsmount.h>
103 #include <ufs/lfs/ulfs_bswap.h>
104 #include <ufs/lfs/ulfs_extern.h>
114 #include <ufs/lfs/lfs.h>
115 #include <ufs/lfs/lfs_accessors.h>
116 #include <ufs/lfs/lfs_kernel.h>
117 #include <ufs/lfs/lfs_exter
[all...]
H A Dlfs_vnops.c395 struct lfs *fs = ip->i_lfs; in lfs_fsync()
511 struct lfs *fs; in lfs_set_dirop()
585 lfs_unset_dirop(struct lfs *fs, struct vnode *dvp, const char *str) in lfs_unset_dirop()
608 struct lfs *fs = ip->i_lfs; in lfs_mark_vnode()
653 struct lfs *fs; in lfs_symlink()
738 struct lfs *fs; in lfs_mknod()
818 struct lfs *fs; in lfs_create()
875 struct lfs *fs; in lfs_mkdir()
1126 struct lfs *fs; in lfs_link()
1166 struct lfs *fs; in lfs_getattr()
[all …]
H A Dlfs_syscalls.c91 static struct buf *lfs_fakebuf(struct lfs *, struct vnode *, daddr_t,
119 struct lfs *fs; in sys_lfs_markv()
160 struct lfs *fs; in sys_lfs_markv()
222 struct lfs *fs; in lfs_markv()
537 struct lfs *fs; in sys_lfs_bmapv()
579 struct lfs *fs; in sys_lfs_bmapv()
637 struct lfs *fs; in lfs_bmapv()
788 struct lfs *fs; in sys_lfs_segclean()
824 lfs_do_segclean(struct lfs *fs, unsigned long segnum) in lfs_do_segclean()
970 struct lfs *fs; in lfs_fastvget()
[all …]
H A Dlfs_alloc.c114 lfs_extend_ifile(struct lfs *fs, kauth_cred_t cred) in lfs_extend_ifile()
237 struct lfs *fs; in lfs_valloc()
323 lfs_valloc_fixed(struct lfs *fs, ino_t ino, int vers) in lfs_valloc_fixed()
404 lfs_last_alloc_ino(struct lfs *fs)
426 lfs_freelist_prev(struct lfs *fs, ino_t ino) in lfs_freelist_prev()
483 struct lfs *fs; in lfs_vfree()
708 lfs_order_freelist(struct lfs *fs, ino_t **orphanp, size_t *norphanp) in lfs_order_freelist()
850 lfs_orphan(struct lfs *fs, ino_t ino) in lfs_orphan()
869 lfs_free_orphans(struct lfs *fs, ino_t *orphan, size_t norphan) in lfs_free_orphans()
H A DMakefile3 INCSDIR= /usr/include/ufs/lfs
5 INCS= lfs.h lfs_accessors.h lfs_inode.h lfs_extern.h
H A Dlfs_inode.c92 static int lfs_update_seguse(struct lfs *, struct inode *ip, long, size_t);
96 static int lfs_blkfree (struct lfs *, struct inode *, daddr_t, size_t, long *, size_t *);
101 lfs_ifind(struct lfs *fs, ino_t ino, struct buf *bp) in lfs_ifind()
134 struct lfs *fs = VFSTOULFS(vp->v_mount)->um_lfs; in lfs_update()
220 struct lfs *fs; in lfs_truncate()
628 lfs_blkfree(struct lfs *fs, struct inode *ip, daddr_t daddr, in lfs_blkfree()
650 lfs_update_seguse(struct lfs *fs, struct inode *ip, long lastseg, size_t num) in lfs_update_seguse()
673 lfs_finalize_seguse(struct lfs *fs, void *v) in lfs_finalize_seguse()
698 lfs_finalize_ino_seguse(struct lfs *fs, struct inode *ip) in lfs_finalize_ino_seguse()
706 lfs_finalize_fs_seguse(struct lfs *fs) in lfs_finalize_fs_seguse()
[all …]
/netbsd-src/sys/ufs/
H A Dfiles.ufs66 define lfs: vfs
67 file ufs/lfs/lfs_alloc.c lfs
68 file ufs/lfs/lfs_balloc.c lfs
69 file ufs/lfs/lfs_bio.c lfs
70 file ufs/lfs/lfs_cksum.c lfs
71 file ufs/lfs/lfs_debug.c lfs & debug
72 file ufs/lfs/lfs_inode.c lfs
73 file ufs/lfs/lfs_itimes.c lfs
74 file ufs/lfs/lfs_pages.c lfs
75 file ufs/lfs/lfs_rename.c lfs
[all …]
/netbsd-src/sbin/fsck_lfs/
H A Dsegwrite.h42 int lfs_segwrite(struct lfs *, int);
43 void lfs_writefile(struct lfs *, struct segment *, struct uvnode *);
44 int lfs_writeinode(struct lfs *, struct segment *, struct inode *);
46 int lfs_gather(struct lfs *, struct segment *, struct uvnode *,
47 int (*match) (struct lfs *, struct ubuf *));
49 int lfs_initseg(struct lfs *);
50 void lfs_newseg(struct lfs *);
51 int lfs_writeseg(struct lfs *, struct segment *);
52 void lfs_writesuper(struct lfs *, daddr_t);
54 int lfs_match_data(struct lfs *, struct ubuf *);
[all …]
H A Dlfs_user.h33 struct lfs;
84 struct uvnode *lfs_raw_vget(struct lfs *, ino_t, int, daddr_t);
85 struct lfs *lfs_init(int, daddr_t, daddr_t, int, int);
86 struct lfs *lfs_verify(struct lfs *, struct lfs *, struct uvnode *, int);
87 int check_summary(struct lfs *, union segsum *, daddr_t, int, struct uvnode *, void (*)(daddr_t, un…
88 daddr_t try_verify(struct lfs *, struct uvnode *, daddr_t, int);
89 union lfs_dinode *lfs_ifind(struct lfs *, ino_t, struct ubuf *);
92 int extend_ifile(struct lfs *);
93 struct uvnode *lfs_valloc(struct lfs *, ino_t);
H A Dlfs.c136 struct lfs *fs; in lfs_vop_bwrite()
155 ulfs_bmaparray(struct lfs * fs, struct uvnode * vp, daddr_t bn, daddr_t * bnp, struct indir * ap, i… in ulfs_bmaparray()
228 ulfs_getlbns(struct lfs * fs, struct uvnode * vp, daddr_t bn, struct indir * ap, int *nump) in ulfs_getlbns()
307 lfs_ifind(struct lfs *fs, ino_t ino, struct ubuf *bp) in lfs_ifind()
332 lfs_raw_vget(struct lfs * fs, ino_t ino, int fd, daddr_t daddr) in lfs_raw_vget()
355 ip->inode_ext.lfs = ecalloc(1, sizeof(*ip->inode_ext.lfs)); in lfs_raw_vget()
370 free(ip->inode_ext.lfs); in lfs_raw_vget()
407 struct lfs *fs = (struct lfs *)vfs; in lfs_vget()
425 check_sb(struct lfs *fs) in check_sb()
468 struct lfs *
[all …]
H A Dsegwrite.c103 static void lfs_shellsort(struct lfs *,
111 lfs_match_data(struct lfs * fs, struct ubuf * bp) in lfs_match_data()
117 lfs_match_indir(struct lfs * fs, struct ubuf * bp) in lfs_match_indir()
126 lfs_match_dindir(struct lfs * fs, struct ubuf * bp) in lfs_match_dindir()
135 lfs_match_tindir(struct lfs * fs, struct ubuf * bp) in lfs_match_tindir()
147 lfs_segwrite(struct lfs * fs, int flags) in lfs_segwrite()
195 lfs_writefile(struct lfs * fs, struct segment * sp, struct uvnode * vp) in lfs_writefile()
242 lfs_writeinode(struct lfs * fs, struct segment * sp, struct inode * ip) in lfs_writeinode()
371 struct lfs *fs; in lfs_gatherblock()
417 lfs_gather(struct lfs * fs, struct segment * sp, struct uvnode * vp, int (*match) (struct lfs *, st… in lfs_gather() argument
[all …]
/netbsd-src/sbin/scan_ffs/
H A Dscan_ffs.c67 struct lfs *lfs; member
275 lfs_sb_getsize(sbi->lfs), in lfs_printpart()
276 lfs_sb_getident(sbi->lfs)); in lfs_printpart()
280 (lfs_sb_getsize(sbi->lfs) * in lfs_printpart()
281 lfs_sb_getfsize(sbi->lfs) / 512)); in lfs_printpart()
284 lfs_sb_getfsize(sbi->lfs), lfs_sb_getbsize(sbi->lfs), in lfs_printpart()
285 lfs_sb_getnseg(sbi->lfs), sbi->lfs_path, in lfs_printpart()
286 sbi->lfs->lfs_is64 ? 64 : 32, in lfs_printpart()
287 lfs_sb_getversion(sbi->lfs)); in lfs_printpart()
290 (void)printf("LFS%d v%d", sbi->lfs->lfs_is64 ? 64 : 32, in lfs_printpart()
[all …]
/netbsd-src/sys/arch/sparc/stand/bootblk/
H A DMakefile15 CLEANFILES= ffs.fth.h lfs.fth.h assym.fth.h.tmp \
31 lfs.fth.h: genlfs.cf machine sparc
33 ${GENASSYM_CPPFLAGS} < ${.CURDIR}/genlfs.cf >lfs.fth.h.tmp && \
34 mv -f lfs.fth.h.tmp lfs.fth.h
36 bootblk.text: bootblk.fth ffs.fth.h lfs.fth.h
41 bootblk: bootblk.fth ffs.fth.h lfs.fth.h
H A Dbootblk.fth166 fload lfs.fth.h
278 : lfs-blkoff ( pos.lo pos.hi fs -- off.lo off.hi ) lfs_bmask d@ d-and ;
279 \ : lfs-fragoff ( pos.lo pos.hi fs -- off.lo off.hi ) lfs_ffmask d@ d-and ;
280 \ : lfs-lblktosize ( blk fs -- off.lo off.hi ) 0 lfs_bshift l@ d<< ;
281 : lfs-lblkno ( pos.lo pos.hi fs -- off.lo off.hi ) lfs_bshift l@ d>> ;
282 : lfs-numfrags ( pos.lo pos.hi fs -- off.lo off.hi ) lfs_ffshift l@ d>> ;
283 : lfs-roundup ( pos.lo pos.hi mask.lo mask.hi )
287 : lfs-blkroundup ( pos.lo pos.hi fs -- off.lo off.hi ) lfs_bmask d@ lfs-roundup ;
288 : lfs-fragroundup ( pos.lo pos.hi fs -- off.lo off.hi ) lfs_ffmask d@ lfs-roundup ;
289 : lfs-fragstoblks ( pos.lo pos.hi fs -- off.lo off.hi ) lfs_fbshift l@ d>> ;
[all …]
/netbsd-src/usr.sbin/dumplfs/
H A Ddumplfs.c68 static void dump_cleaner_info(struct lfs *, void *);
69 static void dump_dinode(struct lfs *, union lfs_dinode *);
70 static void dump_ifile(int, struct lfs *, int, int, daddr_t);
71 static int dump_ipage_ifile(struct lfs *, int, char *, int);
72 static int dump_ipage_segusage(struct lfs *, int, char *, int);
73 static void dump_segment(int, int, daddr_t, struct lfs *, int);
74 static int dump_sum(int, struct lfs *, SEGSUM *, int, daddr_t);
75 static void dump_super(struct lfs *);
94 print_suentry(int i, SEGUSE *sp, struct lfs *fs) in print_suentry()
120 print_ientry(int i, struct lfs *lfsp, IFILE *ip) in print_ientry()
[all …]
/netbsd-src/sbin/newfs_lfs/
H A Dextern.h34 struct lfs;
36 uint32_t lfs_sb_cksum(struct lfs *);
/netbsd-src/sys/ufs/ufs/
H A Dinode.h108 struct lfs *lfs; /* LFS */ member
112 #define i_lfs inode_u.lfs
134 struct lfs_inode_ext *lfs; member

12345