Lines Matching refs:block_device_path
70 zx_status_t MakeRamdisk(const FixtureOptions& options, fbl::String* block_device_path) { in MakeRamdisk() argument
82 *block_device_path = buffer; in MakeRamdisk()
88 zx_status_t RemoveRamdisk(const FixtureOptions& options, const fbl::String& block_device_path) { in RemoveRamdisk() argument
90 if (options.use_ramdisk && !block_device_path.empty()) { in RemoveRamdisk()
91 zx_status_t result = destroy_ramdisk(block_device_path.c_str()); in RemoveRamdisk()
94 block_device_path.c_str()); in RemoveRamdisk()
100 zx_status_t FormatDevice(const FixtureOptions& options, const fbl::String& block_device_path) { in FormatDevice() argument
103 zx_status_t result = mkfs(block_device_path.c_str(), options.fs_type, in FormatDevice()
107 block_device_path.c_str()); in FormatDevice()
113 result = fsck(block_device_path.c_str(), options.fs_type, &fsck_options, launch_stdio_sync); in FormatDevice()
116 block_device_path.c_str()); in FormatDevice()
123 zx_status_t MakeFvm(const fbl::String& block_device_path, uint64_t fvm_slice_size, in MakeFvm() argument
126 fbl::unique_fd fd(open(block_device_path.c_str(), O_RDWR)); in MakeFvm()
129 strerror(errno), block_device_path.c_str()); in MakeFvm()
135 block_device_path.c_str()); in MakeFvm()
139 fbl::String fvm_device_path = fbl::StringPrintf("%s/fvm", block_device_path.c_str()); in MakeFvm()
144 block_device_path.c_str()); in MakeFvm()
194 if (!block_device_path.empty()) { in IsValid()
210 } else if (block_device_path.empty()) { in IsValid()
291 if (!options_.block_device_path.empty()) { in SetUpTestCase()
292 block_device_path_ = options_.block_device_path; in SetUpTestCase()