3 int guestfs_mount (guestfs_h *handle,
5 const char *mountpoint);
7 Mount a guest disk at a position in the filesystem. Block devices
8 are named C</dev/sda>, C</dev/sdb> and so on, as they were added to
9 the guest. If those block devices contain partitions, they will have
10 the usual names (eg. C</dev/sda1>). Also LVM C</dev/VG/LV>-style
13 The rules are the same as for L<mount(2)>: A filesystem must
14 first be mounted on C</> before others can be mounted. Other
15 filesystems can only be mounted on directories which already
18 The mounted filesystem is writable, if we have sufficient permissions
19 on the underlying device.
21 The filesystem options C<sync> and C<noatime> are set with this
22 call, in order to improve reliability.
24 This function return 0 on success or -1 on error.
28 int guestfs_sync (guestfs_h *handle);
30 This syncs the disk, so that any writes are flushed through to the
31 underlying disk image.
33 You should always call this if you have modified a disk image, before
34 calling C<guestfs_close>.
36 This function return 0 on success or -1 on error.
40 int guestfs_touch (guestfs_h *handle,
43 Touch acts like the L<touch(1)> command. It can be used to
44 update the timestamps on a file, or, if the file does not exist,
45 to create a new zero-length file.
47 This function return 0 on success or -1 on error.