HomeSort by: relevance | last modified time | path
    Searched defs:bfs (Results 1 - 13 of 13) sorted by relevancy

  /src/sys/arch/ews4800mips/stand/common/
diskutil.c 38 #include <machine/bfs.h>
102 struct bfs *bfs; local in function:bfs_ls
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);
mem.c 37 #include <machine/bfs.h>
55 struct bfs *bfs; local in function:cmd_mem
91 if (bfs_init(&bfs) != 0) {
92 printf("no BFS partition.\n");
114 if (bfs_file_write(bfs, filename, p, size) != 0)
115 printf("BFS write failed.\n");
116 bfs_fini(bfs);
120 if (bfs_file_read(bfs, filename, p, size, 0) != 0)
121 printf("BFS read failed.\n")
    [all...]
bootfs.c 36 #include <machine/bfs.h>
41 /* System V bfs */
43 FS_DEF(bfs);
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);
prompt.c 36 #include <machine/bfs.h>
195 struct bfs *bfs; local in function:cmd_log_save
197 if (bfs_init(&bfs) != 0) {
198 printf("no BFS partition.\n");
202 if (bfs_file_write(bfs, "boot.log", __log, LOG_SIZE) != 0)
203 printf("BFS write failed.\n");
205 bfs_fini(bfs);
  /src/sys/fs/sysvbfs/
sysvbfs.h 35 struct bfs;
61 struct bfs *bfs; member in struct:sysvbfs_mount
sysvbfs_vfsops.c 54 #include <fs/sysvbfs/bfs.h> /* internal interface */
189 if ((error = sysvbfs_bfs_init(&bmp->bfs, devvp)) != 0) {
234 sysvbfs_bfs_fini(bmp->bfs);
261 struct bfs *bfs = bmp->bfs; local in function:sysvbfs_statvfs
265 data_block = (bfs->data_end - bfs->data_start) >> BFS_BSHIFT;
266 if (bfs_inode_alloc(bfs, 0, 0, &free_block) != 0)
269 free_block = (bfs->data_end >> BFS_BSHIFT) - free_block
321 struct bfs *bfs; local in function:sysvbfs_loadvnode
    [all...]
bfs.c 1 /* $NetBSD: bfs.c,v 1.19 2019/11/10 21:16:38 chs Exp $ */
34 __KERNEL_RCSID(0, "$NetBSD: bfs.c,v 1.19 2019/11/10 21:16:38 chs 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 *bfs local in function:bfs_init2
    [all...]
bfs.h 1 /* $NetBSD: bfs.h,v 1.8 2014/01/09 13:23:57 hannken Exp $ */
53 /* BFS specification */
111 struct bfs { struct
147 int bfs_init2(struct bfs **, int, struct sector_io_ops *, bool);
148 void bfs_fini(struct bfs *);
149 int bfs_file_read(const struct bfs *, const char *, void *, size_t, size_t *);
150 int bfs_file_write(struct bfs *, const char *, void *, size_t);
151 int bfs_file_create(struct bfs *, const char *, void *, size_t,
153 int bfs_file_delete(struct bfs *, const char *, bool);
154 int bfs_file_rename(struct bfs *, const char *, const char *)
    [all...]
sysvbfs_vnops.c 51 #include <fs/sysvbfs/bfs.h>
75 struct bfs *bfs = bnode->bmp->bfs; /* my filesystem */ local in function:sysvbfs_lookup
104 if (!bfs_dirent_lookup_by_name(bfs, cnp->cn_nameptr,
141 struct bfs *bfs = bmp->bfs; local in function:sysvbfs_create
155 if ((err = bfs_file_create(bfs, a->a_cnp->cn_nameptr, 0, 0, &attr))
161 if (!bfs_dirent_lookup_by_name(bfs, a->a_cnp->cn_nameptr, &dirent)
338 struct bfs *bfs = bnode->bmp->bfs; local in function:sysvbfs_setattr
521 struct bfs *bfs = bmp->bfs; local in function:sysvbfs_remove
562 struct bfs *bfs = bnode->bmp->bfs; local in function:sysvbfs_rename
626 struct bfs *bfs = bnode->bmp->bfs; local in function:sysvbfs_readdir
705 struct bfs *bfs = bnode->bmp->bfs; local in function:sysvbfs_reclaim
    [all...]
  /src/sbin/newfs_sysvbfs/
newfs_sysvbfs.c 50 #include <fs/sysvbfs/bfs.h>
181 struct bfs_super_block *bfs = (void *)buf; local in function:bfs_newfs
189 bfs->header.magic = BFS_MAGIC;
190 bfs->header.data_start_byte = DEV_BSIZE * 2; /* super block + inode */
191 bfs->header.data_end_byte = nsectors * BFS_BSIZE - 1;
192 bfs->compaction.from = 0xffffffff;
193 bfs->compaction.to = 0xffffffff;
194 bfs->compaction.from_backup = 0xffffffff;
195 bfs->compaction.to_backup = 0xffffffff;
  /src/sys/arch/ews4800mips/ews4800mips/
disklabel_conv.c 63 * | BFS |
66 * . and etc. . BFS (partition 3)
93 struct ux_partition *bfs; local in function:vtoc_set_default
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;
  /src/usr.bin/tftp/
tftpsubs.c 66 } bfs[2]; variable in typeref:struct:bf[2]
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[current].counter = BF_ALLOC; /* mark as alloc'd *
    [all...]
  /src/sys/ufs/ffs/
ffs_vfsops.c 2414 struct fs *bfs; local in function:ffs_sbupdate
2428 bfs = (struct fs *)bp->b_data;
2430 bfs->fs_flags &= ~FS_INTERNAL;
2433 KASSERT(bfs->fs_magic == FS_UFS2_MAGIC);
2434 bfs->fs_magic = FS_UFS2EA_MAGIC;
2438 ffs_sb_swap(bfs, bfs);

Completed in 19 milliseconds