]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Improve "kvm setup" info and error messages
authorPekka Enberg <penberg@kernel.org>
Tue, 25 Oct 2011 11:59:55 +0000 (14:59 +0300)
committerPekka Enberg <penberg@kernel.org>
Tue, 25 Oct 2011 13:22:11 +0000 (16:22 +0300)
commit63416e7492474443bb84d5245dc5cc6a49a73b3c
tree77f41c5609f7921240acc0d3897ae7b08db23961
parent7f7560641ef59add1c316fc8130829650edd98ad
kvm tools: Improve "kvm setup" info and error messages

This patch improves the output of 'kvm setup' as follows:

  [penberg@tux kvm]$ ./kvm setup

  kvm setup creates a new rootfs under /home/penberg//.kvm-tools/.
  This can be used later by the '-d' parameter of 'kvm run'.

   usage: kvm setup [name]

  [penberg@tux kvm]$ ./kvm setup test-box
  A new rootfs 'test-box' has been created in '/home/penberg//.kvm-tools/test-box'.

  You can now start it by running the following command:

    kvm run -d test-box

  [penberg@tux kvm]$ ./kvm setup test-box
  Unable to create rootfs in /home/penberg//.kvm-tools/test-box: File exists

Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
Acked-by: Sasha Levin <levinsasha928@gmail.com>
Cc: Asias He <asias.hejun@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/builtin-setup.c