Lines Matching refs:test_disk_path
30 char test_disk_path[PATH_MAX]; variable
76 if (create_ramdisk(disk.block_size, disk.block_count, test_disk_path) != ZX_OK) { in setup_fs_test()
83 ramdisk_path = test_disk_path; in setup_fs_test()
87 int fd = open(test_disk_path, O_RDWR); in setup_fs_test()
100 snprintf(fvm_disk_path, sizeof(fvm_disk_path), "%s/fvm", test_disk_path); in setup_fs_test()
102 fprintf(stderr, "[FAILED]: FVM driver never appeared at %s\n", test_disk_path); in setup_fs_test()
128 if ((fd = open_partition(kTestUniqueGUID, kTestPartGUID, 0, test_disk_path)) < 0) { in setup_fs_test()
140 if (test_info->mkfs(test_disk_path)) { in setup_fs_test()
141 fprintf(stderr, "[FAILED]: Could not format disk (%s) for test\n", test_disk_path); in setup_fs_test()
145 if (test_info->mount(test_disk_path, kMountPath)) { in setup_fs_test()
157 if (test_info->fsck(test_disk_path)) { in teardown_fs_test()
172 strcpy(test_disk_path, fvm_disk_path); in teardown_fs_test()
176 if (destroy_ramdisk(test_disk_path)) { in teardown_fs_test()