From 9409a05fbb6da8a3860c9a80c7eecbc875e5f831 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Dec 20 2013 22:18:48 +0000 Subject: Backport cachemode parameter from upstream (RHBZ#1044762). - Use git to manage patches, add copy-patches.sh script. --- diff --git a/0001-New-API-add-drive-scratch.patch b/0001-New-API-add-drive-scratch.patch new file mode 100644 index 0000000..cfd4249 --- /dev/null +++ b/0001-New-API-add-drive-scratch.patch @@ -0,0 +1,148 @@ +From dc6db5144a0e4f4b8238ef9b77949ac548991a52 Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +Date: Fri, 19 Jul 2013 14:09:56 +0100 +Subject: [PATCH] New API: add-drive-scratch. + +This adds a temporary scratch drive to the handle. + +(cherry picked from commit 1b11a83d5248511abbf86775601eb6e25a36c1ee) +(cherry picked from commit eaffd8105fcd164616aad47cea2b2bf56686acfa) +--- + generator/actions.ml | 15 +++++++++++++++ + gobject/Makefile.inc | 2 ++ + po/POTFILES | 1 + + src/drives.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ + 4 files changed, 71 insertions(+) + +diff --git a/generator/actions.ml b/generator/actions.ml +index 1d44a47..4e6b687 100644 +--- a/generator/actions.ml ++++ b/generator/actions.ml +@@ -2954,6 +2954,21 @@ it is set to the empty string (but never C)." }; + longdesc = "\ + Get the program name. See C." }; + ++ { defaults with ++ name = "add_drive_scratch"; ++ style = RErr, [Int64 "size"], [OString "name"; OString "label"]; ++ blocking = false; ++ fish_alias = ["scratch"]; ++ shortdesc = "add a temporary scratch drive"; ++ longdesc = "\ ++This command adds a temporary scratch drive to the handle. The ++C parameter is the virtual size (in bytes). The scratch ++drive is blank initially (all reads return zeroes until you start ++writing to it). The drive is deleted when the handle is closed. ++ ++The optional arguments C and C