summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inspect.c4
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;