1 /* A simple "df" command for guests. */
9 main (int argc, char *argv[])
13 if (argc != 2 || access (argv[1], F_OK) != 0) {
14 fprintf (stderr, "Usage: df disk-image\n");
18 g = guestfs_create ();
20 perror ("guestfs_create");
24 guestfs_set_exit_on_error (g, 1);
25 guestfs_set_verbose (g, 1);
27 guestfs_add_drive (g, argv[1]);
29 guestfs_wait_ready (g);