summaryrefslogtreecommitdiffstats
path: root/fish/fish.h
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-04-22 10:42:58 +0100
committerRichard Jones <rjones@redhat.com>2010-04-22 18:07:11 +0100
commit4a9b979a3199dfef64a342f05d666da540203a7c (patch)
tree1320fe9abd9f4dd09816ac337b40285e05876d54 /fish/fish.h
parent89486c50eaeb8b1cc5a6ff388cb47e859f8565d1 (diff)
downloadlibguestfs-4a9b979a3199dfef64a342f05d666da540203a7c.tar.gz
libguestfs-4a9b979a3199dfef64a342f05d666da540203a7c.tar.xz
libguestfs-4a9b979a3199dfef64a342f05d666da540203a7c.zip
fish: Add -N option for making prepared disk images.
Previously you might have typed: $ guestfish ><fs> alloc test1.img 100M ><fs> run ><fs> part-disk /dev/sda mbr ><fs> mkfs ext4 /dev/sda1 now you can do the same with: $ guestfish -N fs:ext4 Some tests have also been updated to use this new functionality.
Diffstat (limited to 'fish/fish.h')
-rw-r--r--fish/fish.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/fish/fish.h b/fish/fish.h
index 05135fba..13efa9ad 100644
--- a/fish/fish.h
+++ b/fish/fish.h
@@ -85,6 +85,8 @@ extern char *complete_dest_paths_generator (const char *text, int state);
/* in alloc.c */
extern int do_alloc (const char *cmd, int argc, char *argv[]);
extern int do_sparse (const char *cmd, int argc, char *argv[]);
+extern int alloc_disk (const char *filename, const char *size,
+ int add, int sparse);
/* in echo.c */
extern int do_echo (const char *cmd, int argc, char *argv[]);
@@ -101,6 +103,14 @@ extern int do_glob (const char *cmd, int argc, char *argv[]);
/* in more.c */
extern int do_more (const char *cmd, int argc, char *argv[]);
+/* in prep.c */
+typedef struct prep_data prep_data;
+extern void list_prepared_drives (void);
+extern prep_data *create_prepared_file (const char *type_string,
+ const char *filename);
+extern void prepare_drive (const char *filename, prep_data *data,
+ const char *device);
+
/* in rc.c (remote control) */
extern void rc_listen (void) __attribute__((noreturn));
extern int rc_remote (int pid, const char *cmd, int argc, char *argv[],