From 50195d6ec4e893f894ef1bbf7af6eeda56f96600 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Thu, 8 Apr 2010 16:07:32 +0100 Subject: New API calls to upload/download txz files (RHBZ#580556). --- src/MAX_PROC_NR | 2 +- src/generator.ml | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/MAX_PROC_NR b/src/MAX_PROC_NR index 9be0dc9a..dcb6b5ba 100644 --- a/src/MAX_PROC_NR +++ b/src/MAX_PROC_NR @@ -1 +1 @@ -228 +230 diff --git a/src/generator.ml b/src/generator.ml index 416a66fd..9d190977 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -2025,7 +2025,8 @@ The checksum is returned as a printable string."); This command uploads and unpacks local file C (an I tar file) into C. -To upload a compressed tarball, use C."); +To upload a compressed tarball, use C +or C."); ("tar_out", (RErr, [String "directory"; FileOut "tarfile"]), 70, [], [], @@ -2034,7 +2035,8 @@ To upload a compressed tarball, use C."); This command packs the contents of C and downloads it to local file C. -To download a compressed tarball, use C."); +To download a compressed tarball, use C +or C."); ("tgz_in", (RErr, [FileIn "tarball"; String "directory"]), 71, [], [InitBasicFS, Always, TestOutput ( @@ -4355,6 +4357,22 @@ This command writes zeroes over the entire C. Compare with C which just zeroes the first few blocks of a device."); + ("txz_in", (RErr, [FileIn "tarball"; String "directory"]), 229, [], + [InitBasicFS, Always, TestOutput ( + [["txz_in"; "../images/helloworld.tar.xz"; "/"]; + ["cat"; "/hello"]], "hello\n")], + "unpack compressed tarball to directory", + "\ +This command uploads and unpacks local file C (an +I tar file) into C."); + + ("txz_out", (RErr, [Pathname "directory"; FileOut "tarball"]), 230, [], + [], + "pack directory into compressed tarball", + "\ +This command packs the contents of C and downloads +it to local file C (as an xz compressed tar archive)."); + ] let all_functions = non_daemon_functions @ daemon_functions -- cgit