Searched refs:bfs (Results 1 - 25 of 28) sorted by relevance

12

/netbsd-6-1-5-RELEASE/sys/fs/sysvbfs/
H A Dbfs.c1 /* $NetBSD: bfs.c,v 1.12 2009/04/26 12:41:59 uch Exp $ */
34 __KERNEL_RCSID(0, "$NetBSD: bfs.c,v 1.12 2009/04/26 12:41:59 uch Exp $");
59 #include <fs/sysvbfs/bfs.h>
72 STATIC int bfs_init_superblock(struct bfs *, int, size_t *);
73 STATIC int bfs_init_inode(struct bfs *, uint8_t *, size_t *);
74 STATIC int bfs_init_dirent(struct bfs *, uint8_t *);
78 STATIC bool bfs_writeback_dirent(const struct bfs *, struct bfs_dirent *,
80 STATIC bool bfs_writeback_inode(const struct bfs *, struct bfs_inode *);
83 bfs_init2(struct bfs **bfsp, int bfs_sector, struct sector_io_ops *io,
86 struct bfs *bf local
136 bfs_fini(struct bfs *bfs) argument
149 bfs_init_superblock(struct bfs *bfs, int bfs_sector, size_t *required_memory) argument
175 bfs_init_inode(struct bfs *bfs, uint8_t *p, size_t *required_memory) argument
216 bfs_init_dirent(struct bfs *bfs, uint8_t *p) argument
243 bfs_file_read(const struct bfs *bfs, const char *fname, void *buf, size_t bufsz, size_t *read_size) argument
274 bfs_file_write(struct bfs *bfs, const char *fname, void *buf, size_t bufsz) argument
311 bfs_file_delete(struct bfs *bfs, const char *fname) argument
335 bfs_file_rename(struct bfs *bfs, const char *from_name, const char *to_name) argument
357 bfs_file_create(struct bfs *bfs, const char *fname, void *buf, size_t bufsz, const struct bfs_fileattr *attr) argument
435 bfs_writeback_dirent(const struct bfs *bfs, struct bfs_dirent *dir, bool create) argument
471 bfs_writeback_inode(const struct bfs *bfs, struct bfs_inode *inode) argument
484 bfs_file_lookup(const struct bfs *bfs, const char *fname, int *start, int *end, size_t *size) argument
510 bfs_dirent_lookup_by_inode(const struct bfs *bfs, int inode, struct bfs_dirent **dirent) argument
529 bfs_dirent_lookup_by_name(const struct bfs *bfs, const char *fname, struct bfs_dirent **dirent) argument
549 bfs_inode_lookup(const struct bfs *bfs, ino_t n, struct bfs_inode **iinode) argument
574 bfs_inode_alloc(const struct bfs *bfs, struct bfs_inode **free_inode, int *free_inode_number, int *free_block) argument
624 bfs_inode_set_attr(const struct bfs *bfs, struct bfs_inode *inode, const struct bfs_fileattr *from) argument
654 bfs_dump(const struct bfs *bfs) argument
[all...]
H A Dbfs.h1 /* $NetBSD: bfs.h,v 1.4 2007/12/25 18:33:44 perry Exp $ */
111 struct bfs { struct
145 int bfs_init2(struct bfs **, int, struct sector_io_ops *, bool);
146 void bfs_fini(struct bfs *);
147 int bfs_file_read(const struct bfs *, const char *, void *, size_t, size_t *);
148 int bfs_file_write(struct bfs *, const char *, void *, size_t);
149 int bfs_file_create(struct bfs *, const char *, void *, size_t,
151 int bfs_file_delete(struct bfs *, const char *);
152 int bfs_file_rename(struct bfs *, const char *, const char *);
153 bool bfs_file_lookup(const struct bfs *, cons
[all...]
H A DMakefile5 INCS= bfs.h sysvbfs_args.h
H A Dbfs_sysvbfs.c42 #include <fs/sysvbfs/bfs.h>
58 sysvbfs_bfs_init(struct bfs **bfsp, struct vnode *vp)
78 sysvbfs_bfs_fini(struct bfs *bfs) argument
81 free(bfs->io, M_TEMP);
82 bfs_fini(bfs);
H A Dsysvbfs.h35 struct bfs;
63 struct bfs *bfs; member in struct:sysvbfs_mount
H A Dsysvbfs_vfsops.c54 #include <fs/sysvbfs/bfs.h> /* internal interface */
186 if ((error = sysvbfs_bfs_init(&bmp->bfs, devvp)) != 0) {
233 sysvbfs_bfs_fini(bmp->bfs);
260 struct bfs *bfs = bmp->bfs; local
264 data_block = (bfs->data_end - bfs->data_start) >> BFS_BSHIFT;
265 if (bfs_inode_alloc(bfs, 0, 0, &free_block) != 0)
268 free_block = (bfs
323 struct bfs *bfs = bmp->bfs; local
[all...]
H A Dsysvbfs_vnops.c51 #include <fs/sysvbfs/bfs.h>
73 struct bfs *bfs = bnode->bmp->bfs; /* my filesystem */ local
102 if (!bfs_dirent_lookup_by_name(bfs, cnp->cn_nameptr,
136 struct bfs *bfs = bmp->bfs; local
150 if ((err = bfs_file_create(bfs, a->a_cnp->cn_nameptr, 0, 0, &attr))
156 if (!bfs_dirent_lookup_by_name(bfs,
186 struct bfs *bfs = bnode->bmp->bfs; local
333 struct bfs *bfs = bnode->bmp->bfs; local
489 struct bfs *bfs = bmp->bfs; local
531 struct bfs *bfs = bnode->bmp->bfs; local
593 struct bfs *bfs = bnode->bmp->bfs; local
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/ews4800mips/include/
H A Dbfs.h1 /* $NetBSD: bfs.h,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
34 #include <fs/sysvbfs/bfs.h>
38 int bfs_init(struct bfs **);
/netbsd-6-1-5-RELEASE/lib/libc/compat/sys/
H A Dcompat_statfs.c91 vfs2fs(struct statfs12 *bfs, const struct statvfs *fs) argument
94 bfs->f_type = 0;
95 bfs->f_oflags = (short)fs->f_flag;
99 bfs->f_type = nv[i].value;
104 bfs->f_bsize = CLAMP(fs->f_frsize);
105 bfs->f_iosize = CLAMP(fs->f_iosize);
106 bfs->f_blocks = CLAMP(fs->f_blocks);
107 bfs->f_bfree = CLAMP(fs->f_bfree);
109 bfs->f_bavail = CLAMP(fs->f_bfree - fs->f_bresvd);
111 bfs
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/ews4800mips/stand/common/
H A Ddiskutil.c38 #include <machine/bfs.h>
102 struct bfs *bfs; local
110 if (bfs_init(&bfs) != 0)
113 for (file = bfs->dirent, i = 0; i < bfs->max_dirent; i++, file++) {
115 inode = &bfs->inode[file->inode - BFS_ROOT_INODE];
122 bfs_fini(bfs);
H A Dmem.c37 #include <machine/bfs.h>
55 struct bfs *bfs; local
91 if (bfs_init(&bfs) != 0) {
114 if (bfs_file_write(bfs, filename, p, size) != 0)
116 bfs_fini(bfs);
120 if (bfs_file_read(bfs, filename, p, size, 0) != 0)
124 bfs_fini(bfs);
129 if (bfs_file_write(bfs, filename, p, size) != 0)
131 bfs_fini(bfs);
[all...]
H A Dprompt.c36 #include <machine/bfs.h>
195 struct bfs *bfs; local
197 if (bfs_init(&bfs) != 0) {
202 if (bfs_file_write(bfs, "boot.log", __log, LOG_SIZE) != 0)
205 bfs_fini(bfs);
H A Dbootfs.c36 #include <machine/bfs.h>
41 /* System V bfs */
43 FS_DEF(bfs); variable
50 struct bfs *bfs; member in struct:bfs_file
66 if (bfs_init(&file->bfs) != 0) {
71 if (!bfs_file_lookup(file->bfs, name, &file->start, &file->end,
73 bfs_fini(file->bfs);
91 bfs_fini(file->bfs);
H A Dbfs_subr.c46 #include <machine/bfs.h>
56 bfs_init(struct bfs **bfsp)
/netbsd-6-1-5-RELEASE/usr.bin/tftp/
H A Dtftpsubs.c66 } bfs[2]; variable in typeref:struct:bf
100 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */
102 bfs[1].counter = BF_FREE;
104 return (struct tftphdr *)(void *)bfs[0].buf;
119 bfs[current].counter = BF_FREE; /* free old one */
122 b = &bfs[current]; /* look at new buffer */
146 b = &bfs[nextone]; /* look at "next" buffer */
187 bfs[current].counter = ct; /* set size of data to write */
189 if (bfs[current].counter != BF_FREE) /* if not free */
192 bfs[curren
[all...]
/netbsd-6-1-5-RELEASE/sys/modules/sysvbfs/
H A DMakefile8 SRCS= bfs.c bfs_sysvbfs.c sysvbfs.c sysvbfs_vnops.c sysvbfs_vfsops.c
/netbsd-6-1-5-RELEASE/sys/rump/fs/lib/libsysvbfs/
H A DMakefile8 SRCS= bfs.c bfs_sysvbfs.c sysvbfs.c sysvbfs_vnops.c sysvbfs_vfsops.c
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/gas/testsuite/gas/cr16/
H A Dbcc_test.s16 bfs *+0x09a
35 bfs *+0x0f9a
53 bfs *+0x660f9a
H A Dbcc_test.d17 e: 8d 14 bfs \*\+0xa8 <main\+0xa8>:s
33 48: 80 18 9a 0f bfs \*\+0xfe2 <main\+0xfe2>:m
56 94: 10 00 86 06 bfs \*\+0x66102e <main\+0x66102e>:l
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/gas/testsuite/gas/crx/
H A Dbr_insn.s56 .global bfs
57 bfs: label
58 bfs *+0x2 label
59 bfs *+0177776 label
60 bfs *+0200000 label
H A Dbr_insn.d55 0000005a <bfs>:
56 5a: 01 78 bfs 0x[0-9a-f]* [-_<>+0-9a-z]*
57 5c: 7e 78 ff 7f bfs 0x[0-9a-f]* [-_<>+0-9a-z]*
58 60: 7f 78 00 00 bfs 0x[0-9a-f]* [-_<>+0-9a-z]*
/netbsd-6-1-5-RELEASE/sbin/newfs_sysvbfs/
H A Dnewfs_sysvbfs.c46 #include <fs/sysvbfs/bfs.h>
177 struct bfs_super_block *bfs = (void *)buf; local
185 bfs->header.magic = BFS_MAGIC;
186 bfs->header.data_start_byte = DEV_BSIZE * 2; /* super block + inode */
187 bfs->header.data_end_byte = nsectors * BFS_BSIZE - 1;
188 bfs->compaction.from = 0xffffffff;
189 bfs->compaction.to = 0xffffffff;
190 bfs->compaction.from_backup = 0xffffffff;
191 bfs->compaction.to_backup = 0xffffffff;
/netbsd-6-1-5-RELEASE/sys/arch/ews4800mips/ews4800mips/
H A Ddisklabel_conv.c93 struct ux_partition *bfs; local
146 bfs = &vtoc->partition[3];
147 bfs->tag = VTOC_TAG_STAND;
148 bfs->flags = 0;
149 bfs->start_sector = _BOOTBLOCK_SIZE;
151 res = nsectors - bfs->start_sector;
152 bfs->nsectors = res > _BFS_SIZE ? _BFS_SIZE : res;
/netbsd-6-1-5-RELEASE/sys/compat/svr4/
H A Dsvr4_misc.c1059 svr4_copyout_statvfs(const struct statvfs *bfs, struct svr4_statvfs *sufs) argument
1064 sfs->f_bsize = bfs->f_bsize;
1065 sfs->f_frsize = bfs->f_frsize;
1066 sfs->f_blocks = bfs->f_blocks;
1067 sfs->f_bfree = bfs->f_bfree;
1068 sfs->f_bavail = bfs->f_bavail;
1069 sfs->f_files = bfs->f_files;
1070 sfs->f_ffree = bfs->f_ffree;
1071 sfs->f_favail = bfs->f_favail;
1072 sfs->f_fsid = bfs
1091 svr4_copyout_statvfs64(const struct statvfs *bfs, struct svr4_statvfs64 *sufs) argument
[all...]
/netbsd-6-1-5-RELEASE/sys/compat/svr4_32/
H A Dsvr4_32_misc.c1067 svr4_32_copyout_statvfs(const struct statvfs *bfs, struct svr4_32_statvfs *sufs) argument
1072 sfs->f_bsize = bfs->f_iosize; /* XXX */
1073 sfs->f_frsize = bfs->f_bsize;
1074 sfs->f_blocks = bfs->f_blocks;
1075 sfs->f_bfree = bfs->f_bfree;
1076 sfs->f_bavail = bfs->f_bavail;
1077 sfs->f_files = bfs->f_files;
1078 sfs->f_ffree = bfs->f_ffree;
1079 sfs->f_favail = bfs->f_ffree;
1080 sfs->f_fsid = bfs
1099 svr4_32_copyout_statvfs64(const struct statvfs *bfs, struct svr4_32_statvfs64 *sufs) argument
[all...]

Completed in 326 milliseconds

12