Searched refs:ramdisk_path (Results 1 - 7 of 7) sorted by relevance

/fuchsia/zircon/system/ulib/fs-management/include/fs-management/
H A Dramdisk.h39 // Puts the ramdisk at |ramdisk_path| to sleep after |blk_count| blocks written.
43 int sleep_ramdisk(const char* ramdisk_path, uint64_t blk_count);
45 // Wake the ramdisk at |ramdisk_path| from a sleep state.
46 int wake_ramdisk(const char* ramdisk_path);
49 int get_ramdisk_blocks(const char* ramdisk_path, ramdisk_blk_counts_t* counts);
51 // Destroys a ramdisk, given the "ramdisk_path" returned from "create_ramdisk".
54 int destroy_ramdisk(const char* ramdisk_path);
/fuchsia/zircon/system/utest/fs-management/
H A Dfs-management.cpp64 char ramdisk_path[PATH_MAX]; local
67 ASSERT_EQ(create_ramdisk(block_size, 1 << 16, ramdisk_path), 0);
68 ASSERT_EQ(mkfs(ramdisk_path, DISK_FORMAT_MINFS, launch_stdio_sync, &default_mkfs_options),
72 int fd = open(ramdisk_path, O_RDWR);
79 ASSERT_EQ(destroy_ramdisk(ramdisk_path), 0);
97 char ramdisk_path[PATH_MAX]; local
101 ASSERT_EQ(create_ramdisk(512, 1 << 16, ramdisk_path), 0);
102 ASSERT_EQ(mkfs(ramdisk_path, DISK_FORMAT_MINFS, launch_stdio_sync, &default_mkfs_options),
104 int fd = open(ramdisk_path, O_RDWR);
112 ASSERT_EQ(destroy_ramdisk(ramdisk_path),
118 char ramdisk_path[PATH_MAX]; local
150 char ramdisk_path[PATH_MAX]; local
255 char ramdisk_path[PATH_MAX]; local
282 char ramdisk_path[PATH_MAX]; local
331 char ramdisk_path[PATH_MAX]; local
383 char ramdisk_path[PATH_MAX]; local
407 char ramdisk_path[PATH_MAX]; local
429 char ramdisk_path[PATH_MAX]; local
504 CreateTestFile(const char* ramdisk_path, const char* mount_path, const char* file_name) argument
528 char ramdisk_path[PATH_MAX]; local
572 char ramdisk_path[PATH_MAX]; local
610 char ramdisk_path[PATH_MAX]; local
[all...]
/fuchsia/zircon/system/utest/biotime/
H A Dbiotime-test.cpp18 char ramdisk_path[PATH_MAX]; local
19 ASSERT_EQ(create_ramdisk(1024, 100, ramdisk_path), 0);
21 EXPECT_EQ(destroy_ramdisk(ramdisk_path), 0);
25 args.push_back(ramdisk_path);
/fuchsia/zircon/system/ulib/fs-management/
H A Dramdisk.cpp178 int sleep_ramdisk(const char* ramdisk_path, uint64_t block_count) { argument
179 fbl::unique_fd fd(open(ramdisk_path, O_RDWR));
187 fprintf(stderr, "Could not set ramdisk interrupt on path %s: %ld\n", ramdisk_path, r);
193 int wake_ramdisk(const char* ramdisk_path) { argument
194 fbl::unique_fd fd(open(ramdisk_path, O_RDWR));
209 int get_ramdisk_blocks(const char* ramdisk_path, ramdisk_blk_counts_t* counts) { argument
210 fbl::unique_fd fd(open(ramdisk_path, O_RDWR));
222 int destroy_ramdisk(const char* ramdisk_path) { argument
223 fbl::unique_fd ramdisk(open(ramdisk_path, O_RDWR));
/fuchsia/zircon/system/utest/fvm/
H A Dfvm.cpp124 int FVMRebind(int fvm_fd, char* ramdisk_path, const partition_entry_t* entries, argument
126 int ramdisk_fd = open(ramdisk_path, O_RDWR);
141 if (wait_for_device(ramdisk_path, ZX_SEC(3)) != ZX_OK) {
146 ramdisk_fd = open(ramdisk_path, O_RDWR);
160 snprintf(path, sizeof(path), "%s/fvm", ramdisk_path);
167 snprintf(path, sizeof(path), "%s/fvm/%s-p-%zu/block", ramdisk_path, entries[i].name,
175 snprintf(path, sizeof(path), "%s/fvm", ramdisk_path);
204 int EndFVMTest(const char* ramdisk_path) { argument
206 return destroy_ramdisk(ramdisk_path);
208 return fvm_destroy(ramdisk_path);
499 char ramdisk_path[PATH_MAX]; local
520 char ramdisk_path[PATH_MAX]; local
549 char ramdisk_path[PATH_MAX]; local
560 char ramdisk_path[PATH_MAX]; local
601 char ramdisk_path[PATH_MAX]; local
646 char ramdisk_path[PATH_MAX]; local
715 char ramdisk_path[PATH_MAX]; local
771 char ramdisk_path[PATH_MAX]; local
834 char ramdisk_path[PATH_MAX]; local
930 char ramdisk_path[PATH_MAX]; local
995 char ramdisk_path[PATH_MAX]; local
1096 char ramdisk_path[PATH_MAX]; local
1233 char ramdisk_path[PATH_MAX]; local
1301 char ramdisk_path[PATH_MAX]; local
1400 char ramdisk_path[PATH_MAX]; local
1466 char ramdisk_path[PATH_MAX]; local
1546 char ramdisk_path[PATH_MAX]; local
1696 char ramdisk_path[PATH_MAX]; local
1781 char ramdisk_path[PATH_MAX]; local
1989 char ramdisk_path[PATH_MAX]; local
2047 char ramdisk_path[PATH_MAX]; local
2197 char ramdisk_path[PATH_MAX]; local
2258 char ramdisk_path[PATH_MAX]; local
2343 char ramdisk_path[PATH_MAX]; local
2422 char ramdisk_path[PATH_MAX]; local
2493 char ramdisk_path[PATH_MAX]; local
2772 char ramdisk_path[PATH_MAX]; local
[all...]
/fuchsia/zircon/system/uapp/iotime/
H A Diotime.c87 char ramdisk_path[PATH_MAX]; local
88 if (create_ramdisk(512, blocks / 512, ramdisk_path)) {
92 return open(ramdisk_path, O_RDWR);
/fuchsia/zircon/system/utest/ramdisk/
H A Dramdisk.cpp43 char ramdisk_path[PATH_MAX]; local
44 int rc = guid ? create_ramdisk_with_guid(blk_size, blk_count, guid, guid_len, ramdisk_path)
45 : create_ramdisk(blk_size, blk_count, ramdisk_path);
50 int fd = open(ramdisk_path, O_RDWR);
179 char ramdisk_path[PATH_MAX]; local
180 ASSERT_EQ(create_ramdisk_from_vmo(vmo.release(), ramdisk_path), 0);
182 fbl::unique_fd fd(open(ramdisk_path, O_RDWR));
210 char ramdisk_path[PATH_MAX]; local
211 if (create_ramdisk(PAGE_SIZE / 2, 512, ramdisk_path)) {
215 int fd = open(ramdisk_path, O_RDW
296 char ramdisk_path[PATH_MAX]; local
[all...]

Completed in 98 milliseconds