Lines Matching refs:bootfs
5 #include "bootfs.h"
16 void bootfs_mount(zx_handle_t vmar, zx_handle_t log, zx_handle_t vmo, struct bootfs *fs) {
19 check(log, status, "zx_vmo_get_size failed on bootfs vmo\n");
22 check(log, status, "zx_vmar_map failed on bootfs vmo\n");
30 check(log, status, "zx_handle_duplicate failed on bootfs VMO handle\n");
33 void bootfs_unmount(zx_handle_t vmar, zx_handle_t log, struct bootfs *fs) {
41 struct bootfs *fs,
46 fail(log, "bootfs is too small");
50 fail(log, "bootfs bad magic or size");
62 fail(log, "bootfs has bogus namelen in header");
77 struct bootfs *fs, const char* filename) {
78 printl(log, "searching bootfs for '%s'", filename);
86 fail(log, "bogus offset in bootfs header!");
88 fail(log, "bogus size in bootfs header!");
90 // Clone a private copy of the file's subset of the bootfs VMO.