diff options
author | Richard Jones <rjones@redhat.com> | 2009-11-04 17:42:03 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-11-04 17:42:03 +0000 |
commit | 5ce72e039ca332ba19bb9122b7c93d257e745bb5 (patch) | |
tree | ac68578590f834bda390b1fded7f6255321e2acb /fish/fish.h | |
parent | fc2cce06ec537f3e6ddf153ffae389ab483e3809 (diff) | |
download | libguestfs-5ce72e039ca332ba19bb9122b7c93d257e745bb5.tar.gz libguestfs-5ce72e039ca332ba19bb9122b7c93d257e745bb5.tar.xz libguestfs-5ce72e039ca332ba19bb9122b7c93d257e745bb5.zip |
fish: New command 'sparse', like 'alloc' but to generate sparse files.
With sparse you can make sparse files, which is fun because you
can experiment with really large devices:
><fs> sparse /tmp/test.img 100G
><fs> run
><fs> sfdiskM /dev/vda ,
><fs> mkfs ext2 /dev/vda1 # very long pause here ...
><fs> mount /dev/vda1 /
To see the real (ie. allocated) size of the sparse file, use the du
command, eg:
><fs> !du -h /tmp/test.img
1.6G -rw-rw-r-- 1 rjones rjones 100G 2009-11-04 17:40 /tmp/test.img
Diffstat (limited to 'fish/fish.h')
-rw-r--r-- | fish/fish.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fish/fish.h b/fish/fish.h index 8c5dba16..cdb3d634 100644 --- a/fish/fish.h +++ b/fish/fish.h @@ -62,6 +62,7 @@ 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[]); /* in echo.c */ extern int do_echo (const char *cmd, int argc, char *argv[]); |