Lines Matching refs:unique_fd
252 fbl::unique_fd fd(open(ramdisk_path_, O_RDWR)); in Init()
265 fbl::unique_fd fvm_fd(open(fvm_path_, O_RDWR)); in Init()
464 fbl::unique_fd fd(open(MOUNT_PATH, O_RDONLY | O_DIRECTORY)); in CheckInfo()
494 fbl::unique_fd fd(open(ramdisk_path_, flags)); in Mount()
560 static bool MakeBlob(blob_info_t* info, fbl::unique_fd* out_fd) { in MakeBlob()
561 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in MakeBlob()
571 static bool MakeBlobUnverified(blob_info_t* info, fbl::unique_fd* out_fd) { in MakeBlobUnverified()
572 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in MakeBlobUnverified()
595 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in MakeBlobCompromised()
672 fbl::unique_fd fd(open(MOUNT_PATH, O_RDONLY | O_DIRECTORY)); in QueryInfo()
711 fbl::unique_fd fd; in TestBasic()
740 ASSERT_TRUE(fbl::unique_fd(open(info->path, O_CREAT | O_EXCL | O_RDWR))); in TestUnallocatedBlob()
742 ASSERT_FALSE(fbl::unique_fd(open(info->path, O_RDWR))); in TestUnallocatedBlob()
743 ASSERT_FALSE(fbl::unique_fd(open(info->path, O_RDONLY))); in TestUnallocatedBlob()
746 fbl::unique_fd fd(open(info->path, O_CREAT | O_EXCL | O_RDWR)); in TestUnallocatedBlob()
759 fbl::unique_fd fd(open(info->path, O_CREAT | O_EXCL | O_RDWR)); in TestNullBlob()
795 fbl::unique_fd fd; in TestCompressibleBlob()
832 fbl::unique_fd fd; in TestMmap()
855 fbl::unique_fd fd; in TestMmapUseAfterClose()
907 fbl::unique_fd fd; in TestReaddir()
1034 fbl::unique_fd fd; in TestQueryInfo()
1051 fbl::unique_fd fd; in UseAfterUnlink()
1073 fbl::unique_fd fd; in WriteAfterRead()
1101 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in WriteAfterUnlink()
1118 fbl::unique_fd fd; in ReadTooLarge()
1158 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in BadAllocation()
1249 fbl::unique_fd fd; in EdgeAllocation()
1262 fbl::unique_fd fd; in UmountWithOpenFile()
1284 fbl::unique_fd fd; in UmountWithMappedFile()
1309 fbl::unique_fd fd; in UmountWithOpenMappedFile()
1337 fbl::unique_fd fd; in CreateUmountRemountSmall()
1388 fbl::unique_fd fd(open(info->path, O_CREAT | O_EXCL | O_RDWR)); in EarlyRead()
1395 fbl::unique_fd fd2(open(info->path, O_CREAT | O_RDWR)); in EarlyRead()
1436 fbl::unique_fd fd(open(info->path, O_CREAT | O_EXCL | O_RDWR)); in WaitForRead()
1444 fbl::unique_fd fd(*static_cast<int*>(arg)); in WaitForRead()
1498 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in WriteSeekIgnored()
1522 auto full_unlink_reopen = [](fbl::unique_fd& fd, const char* path) { in UnlinkTiming()
1534 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in UnlinkTiming()
1560 fbl::unique_fd fd; in InvalidOps()
1586 fbl::unique_fd dirfd(open(MOUNT_PATH "/.", O_RDONLY)); in RootDirectory()
1614 fbl::unique_fd fd_partial(open(info_partial->path, O_CREAT | O_RDWR)); in TestPartialWrite()
1621 fbl::unique_fd fd_complete; in TestPartialWrite()
1643 fbl::unique_fd fd_partial(open(info_partial->path, O_CREAT | O_RDWR)); in TestPartialWriteSleepRamdisk()
1650 fbl::unique_fd fd_complete; in TestPartialWriteSleepRamdisk()
1687 fbl::unique_fd fd;
1717 fbl::unique_fd fd(open(state->info->path, O_CREAT | O_RDWR)); in blob_create_helper()
1825 fbl::unique_fd fd(open(state->info->path, O_RDONLY)); in blob_reopen_helper()
1884 fbl::unique_fd fd; in TestHugeBlobRandom()
1925 fbl::unique_fd fd; in TestHugeBlobCompressible()
1999 fbl::unique_fd fd(open(state.info->path, O_RDONLY)); in CreateUmountRemountLarge()
2081 fbl::unique_fd fd(open(state.info->path, O_RDONLY)); in CreateUmountRemountLargeMultithreaded()
2106 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in NoSpace()
2154 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in TestFragmentation()
2186 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in TestFragmentation()
2228 fbl::unique_fd dirfd(open(MOUNT_PATH "/.", O_RDONLY | O_ADMIN)); in QueryDevicePath()
2267 fbl::unique_fd blob_fd; in TestReadOnly()
2302 fbl::unique_fd fd; in ResizePartition()
2345 fbl::unique_fd fd(blobfsTest->GetFd()); in CorruptAtMount()
2412 fbl::unique_fd fd(open(dat->path, O_RDONLY)); in reopen_thread()
2441 fbl::unique_fd fd; in CreateWriteReopen()
2442 fbl::unique_fd anchor_fd; in CreateWriteReopen()
2494 fbl::unique_fd fd; in TestCreateFailure()
2535 fbl::unique_fd fd; in TestExtendFailure()
2626 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in TestFailedWrite()
2708 fbl::unique_fd fd; in TestLargeBlob()
2792 fbl::unique_fd fd(open(argv[i + 1], O_RDWR)); in main()