2022-07-01 18:30:53 +03:00
|
|
|
#include <stddef.h>
|
|
|
|
#include <lib/part.h>
|
2022-07-01 18:33:59 +03:00
|
|
|
#include <lib/print.h>
|
2023-07-09 04:37:55 +03:00
|
|
|
#include <lib/readline.h>
|
2022-07-01 18:30:53 +03:00
|
|
|
|
|
|
|
void list_volumes(void) {
|
|
|
|
for (size_t i = 0; i < volume_index_i; i++) {
|
|
|
|
struct volume *v = volume_index[i];
|
|
|
|
print("index: %u\n", v->index);
|
|
|
|
print("is_optical: %u\n", v->is_optical);
|
|
|
|
print("partition: %u\n", v->partition);
|
2022-07-07 12:22:43 +03:00
|
|
|
print("fslabel: %s\n", v->fslabel);
|
2022-07-01 18:30:53 +03:00
|
|
|
print("sector_size: %u\n", v->sector_size);
|
|
|
|
print("max_partition: %d\n", v->max_partition);
|
2022-07-06 04:17:11 +03:00
|
|
|
print("first_sect: %U\n", v->first_sect);
|
|
|
|
print("sect_count: %U\n", v->sect_count);
|
2023-07-09 04:37:55 +03:00
|
|
|
if (i < volume_index_i - 1) {
|
|
|
|
print("--- Press a key to continue ---\n");
|
|
|
|
getchar();
|
|
|
|
}
|
2022-07-01 18:30:53 +03:00
|
|
|
}
|
|
|
|
}
|