search for: guestfs_mount_options

Displaying 15 results from an estimated 15 matches for "guestfs_mount_options".

2010 Feb 09
1
[PATCH] Use mount-options instead of mount to avoid implicit -o sync.
...;mountpoint); + + /* Don't use guestfs_mount here because that will default to mount + * options -o sync,noatime. For more information, see guestfs(3) + * section "LIBGUESTFS GOTCHAS". + */ + const char *options = !read_only ? "" : "ro"; + r = guestfs_mount_options (g, options, mp->device, mp->mountpoint); if (r == -1) exit (EXIT_FAILURE); } diff --git a/fuse/guestmount.c b/fuse/guestmount.c index c935493..cbd39f2 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -1160,10 +1160,13 @@ mount_mps (struct mp *mp) if (mp) { m...
2015 Feb 09
2
Re: getting guestfs_rsync_out to work
....html#hotplugging > > I think what you really need to do is to install a backup agent in the > Windows guest and use a regular network backup. We don't need to use rsync. We know which files will change. For example even if we do this (error checking removed): while (1) { guestfs_mount_options(g, "sync", "/dev/sda2", "/"); printf("%s\n", guestfs_cat(g, "/HostShared/temp.txt")); guestfs_umount(g, "/"); guestfs_fsync(g); usleep(1000*1000); } temp.txt from the Win7 guest is copied correctly the first...
2014 Sep 26
0
Bind mounts
The test program below demonstrates how to use bind mounts to mount a subdirectory over the root directory. It is using the debug backdoor, but I guess we could consider adding a bind-mount API instead. [Note that guestfs_mount_options doesn't work because it expects the third argument to be a device, not a directory name.] Rich. ---------------------------------------------------------------------- guestfish -N fs -m /dev/sda1 <<EOF mkdir /root touch /root/test # Use -o rbind if there are submounts. debug s...
2011 Jun 16
1
Comment on libguestfs code in https://bitbucket.org/swamiyeswanth/pyti
...a.redhat.com/642934 (3) Instead of using 'mount', use 'mount_options'. The 'mount' call adds some flags to the mountpoint which are not very useful and also make disk writes very slow. http://libguestfs.org/guestfs.3.html#guestfs_mount http://libguestfs.org/guestfs.3.html#guestfs_mount_options http://libguestfs.org/guestfs.3.html#libguestfs_gotchas (4) After line 33 ('umount_all') you should also call 'self.disk_fs.sync()' which causes the libguestfs drive to be fully synced. Alternatively you can delete the handle ('del self.disk_fs') which assuming no other re...
2015 Feb 09
0
Re: getting guestfs_rsync_out to work
...what you really need to do is to install a backup agent in the > > Windows guest and use a regular network backup. > > We don't need to use rsync. We know which files will change. For example even if we do this (error checking removed): > > while (1) { > > guestfs_mount_options(g, "sync", "/dev/sda2", "/"); > > printf("%s\n", guestfs_cat(g, "/HostShared/temp.txt")); > > guestfs_umount(g, "/"); > > guestfs_fsync(g); > > usleep(1000*1000); > } > > temp...
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.
2015 Feb 08
1
Re: getting guestfs_rsync_out to work
Richard- >>> Per this page >>> >>> https://rwmj.wordpress.com/2013/04/22/using-rsync-with-libguestfs/ >>> >>> We are trying to get the libguestfs API guestfs_rsync_out to work. We’ve tried combinations similar to: >>> >>> guestfs_rsync_out(g, “/HostShared”, “rsync://root@10.0.1.90:2999/backup/ -av”, -1) >>> >>>
2015 Feb 09
2
Re: getting guestfs_rsync_out to work
...install a backup agent in the >> > Windows guest and use a regular network backup. >> >> We don't need to use rsync. We know which files will change. For example even if we do this (error checking >> removed): >> >> while (1) { >> >> guestfs_mount_options(g, "sync", "/dev/sda2", "/"); >> >> printf("%s\n", guestfs_cat(g, "/HostShared/temp.txt")); >> >> guestfs_umount(g, "/"); >> >> guestfs_fsync(g); >> >> usleep(1000*100...
2019 Apr 01
1
[PATCH nbdkit v2] Add readahead filter.
Simpler, and including tests. Rich.
2010 Aug 02
5
[PATCH v3 0/5] Inspection code in C
The first three patches were posted previously: https://www.redhat.com/archives/libguestfs/2010-July/msg00082.html The last two patches in this series change guestfish -i to use this new code. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to
2010 Jul 29
4
[PATCH 0/3] Inspection code in C
These three patches (two were previously posted) can do simple operating system inspection in C. Example of use: ><fs> add-ro rhel55.img ><fs> run ><fs> inspect-os /dev/VolGroup00/LogVol00 ><fs> inspect-get-type /dev/VolGroup00/LogVol00 linux ><fs> inspect-get-distro /dev/VolGroup00/LogVol00 rhel ><fs> inspect-get-arch
2010 Aug 17
8
[PATCH v4 0/8] Inspection code in C
Previously discussed here: https://www.redhat.com/archives/libguestfs/2010-August/msg00002.html -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
2014 Jan 27
0
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
...For vfat, add the utf8 mount option because we want to be able to + * encode any non-ASCII characters into UCS2 which is what modern + * vfat uses on disk (RHBZ#823885). + */ + if (STREQ (type, "vfat")) + options = "utf8"; + else + options = ""; + + if (guestfs_mount_options (g, options, dev, "/") == -1) + return -1; + + /* For debugging, print statvfs before and after doing the tar-in. */ + if (verbose) { + CLEANUP_FREE_STATVFS struct guestfs_statvfs *stats = + guestfs_statvfs (g, "/"); + fprintf (stderr, "before uploading:\n&q...
2014 Jan 27
2
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
I thought it would be easy to rewrite virt-make-fs in C. Two days later ... The Perl program uses a lot of external commands, which makes it pretty tedious to implement in C. 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.