search for: guestfs_mount_local

Displaying 18 results from an estimated 18 matches for "guestfs_mount_local".

2012 May 13
1
guestfs_mount_local api test: have to 'mount' before calling it?
Hi I`ve been trying this guestfs_mount_local api for quite a few days, but still can`t get over it. Now it seems to have enter the fuse loop but have some problems with 'mount'? and stops at guestfs_mount_local_run(g). Here`s corresponding code in the test program: ?? if(guestfs_mount_local(g,"/mnt/libg")==-1) exit(EXIT_FA...
2012 May 10
1
guestfs_mount_local* api undefined symbols
Recently i deployed latest 1.17.40 on rhel6.1. When i ran a tiny program which was to test the function guestfs_mount_local() or those similar functions that mounts locally, Error prompted?undefined symbol guest_mount_local ! Why didn`t this undefined symbol error prompt when the program was first compiled,but occurred when it was run? Then i gave guestfish mount local a try in the shell, and found that ok.I thought it...
2012 May 10
1
回复: guestfs_mount_local* api undefined symbols
...ou again ;) Nok ------------------ ???? ------------------ ???: "Richard W.M. Jones"<rjones at redhat.com>; ????: 2012?5?10?(???) ??11:07 ???: "Nok"<leolc_2749 at qq.com>; ??: "libguestfs"<libguestfs at redhat.com>; ??: Re: [Libguestfs] guestfs_mount_local* api undefined symbols On Thu, May 10, 2012 at 09:59:17PM +0800, Nok wrote: > Recently i deployed latest 1.17.40 on rhel6.1. Compiled from source, by the looks of it? > When i ran a tiny program which was to test the function > guestfs_mount_local() or those similar functions that mou...
2012 May 11
1
Re: Re: guestfs_mount_local* api undefined symbols
...nstance image? Nok ------------------ ???? ------------------ ???: "Richard W.M. Jones"<rjones at redhat.com>; ????: 2012?5?11?(???) ??1:19 ???: "Nok"<leolc_2749 at qq.com>; ??: "libguestfs"<libguestfs at redhat.com>; ??: Re: ??? [Libguestfs] guestfs_mount_local* api undefined symbols On Fri, May 11, 2012 at 01:03:26AM +0800, Nok wrote: > I checked the version and found that it printed an old 1.17.17 > version which was deployed before. But I remembered i did check the > version in guestfish shell and it said 1.17.40 before that?then i > to...
2017 Feb 02
2
[PATCH v2] fuse: use the configured program name
...index 0180f8f..98bbc8d 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -989,8 +989,7 @@ guestfs_impl_mount_local (guestfs_h *g, const char *localmountpoint, return -1; /* Create the FUSE 'args'. */ - /* XXX we don't have a program name */ - if (fuse_opt_add_arg (&args, "guestfs_mount_local") == -1) { + if (fuse_opt_add_arg (&args, g->program) == -1) { arg_error: perrorf (g, _("fuse_opt_add_arg: %s"), localmountpoint); fuse_opt_free_args (&args); -- 2.9.3
2017 Feb 09
3
Extract VHD using guestfs
Hi, I have tried to extract *.vhd* file using guestfs library. I am able to list all files inside my archive using *guestfs_ls* also * guestfs_list_filesystems()* retruns right File system information. I am trying to extract files from inside archive using *guestfs_copy_device_to_file() * but it returns following error (error: copy_device_to_file: unknown option 689330304 (this can happen if a
2011 Dec 14
3
Proposed changes for OpenStack
[These two patches are for discussion only] Allow FUSE support to be used directly through the API. This is the second commit. In order to make this usable from guestfish, we have to also bind the events API in guestfish. This is the first commit. Rich.
2012 Jul 09
4
[PATCH 0/4] Provide guestmount --pid-file and document possible race when unmounting FUSE filesystems.
The full description of this bug is here: https://bugzilla.redhat.com/show_bug.cgi?id=838592 and the effect it has on OpenStack is described here: https://bugzilla.redhat.com/show_bug.cgi?id=835466#c9 Rich.
2012 Aug 06
1
[PATCH V2] virt-diff: add new virt-diff tool
..."/tmp/sGuestXXXXXX"; + char dtempdir[] = "/tmp/dGuestXXXXXX"; + + if (mkdtemp (stempdir) == NULL) { + perror ("mkdtemp"); + exit (EXIT_FAILURE); + } + if (mkdtemp (dtempdir) == NULL) { + perror ("mkdtemp"); + exit (EXIT_FAILURE); + } + + if (guestfs_mount_local (sg, stempdir, -1) == -1) + exit (EXIT_FAILURE); + if (guestfs_mount_local (dg, dtempdir, -1) == -1) + exit (EXIT_FAILURE); + + spid = fork (); + if (spid == -1) { + perror ("fork"); + exit (EXIT_FAILURE); + } + if (spid == 0) { + if (guestfs_mount_local_run (sg) == -1...
2012 Mar 29
3
[PATCH v3] New APIs: mount-local, mount-local-run and umount-local using FUSE
This changes the proposed API slightly. Previously 'mount-local' generating a 'mounted' event when the filesystem was ready, and from the 'mounted' event you had to effectively do a fork. Now, 'mount-local' just initializes the mountpoint and you have to call 'mount-local-run' to enter the FUSE main loop. Between these calls you can do a fork or whatever
2017 Jan 05
0
[PATCH] fuse: use the configured program name
...index 0180f8f..98bbc8d 100644 --- a/src/fuse.c +++ b/src/fuse.c @@ -989,8 +989,7 @@ guestfs_impl_mount_local (guestfs_h *g, const char *localmountpoint, return -1; /* Create the FUSE 'args'. */ - /* XXX we don't have a program name */ - if (fuse_opt_add_arg (&args, "guestfs_mount_local") == -1) { + if (fuse_opt_add_arg (&args, g->program) == -1) { arg_error: perrorf (g, _("fuse_opt_add_arg: %s"), localmountpoint); fuse_opt_free_args (&args); -- 2.7.4
2017 Feb 03
0
Re: [PATCH v2] fuse: use the configured program name
.../lib/fuse.c > +++ b/lib/fuse.c > @@ -989,8 +989,7 @@ guestfs_impl_mount_local (guestfs_h *g, const char *localmountpoint, > return -1; > > /* Create the FUSE 'args'. */ > - /* XXX we don't have a program name */ > - if (fuse_opt_add_arg (&args, "guestfs_mount_local") == -1) { > + if (fuse_opt_add_arg (&args, g->program) == -1) { > arg_error: > perrorf (g, _("fuse_opt_add_arg: %s"), localmountpoint); > fuse_opt_free_args (&args); ACK. I think there is a bug in our documentation, see patch below. Rich. &gt...
2017 Feb 09
0
Re: Extract VHD using guestfs
...f libguestfs, then dynamically linked to an older version)). > Please see attached main.c for my sample code. I don't know about the above error, but the way you've used copy-device-to-file is clearly wrong: > guestfs_mount (g, "/dev/sda1", "/"); > > //guestfs_mount_local (g, "/home/mohsin/VHD/"); > guestfs_ls(g, "/"); > guestfs_copy_device_to_file(g, "/dev/sda1/file-to extract.exe", "/abc.exe"); It's actually not clear to me what you're trying to achieve here. Download the file to the local host? If s...
2017 Feb 13
2
Re: Extract VHD using guestfs
...er version)). > > Please see attached main.c for my sample code. > > I don't know about the above error, but the way you've used > copy-device-to-file is clearly wrong: > > > guestfs_mount (g, "/dev/sda1", "/"); > > > > //guestfs_mount_local (g, "/home/mohsin/VHD/"); > > guestfs_ls(g, "/"); > > guestfs_copy_device_to_file(g, "/dev/sda1/file-to extract.exe", > "/abc.exe"); > > It's actually not clear to me what you're trying to achieve here. > Download...
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 Mar 27
3
[PATCH 0/3] Enable FUSE support in the API via 'mount-local' call.
This patch is just for review. It enables FUSE support in the API via two new calls, 'guestfs_mount_local' and 'guestfs_umount_local'. FUSE turns out to be very easy to deadlock (necessitating that the machine be rebooted). Running the test from the third patch is usually an effective way to demonstrate this. However I have not yet managed to produce a simple reproducer that can be repor...
2012 Mar 28
2
[PATCH v2] New APIs: mount-local and umount-local using FUSE
This version doesn't crash or cause hung processes or stuck mountpoints, so that's an improvement. Rich.
2017 Feb 18
8
[PATCH 0/6] generator: Split up generator/actions.ml
Split up the huge generator/actions.ml into several smaller files. Rich.