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-15 17:49:48 +0100 |
| commit | 8fd6f1bebef11d1c4eb77ac2b7d95fd5a7e82be9 (patch) | |
| tree | d1bf9c805016946e4d6087b3a97d9975183955d2 /src | |
| parent | ba61236d0d6756f45d8707e96cda00c016cadebe (diff) | |
| download | libguestfs-8fd6f1bebef11d1c4eb77ac2b7d95fd5a7e82be9.tar.gz libguestfs-8fd6f1bebef11d1c4eb77ac2b7d95fd5a7e82be9.tar.xz libguestfs-8fd6f1bebef11d1c4eb77ac2b7d95fd5a7e82be9.zip | |
inspect: Clarify comment about uniqueness of cache.
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 e43f7e77..44826c3d 100644 --- a/src/inspect.c +++ b/src/inspect.c @@ -744,7 +744,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; |
