Remove more temporary ($builddir/tmp) files when doing 'make clean'.

(cherry picked from commit 7e134f865f4e4e35f27d0c676645fffc16d85e80)
./run: Add a better comment describing --test mode.

This is just code motion, there is no functional change.

(cherry picked from commit 745e507c2fd06f9349212efe86f8143a1f0c5a0e)
./run: Timeout tests after 1 hour.

No single test should run longer than 1 hour even on the slowest of
hardware.  We are having a problem in Koji where a test hangs and then
we end up losing the output completely, so a timeout + print the log
to that point is much better.

(cherry picked from commit caab9f1e6f7ac0d8d5209c31854d640b807519ce)
launch: appliance: Fix a double-free if kernel linking fails (RHBZ#983218).

This also simplifies the code which takes the building_lock around
guestfs___build_appliance.

Thanks Attila Fazekas for the detailed bug report.

(cherry picked from commit ae78381287771a781f939f26a414fc8cfdc05fd6)
./run: Increase default timeout from 1h -> 4h.

1 hour was not long enough for the C API tests when run in Koji.

This update commit caab9f1e6f7ac0d8d5209c31854d640b807519ce.

(cherry picked from commit a7b9d61cde63020686afe769ca8265a01fce208f)
library: Fix a few direct calls to perror(3).

Mainly in the FUSE code, left over from when this code lived in the
standalone guestmount program.

(cherry picked from commit ea817cdc603477ab691ce49b21ecf9f0cca6f944)
acls: Improve documentation for acl_set_file (RHBZ#985269).

Thanks: Bo Fan.
(cherry picked from commit 758a2262f5f4033de3400bbe00fac2f85310b4ff)
cmd: Allow callers to override file-closing behaviour after fork.

This allows us to send file descriptors directly to child processes,
eg. using /dev/fd/<N>.

(cherry picked from commit aecb5f4b33107935191099dbd5559113f59ee51c)
info: disk-format et al: Fix error message when no file exists (RHBZ#981663).

$ guestfish disk-format /etc/nosuchfile

Instead of this obscure double error message:

  libguestfs: error: qemu-img info: JSON parse error: parse error: premature EOF
                       (right here) ------^
  libguestfs: error: qemu-img info: /etc/nosuchfile: qemu-img info exited with error status 1.
  To see full error messages you may need to enable debugging.
  See http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs

You will now see this simpler error:

  libguestfs: error: disk info: /etc/nosuchfile: No such file or directory

Thanks: Bo Fan.
(cherry picked from commit d50cb7bbb4cc18f69ea1425e9f5cee9685825f95)
info: Fix double-call to error function when qemu-img info command fails (RHBZ#981663).

Previously if the 'qemu-img info --output json' command failed, then
the stdout callback would be called first with a zero-length buffer.
Since a zero-length buffer cannot be valid JSON (in this context)
don't produce a separate error message.

However do catch the case when qemu-img info might produce no output
and no error (if that were to happen -- it does not happen at the
moment).

(cherry picked from commit 28e08776824dd3152638e647259c2f4701a0a577)
mkfs: Use -b size=<size> for xfs (RHBZ#981715).

(cherry picked from commit 3201e7556424bd305ec39ac49dd84c0471f64544)
FAQ: Add section about different packaging strategies for libguestfs.

(cherry picked from commit 7867c7cd8e4f3dd6c764a309136bce3a0f2630f9)
tests/data: Add some blank disks in various sizes and formats for testing.

(cherry picked from commit 48ed7abc21430f0138a37b593e4341ef04db4f95)
tests: Better testing of guestfs_disk_* functions using blank disks from tests/data directory.

(cherry picked from commit 89865011e4ea725c9c69b0d473118ffcd5039ac3)
tests/c-api: Remove 'GETKEY:' hack since it's no longer used anywhere.

(cherry picked from commit 8a3ecfc04e0561dac74c94ecbafaac8248e302c7)
tests/lvm: Remove some commented out debugging code.

(cherry picked from commit 0d97bcf8ae498b2ad92e523f2a6bd973bde3a9c0)
tools: 'test.img' is no longer used.

This probably used to be a temporary file used for testing.

(cherry picked from commit 5724efa69f0192b71350d9c025e815218f112572)
daemon: Implement set-label for XFS and fix it for btrfs (RHBZ#986875).

Implement 'set-label' for XFS filesystems.

Fix the call for btrfs.  Previous
commit d5817537fa6c51a7f851ecc5e4e63e60609e0c03 added some bogus
documentation implying this call would work for btrfs, but it did
not.

Cherry picked from commit 091d22f49e7fcb53fb3bb23e2ba94ca12eb88eab.
Tests removed for backport.
fish: Clarify documentation.

It's not "the guest" which is launched, but the libguestfs appliance.

(cherry picked from commit a8b03201f0c240d4ef433e349ef7645b90874bb5)
fish: Split up long line in --help output.

(cherry picked from commit 3c94f0245677a61f271163735444526bd37d29fb)