search for: guestfs_fsync

Displaying 4 results from an estimated 4 matches for "guestfs_fsync".

2015 Feb 09
2
Re: getting guestfs_rsync_out to work
...ange. 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 time, but afterwards any change we make to it (e.g. using Win7 Notepad) is never seen. That's the issue. Is there any way at all to accomplish this using libguestfs, without re-launching the image,...
2015 Feb 09
0
Re: getting guestfs_rsync_out to work
...ing 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 time, but > afterwards any change we make to it (e.g. using Win7 Notepad) is > never seen. That's the issue. This is completely expected. Have a look at the architectu...
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
...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 time, but >> afterwards any change we make to it (e.g. using Win7 Notepad) is >> never seen. That's the issue. > > This is completely expe...