Displaying 20 results from an estimated 31 matches for "guestfs_upload".
2012 Feb 10
3
[PATCH 0/3] Fix guestfish edit command.
This is a further, more comprehensive fix for
https://bugzilla.redhat.com/show_bug.cgi?id=788641
The guestfish 'edit' command (aka 'emacs', 'vi') suffered from the
same problems as virt-edit and more. It could have failed and left a
partially overwritten file, and it didn't preserve permissions etc
from the original file.
These three patches fix all this. The first
2010 Sep 20
2
[PATCH 0/2] Implement upload-offset, download-offset APIs, and hexedit guestfish command
This two-part patch implements the 'hexedit' command described here:
http://rwmj.wordpress.com/2010/09/18/new-feature-guestfish-hexedit/#content
The first part implements two new APIs for partial writing and reading
of files. These are modelled after guestfs_upload and
guestfs_download but allow you to specify an offset and (for download
only) a size:
int guestfs_download_offset (guestfs_h *g,
const char *remotefilename, const char *filename,
int64_t offset, int64_t size);
int guestfs_upload_offset (guestfs_h *g,
const char *filename, const char *remot...
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of
local disk.
Rich.
2012 Jan 16
1
[PATCH] generator: Add an explicit Cancellable flag
...rogress; Cancellable],
(let md5 = Digest.to_hex (Digest.file "COPYING.LIB") in
[InitScratchFS, Always, TestOutput (
[["upload_offset"; "../../COPYING.LIB"; "/upload_offset"; "0"];
@@ -5957,7 +5971,8 @@ error occurs.
See also C<guestfs_upload>, C<guestfs_pwrite>.");
- ("download_offset", (RErr, [Dev_or_Path "remotefilename"; FileOut "filename"; Int64 "offset"; Int64 "size"], []), 274, [Progress],
+ ("download_offset", (RErr, [Dev_or_Path "remotefilename&q...
2012 Feb 08
2
Fix virt-edit so it preserves permissions (RHBZ#788641)
The first patch preserves file mode, UID, GID and SELinux context
across edited files.
The second patch adds a useful new command in guestfish ('llz') which
shows SELinux context (like 'ls -laZ') that was useful when debugging
this.
Rich.
2015 May 06
0
Re: libguestfs init problem
...te (g, "/hello", message, strlen (message)) == -1)
> exit (EXIT_FAILURE);
> if (guestfs_mkdir (g, "/foo") == -1)
> exit (EXIT_FAILURE);
>
> /* This one uploads the local file /etc/resolv.conf into
> * the disk image.
> */
> if (guestfs_upload (g, "/etc/resolv.conf", "/foo/resolv.conf") == -1)
> exit (EXIT_FAILURE);
>
> /* Because we wrote to the disk and we want to detect write
> * errors, call guestfs_shutdown. You don't need to do this:
> * guestfs_close will do it implicitly.
&...
2012 Mar 08
2
mounting using guestfish
[Please remember to post all questions on the mailing list]
On Thu, Mar 08, 2012 at 09:41:19PM +0700, Tho Huynh wrote:
> Can I mount the guest's file system into a folder/path (mountpoint)
> in the host machine using guestfish?
No, but you don't need to.
> And accessing that folder equal to accessing the guest's file
> system. What I'm trying to do is to copy a file
2014 Aug 28
14
[PATCH 00/13] code refactorings for tools
Hi,
this series does a couple of code reorganizations/refactoring in code
used by tools: the windows path handling code, and the two types of
file editing (using editor, and using perl expression).
There's still a code duplication between the two variants of file
editing, but it is just within a single source, and can be easily
solved now (planning as next step).
Pino Toscano (13):
edit:
2015 May 05
3
libguestfs init problem
Hi ,all :
thanks for helping me ! I am using libguestfs-1.28.1 on ubuntu
12.04 to manage vm disk created by KVM. I downloaded
libguestfs-1.28.1.tar.gz ,and then executed
(1) ./autogen.sh (2) ./configure (3) make (4) make check .there is
the error.
/usr/Libvmi/libguestfs-1.28.1/run --test guest-aux/make-fedora-img.pl
md_create: feature 'mdadm' is not available in this
2012 Jul 03
8
[PATCH 0/7 v2] Fix and workaround for qcow2 issues in qemu causing data corruption.
https://bugzilla.redhat.com/show_bug.cgi?id=836710
https://bugzilla.redhat.com/show_bug.cgi?id=836913
There are at least two related bugs going on:
(1) Linux sync(2) system call doesn't send a write barrier to the
disk, so in effect it doesn't force the hard disk to flush its cache.
libguestfs used sync(2) to force changes to disk. We didn't expect
that qemu was caching anything
2014 Oct 05
0
[PATCH v5 2/7] tests/c-api: Convert the C API tests to use the test harness.
...t;; "$top_srcdir/COPYING"; "/upload_offset"; "0"];
["checksum"; "md5"; "/upload_offset"]], md5), []
]);
shortdesc = "upload a file from the local machine with offset";
@@ -8880,17 +8884,19 @@ See also C<guestfs_upload>, C<guestfs_pwrite>." };
proc_nr = Some 274;
progress = true; cancellable = true;
tests =
- (let md5 = Digest.to_hex (Digest.file "COPYING.LIB") in
+ (let md5 = Digest.to_hex (Digest.file "COPYING") in
let offset = string_of_int 100...
2015 Aug 06
0
[PATCH v4 02/17] tests/c-api: Convert the C API tests to use the test harness.
...t;; "$top_srcdir/COPYING"; "/upload_offset"; "0"];
["checksum"; "md5"; "/upload_offset"]], md5), []
]);
shortdesc = "upload a file from the local machine with offset";
@@ -9023,17 +9027,19 @@ See also C<guestfs_upload>, C<guestfs_pwrite>." };
proc_nr = Some 274;
progress = true; cancellable = true;
tests =
- (let md5 = Digest.to_hex (Digest.file "COPYING.LIB") in
+ (let md5 = Digest.to_hex (Digest.file "COPYING") in
let offset = string_of_int 100...
2015 Jun 14
2
[PATCH] pod: Use F<> for filenames instead of C<>.
...longdesc = "\
-Download file C<remotefilename> and save it as C<filename>
+Download file F<remotefilename> and save it as F<filename>
on the local machine.
-C<filename> can also be a named pipe.
+F<filename> can also be a named pipe.
See also C<guestfs_upload>, C<guestfs_cat>." };
@@ -4813,7 +4813,7 @@ To get the checksums for many files, use C<guestfs_checksums_out>." };
];
shortdesc = "unpack tarfile to directory";
longdesc = "\
-This command uploads and unpacks local file C<tarfile> into...
2017 Feb 21
1
[PATCH] generator: Put all the daemon procedure numbers (proc_nr)
This is a follow-up to the other generator changes in:
https://www.redhat.com/archives/libguestfs/2017-February/msg00217.html
Rich.
2017 May 04
4
[PATCH 0/3] generator: Allow returned strings to be annotated as devices.
If we want to permit more than 255 drives to be added, then we will
have to add the disks to the same virtio-scsi target using different
unit (LUN) numbers.
Unfortunately SCSI LUN enumeration in the Linux is not deterministic
(eg. two disks with target=0, lun=[0,1] can be enumerated as /dev/sda
or /dev/sdb randomly). Dealing with that will require some very
complex device name translation on the
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...read_create (&test_thread, NULL, start_test_thread, &data);
- if (r != 0) {
- fprintf (stderr, "pthread_create: %s\n", strerror (r));
- exit (EXIT_FAILURE);
- }
+ if (r != 0)
+ error (EXIT_FAILURE, r, "pthread_create");
/* Do the upload. */
op_error = guestfs_upload (g, dev_fd, "/upload");
@@ -126,15 +122,11 @@ main (int argc, char *argv[])
/* Kill the test thread and clean up. */
r = pthread_cancel (test_thread);
- if (r != 0) {
- fprintf (stderr, "pthread_cancel: %s\n", strerror (r));
- exit (EXIT_FAILURE);
- }
+ if (r !=...
2013 Aug 24
46
[PATCH 00/46] Proposed patches for libguestfs 1.20.11.
Tested with 'make check-release'.
tests/parallel (in check-slow) failed, although it does regularly and
that seems to be because of libvirt.
Rich.
2017 Apr 21
0
[PATCH 1/2] generator: Simplify the handling of string parameters.
..."; FileOut "filename"], [];
+ style = RErr, [String (Dev_or_Path, "remotefilename"); String (FileOut, "filename")], [];
progress = true; cancellable = true;
tests = [
InitScratchFS, Always, TestResultString (
@@ -2752,7 +2752,7 @@ See also C<guestfs_upload>, C<guestfs_cat>." };
{ defaults with
name = "checksum"; added = (1, 0, 2);
- style = RString "checksum", [String "csumtype"; Pathname "path"], [];
+ style = RString "checksum", [String (PlainString, "csumtype"...
2017 Apr 21
4
[PATCH 0/2] generator: Simplify the handling of string parameters.
Very large but mechanical change to the generator.
Rich.
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
Wherever we had code which did:
if (something_bad) {
perror (...);
exit (EXIT_FAILURE);
}
replace this with use of the error(3) function:
if (something_bad)
error (EXIT_FAILURE, errno, ...);
The error(3) function is supplied by glibc, or by gnulib on platforms
which don't have it, and is much more flexible than perror(3). Since
we already use error(3), there seems to be