23 lines
440 B
C
23 lines
440 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <czmq.h>
|
|
#include <guestfs.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
if (argc < 2) {
|
|
printf("Usage: %s <disk-path> ...\n", argv[0]);
|
|
return EXIT_FAILURE;
|
|
}
|
|
|
|
const int worker_count = argc - 1;
|
|
|
|
// One worker per disk image.
|
|
zactor_t *workers[worker_count];
|
|
|
|
for (int i = 0; i < worker_count; i++) {
|
|
workers[i] = zactor_new(worker_task, NULL);
|
|
}
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|