summaryrefslogtreecommitdiffstats
path: root/src/guestfs-internal.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-01-19 21:47:23 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-01-19 21:47:23 +0000
commit78f1405de05ef1f2efebafd8245658d1707e59ef (patch)
tree062f322970f73e19bfdfc65b84d7887a781e92f2 /src/guestfs-internal.h
parent316ad8311a41869cf5f253225137dd03d1211ce7 (diff)
downloadlibguestfs-78f1405de05ef1f2efebafd8245658d1707e59ef.tar.gz
libguestfs-78f1405de05ef1f2efebafd8245658d1707e59ef.tar.xz
libguestfs-78f1405de05ef1f2efebafd8245658d1707e59ef.zip
Use /var/tmp for the cached appliance (for FHS compliance).
The FHS advises large files not to be stored in the root filesystem[1], and that /var/tmp is persistent across reboots[2] (whereas /tmp is possibly not[3]). Therefore we should store the large cached supermin appliance in /var/tmp instead of /tmp. /tmp is still used for all other temporary files and directories. In either case you can override this by setting $TMPDIR. [1] http://www.pathname.com/fhs/pub/fhs-2.3.html#THEROOTFILESYSTEM [2] http://www.pathname.com/fhs/pub/fhs-2.3.html#VARTMPTEMPORARYFILESPRESERVEDBETWEE [3] http://www.pathname.com/fhs/pub/fhs-2.3.html#TMPTEMPORARYFILES
Diffstat (limited to 'src/guestfs-internal.h')
-rw-r--r--src/guestfs-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index 08b459bc..194c8928 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -257,6 +257,7 @@ extern char *guestfs_safe_strndup (guestfs_h *g, const char *str, size_t n);
extern void *guestfs_safe_memdup (guestfs_h *g, void *ptr, size_t size);
extern char *guestfs_safe_asprintf (guestfs_h *g, const char *fs, ...)
__attribute__((format (printf,2,3)));
+extern const char *guestfs___persistent_tmpdir (void);
extern void guestfs___print_timestamped_argv (guestfs_h *g, const char *argv[]);
extern void guestfs___print_timestamped_message (guestfs_h *g, const char *fs, ...);
extern void guestfs___free_inspect_info (guestfs_h *g);