diff options
author | Richard Jones <rjones@redhat.com> | 2010-05-08 09:09:24 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-05-08 09:09:24 +0100 |
commit | 846238a031f690078235b98db573060d2b88a5c1 (patch) | |
tree | abe0792206db1a01f33bebdadfec89aa7f3ed59f /fish | |
parent | 8e007581c91a5193e6aec0f6f9aeb379a935c9d4 (diff) | |
download | libguestfs-846238a031f690078235b98db573060d2b88a5c1.tar.gz libguestfs-846238a031f690078235b98db573060d2b88a5c1.tar.xz libguestfs-846238a031f690078235b98db573060d2b88a5c1.zip |
fish -N option unconditionally overwrites test*.img files.
This is more convenient and makes it consistent with the
'alloc' and 'sparse' commands.
Diffstat (limited to 'fish')
-rw-r--r-- | fish/guestfish.pod | 2 | ||||
-rw-r--r-- | fish/prep.c | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/fish/guestfish.pod b/fish/guestfish.pod index cc974d71..7260caf0 100644 --- a/fish/guestfish.pod +++ b/fish/guestfish.pod @@ -551,7 +551,7 @@ multiple times (and can be mixed with I<-a>). The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for the second and so on. Existing files in the current directory are -not overwritten, so you may need to do C<rm -f test1.img>. +I<overwritten>. The type briefly describes how the disk should be sized, partitioned, how filesystem(s) should be created, and how content should be added. diff --git a/fish/prep.c b/fish/prep.c index ab5b4bc4..6fd1d6b1 100644 --- a/fish/prep.c +++ b/fish/prep.c @@ -156,12 +156,6 @@ struct prep_data { prep_data * create_prepared_file (const char *type_string, const char *filename) { - if (access (filename, F_OK) == 0) { - fprintf (stderr, _("guestfish: file '%s' exists and the '-N' option will not overwrite it\n"), - filename); - exit (EXIT_FAILURE); - } - prep_data *data = parse_type_string (type_string); if (data->prep->prelaunch) data->prep->prelaunch (filename, data); |