Lines Matching refs:open

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()
561 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in MakeBlob()
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()
716 fd.reset(open(info->path, O_RDONLY)); in TestBasic()
722 fd.reset(open(info->path, O_RDWR | O_CREAT)); in TestBasic()
724 fd.reset(open(info->path, O_RDWR)); in TestBasic()
726 fd.reset(open(info->path, O_WRONLY)); 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()
766 fd.reset(open(info->path, O_CREAT | O_EXCL | O_RDWR)); in TestNullBlob()
768 fd.reset(open(info->path, O_CREAT | O_RDWR)); in TestNullBlob()
771 fd.reset(open(info->path, O_RDONLY)); in TestNullBlob()
800 fd.reset(open(info->path, O_RDONLY)); in TestCompressibleBlob()
806 fd.reset(open(info->path, O_RDWR | O_CREAT)); in TestCompressibleBlob()
808 fd.reset(open(info->path, O_RDWR)); in TestCompressibleBlob()
810 fd.reset(open(info->path, O_WRONLY)); in TestCompressibleBlob()
815 fd.reset(open(info->path, O_RDONLY)); in TestCompressibleBlob()
835 fd.reset(open(info->path, O_RDONLY)); in TestMmap()
858 fd.reset(open(info->path, O_RDONLY)); in TestMmapUseAfterClose()
874 fd.reset(open(info->path, O_RDONLY)); in TestMmapUseAfterClose()
910 fd.reset(open(info[i]->path, O_RDONLY)); in TestReaddir()
1062 ASSERT_LT(open(info->path, O_RDONLY), 0, "Expected blob to be deleted"); in UseAfterUnlink()
1101 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in WriteAfterUnlink()
1108 ASSERT_LT(open(info->path, O_RDONLY), 0); in WriteAfterUnlink()
1149 ASSERT_LT(open(MOUNT_PATH "/00112233445566778899AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVV", in BadAllocation()
1152 ASSERT_LT(open(MOUNT_PATH "/00112233445566778899AABBCCDDEEFF", O_CREAT | O_RDWR), 0, in BadAllocation()
1158 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in BadAllocation()
1170 ASSERT_LT(open(info->path, O_RDWR), 0, "Cannot access partial blob"); in BadAllocation()
1171 ASSERT_LT(open(info->path, O_RDONLY), 0, "Cannot access partial blob"); in BadAllocation()
1174 fd.reset(open(info->path, O_CREAT | O_RDWR)); in BadAllocation()
1180 ASSERT_LT(open(info->path, O_RDWR), 0, "Cannot access partial blob"); in BadAllocation()
1271 fd.reset(open(info->path, O_RDONLY)); in UmountWithOpenFile()
1296 fd.reset(open(info->path, O_RDONLY)); in UmountWithMappedFile()
1322 fd.reset(open(info->path, O_RDONLY)); in UmountWithOpenMappedFile()
1344 fd.reset(open(info->path, O_RDONLY)); in CreateUmountRemountSmall()
1388 fbl::unique_fd fd(open(info->path, O_CREAT | O_EXCL | O_RDWR)); in EarlyRead()
1391 ASSERT_LT(open(info->path, O_CREAT | O_EXCL | O_RDWR), 0, 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()
1439 ASSERT_LT(open(info->path, O_CREAT | O_EXCL | O_RDWR), 0, in WaitForRead()
1498 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in WriteSeekIgnored()
1526 fd.reset(open(path, O_CREAT | O_RDWR | O_EXCL)); in UnlinkTiming()
1534 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in UnlinkTiming()
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()
1643 fbl::unique_fd fd_partial(open(info_partial->path, O_CREAT | O_RDWR)); in TestPartialWriteSleepRamdisk()
1659 fd_complete.reset(open(info_complete->path, O_RDONLY)); in TestPartialWriteSleepRamdisk()
1667 fd_partial.reset(open(info_partial->path, O_RDONLY)); in TestPartialWriteSleepRamdisk()
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()
1889 fd.reset(open(info->path, O_RDONLY)); in TestHugeBlobRandom()
1895 fd.reset(open(info->path, O_RDWR | O_CREAT)); in TestHugeBlobRandom()
1897 fd.reset(open(info->path, O_RDWR)); in TestHugeBlobRandom()
1899 fd.reset(open(info->path, O_WRONLY)); in TestHugeBlobRandom()
1904 fd.reset(open(info->path, O_RDONLY)); in TestHugeBlobRandom()
1930 fd.reset(open(info->path, O_RDONLY)); in TestHugeBlobCompressible()
1936 fd.reset(open(info->path, O_RDWR | O_CREAT)); in TestHugeBlobCompressible()
1938 fd.reset(open(info->path, O_RDWR)); in TestHugeBlobCompressible()
1940 fd.reset(open(info->path, O_WRONLY)); in TestHugeBlobCompressible()
1945 fd.reset(open(info->path, O_RDONLY)); in TestHugeBlobCompressible()
1999 fbl::unique_fd fd(open(state.info->path, O_RDONLY)); in CreateUmountRemountLarge()
2007 ASSERT_LT(open(state.info->path, O_RDONLY), 0); in CreateUmountRemountLarge()
2081 fbl::unique_fd fd(open(state.info->path, O_RDONLY)); in CreateUmountRemountLargeMultithreaded()
2089 ASSERT_LT(open(state.info->path, O_RDONLY), 0); 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()
2218 fd.reset(open(info->path, O_RDONLY)); in TestFragmentation()
2228 fbl::unique_fd dirfd(open(MOUNT_PATH "/.", O_RDONLY | O_ADMIN)); in QueryDevicePath()
2248 dirfd.reset(open(MOUNT_PATH "/.", O_RDONLY)); in QueryDevicePath()
2276 blob_fd.reset(open(info->path, O_RDONLY)); in TestReadOnly()
2283 ASSERT_LT(open(info->path, O_CREAT | O_RDWR), 0); in TestReadOnly()
2412 fbl::unique_fd fd(open(dat->path, O_RDONLY)); in reopen_thread()
2512 fd.reset(open(info->path, O_RDONLY)); in TestCreateFailure()
2584 fd.reset(open(info->path, O_RDONLY)); in TestExtendFailure()
2588 fd.reset(open(new_info->path, O_RDONLY)); in TestExtendFailure()
2626 fbl::unique_fd fd(open(info->path, O_CREAT | O_RDWR)); in TestFailedWrite()
2655 fd.reset(open(info->path, O_CREAT | O_RDWR)); in TestFailedWrite()
2792 fbl::unique_fd fd(open(argv[i + 1], O_RDWR)); in main()