diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-08-15 15:40:29 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-08-30 22:05:20 +0100 |
commit | 9a176c0276c17bb172edb59551fc408232dd19fd (patch) | |
tree | b5ba9750ffe4c31903c6dae56a32e270ae517c50 /src | |
parent | bbf7aa48b158efef7956cb9ca99017967641c016 (diff) | |
download | libguestfs-9a176c0276c17bb172edb59551fc408232dd19fd.tar.gz libguestfs-9a176c0276c17bb172edb59551fc408232dd19fd.tar.xz libguestfs-9a176c0276c17bb172edb59551fc408232dd19fd.zip |
inspect: Clarify comment about uniqueness of cache.
(cherry picked from commit 8fd6f1bebef11d1c4eb77ac2b7d95fd5a7e82be9)
Diffstat (limited to 'src')
-rw-r--r-- | src/inspect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inspect.c b/src/inspect.c index 78a9aec1..0c75b32c 100644 --- a/src/inspect.c +++ b/src/inspect.c @@ -740,7 +740,9 @@ guestfs___download_to_tmp (guestfs_h *g, struct inspect_fs *fs, char devfd[32]; int64_t size; - /* Make the basename unique by prefixing it with the fs number. */ + /* Make the basename unique by prefixing it with the fs number. + * This also ensures there is one cache per filesystem. + */ if (asprintf (&r, "%s/%td-%s", g->tmpdir, fs - g->fses, basename) == -1) { perrorf (g, "asprintf"); return NULL; |