Displaying 1 result from an estimated 1 matches for "37869e8".
2009 Aug 12
2
[PATCH] Don't use cache=off if device is on tmpfs
...=...>.
+C<cache=off> is omitted in cases where it is not supported by
+the underlying filesystem.
Note that this call checks for the existence of C<filename>. This
stops you from specifying other types of drive which are supported
diff --git a/src/guestfs.c b/src/guestfs.c
index 37869e8..7f309c9 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -793,20 +793,38 @@ guestfs_add_drive (guestfs_h *g, const char *filename)
{
size_t len = strlen (filename) + 64;
char buf[len];
+ int fd;
if (strchr (filename, ',') != NULL) {
error (g, _("filename cannot cont...