git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generator: Check parameters are not NULL (RHBZ#501893).
[libguestfs.git]
/
tools
/
virt-edit
diff --git
a/tools/virt-edit
b/tools/virt-edit
index
46e86a1
..
e00e4cf
100755
(executable)
--- a/
tools/virt-edit
+++ b/
tools/virt-edit
@@
-40,14
+40,17
@@
virt-edit - Edit a file in a virtual machine
virt-edit [--options] disk.img [disk.img ...] file
virt-edit [--options] disk.img [disk.img ...] file
+=head1 WARNING
+
+You must I<not> use C<virt-edit> on live virtual machines. If you do
+this, you risk disk corruption in the VM. C<virt-edit> tries to stop
+you from doing this, but doesn't catch all cases.
+
=head1 DESCRIPTION
C<virt-edit> is a command line tool to edit C<file> where C<file>
exists in the named virtual machine (or disk image).
=head1 DESCRIPTION
C<virt-edit> is a command line tool to edit C<file> where C<file>
exists in the named virtual machine (or disk image).
-B<Note> you must I<not> use virt-edit on live virtual machines. If
-you do this, you risk disk corruption in the VM.
-
If you want to just view a file, use L<virt-cat(1)>. For more complex
cases you should look at the L<guestfish(1)> tool.
If you want to just view a file, use L<virt-cat(1)>. For more complex
cases you should look at the L<guestfish(1)> tool.
@@
-130,7
+133,6
@@
my %fses =
my $oses = inspect_operating_systems ($g, \%fses);
my @roots = keys %$oses;
my $oses = inspect_operating_systems ($g, \%fses);
my @roots = keys %$oses;
-die __"no root device found in this operating system image" if @roots == 0;
die __"multiboot operating systems are not supported by virt-edit" if @roots > 1;
my $root_dev = $roots[0];
die __"multiboot operating systems are not supported by virt-edit" if @roots > 1;
my $root_dev = $roots[0];
@@
-189,7
+191,7
@@
L<http://libguestfs.org/>.
=head1 AUTHOR
=head1 AUTHOR
-Richard W.M. Jones L<http://
et
.redhat.com/~rjones/>
+Richard W.M. Jones L<http://
people
.redhat.com/~rjones/>
=head1 COPYRIGHT
=head1 COPYRIGHT