}
free (lines);
+SV *
+df (g)
+ guestfs_h *g;
+PREINIT:
+ char *output;
+ CODE:
+ output = guestfs_df (g);
+ if (output == NULL)
+ croak ("df: %s", guestfs_last_error (g));
+ RETVAL = newSVpv (output, 0);
+ free (output);
+ OUTPUT:
+ RETVAL
+
+SV *
+df_h (g)
+ guestfs_h *g;
+PREINIT:
+ char *output;
+ CODE:
+ output = guestfs_df_h (g);
+ if (output == NULL)
+ croak ("df_h: %s", guestfs_last_error (g));
+ RETVAL = newSVpv (output, 0);
+ free (output);
+ OUTPUT:
+ RETVAL
+
+SV *
+du (g, path)
+ guestfs_h *g;
+ char *path;
+PREINIT:
+ int64_t sizekb;
+ CODE:
+ sizekb = guestfs_du (g, path);
+ if (sizekb == -1)
+ croak ("du: %s", guestfs_last_error (g));
+ RETVAL = my_newSVll (sizekb);
+ OUTPUT:
+ RETVAL
+
+void
+initrd_list (g, path)
+ guestfs_h *g;
+ char *path;
+PREINIT:
+ char **filenames;
+ int i, n;
+ PPCODE:
+ filenames = guestfs_initrd_list (g, path);
+ if (filenames == NULL)
+ croak ("initrd_list: %s", guestfs_last_error (g));
+ for (n = 0; filenames[n] != NULL; ++n) /**/;
+ EXTEND (SP, n);
+ for (i = 0; i < n; ++i) {
+ PUSHs (sv_2mortal (newSVpv (filenames[i], 0)));
+ free (filenames[i]);
+ }
+ free (filenames);
+
+void
+mount_loop (g, file, mountpoint)
+ guestfs_h *g;
+ char *file;
+ char *mountpoint;
+PREINIT:
+ int r;
+ PPCODE:
+ r = guestfs_mount_loop (g, file, mountpoint);
+ if (r == -1)
+ croak ("mount_loop: %s", guestfs_last_error (g));
+