From 9a176c0276c17bb172edb59551fc408232dd19fd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 15 Aug 2012 15:40:29 +0100 Subject: inspect: Clarify comment about uniqueness of cache. (cherry picked from commit 8fd6f1bebef11d1c4eb77ac2b7d95fd5a7e82be9) --- src/inspect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit