block: use /var/tmp instead of /tmp for -snapshot
authorAmit Shah <amit.shah@redhat.com>
Wed, 26 Feb 2014 09:42:37 +0000 (15:12 +0530)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 28 Feb 2014 17:59:07 +0000 (18:59 +0100)
commit69bef7931e8880c709556f8444938d8bb9a16118
tree5e623eb8c5c12ee554116427417e468dcc6b1729
parent4b350f1de1685d7763b3b856eccdedbd691932b4
block: use /var/tmp instead of /tmp for -snapshot

If TMPDIR is not specified, the default was to use /tmp for the working
copy of the block devices.  Update this to /var/tmp instead, so systems
using tmp-on-tmpfs don't end up inadvertently using RAM for the block
device.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c