Lines Matching refs:bfs
51 #include <fs/sysvbfs/bfs.h>
75 struct bfs *bfs = bnode->bmp->bfs; /* my filesystem */
104 if (!bfs_dirent_lookup_by_name(bfs, cnp->cn_nameptr,
141 struct bfs *bfs = bmp->bfs;
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))
231 bfs_inode_set_attr(bnode->bmp->bfs, bnode->inode, &attr);
338 struct bfs *bfs = bnode->bmp->bfs;
413 bfs_inode_set_attr(bfs, inode, attr);
521 struct bfs *bfs = bmp->bfs;
531 if ((err = bfs_file_delete(bfs, ap->a_cnp->cn_nameptr, true)) != 0)
562 struct bfs *bfs = bnode->bmp->bfs;
592 error = bfs_file_delete(bfs, to_name, true);
596 error = bfs_file_rename(bfs, from_name, to_name);
626 struct bfs *bfs = bnode->bmp->bfs;
643 if ((i + n) > bfs->n_dirent)
644 n = bfs->n_dirent - i;
646 DPRINTF("%s 1: %d %d %d\n", __func__, i, n, bfs->n_dirent);
647 for (file = &bfs->dirent[i]; n > 0; file++, i++) {
648 if (i == bfs->max_dirent) {
670 DPRINTF("%s 2: %d %d %d\n", __func__, i, n, bfs->n_dirent);
671 *ap->a_eofflag = (i == bfs->n_dirent);
705 struct bfs *bfs = bnode->bmp->bfs;
712 if (bfs_inode_delete(bfs, bnode->inode->number) != 0)
739 /* BFS algorithm is contiguous allocation */
742 if (blk * BFS_BSIZE > bmp->bfs->data_end)
798 bfs_dump(bnode->bmp->bfs);
907 bfs_inode_set_attr(bnode->bmp->bfs, bnode->inode, &attr);