Lines Matching refs:fbl
16 #include <fbl/limits.h>
17 #include <fbl/ref_ptr.h>
18 #include <fbl/unique_ptr.h>
30 zx_status_t do_stat(fbl::RefPtr<fs::Vnode> vn, struct stat* s) {
45 fbl::RefPtr<fs::Vnode> vn;
100 fbl::RefPtr<minfs::VnodeMinfs> fake_root = nullptr;
101 fbl::unique_ptr<fs::Vfs> fake_vfs = nullptr;
107 fbl::unique_fd fd(open(path, O_RDWR));
121 fbl::unique_ptr<minfs::Bcache> bc;
122 if (minfs::Bcache::Create(&bc, fbl::move(fd), (uint32_t) size) < 0) {
127 return Mkfs(fbl::move(bc));
131 fbl::unique_fd fd(open(path, O_RDWR));
145 fbl::unique_ptr<minfs::Bcache> bc;
146 if (minfs::Bcache::Create(&bc, fbl::move(fd), (uint32_t) size) < 0) {
151 int r = minfs::minfs_mount(fbl::move(bc), &fakeFs.fake_root);
158 int emu_mount_bcache(fbl::unique_ptr<minfs::Bcache> bc) {
159 int r = minfs::minfs_mount(fbl::move(bc), &fakeFs.fake_root) == ZX_OK ? 0 : -1;
222 fbl::RefPtr<fs::Vnode> vn_fs;
223 fbl::StringPiece str(path + PREFIX_SIZE);
229 fdtab[fd].vn = fbl::RefPtr<fs::Vnode>::Downcast(vn_fs);
258 ZX_DEBUG_ASSERT(actual <= fbl::numeric_limits<ssize_t>::max());
274 ZX_DEBUG_ASSERT(actual <= fbl::numeric_limits<ssize_t>::max());
291 ZX_DEBUG_ASSERT(actual <= fbl::numeric_limits<ssize_t>::max());
306 ZX_DEBUG_ASSERT(actual <= fbl::numeric_limits<ssize_t>::max());
374 fbl::RefPtr<fs::Vnode> vn = fakeFs.fake_root;
375 fbl::RefPtr<fs::Vnode> cur = fakeFs.fake_root;
394 fbl::RefPtr<fs::Vnode> vn_fs;
395 status = cur->Lookup(&vn_fs, fbl::StringPiece(fn, len));
399 vn = fbl::RefPtr<fs::Vnode>::Downcast(vn_fs);
418 fbl::RefPtr<fs::Vnode> vn;
440 fbl::RefPtr<fs::Vnode> vn;
441 fbl::StringPiece path(name + PREFIX_SIZE);
448 dir->vn = fbl::RefPtr<fs::Vnode>::Downcast(vn);