Start the generated code and code generator.
[libguestfs.git] / guestfs-actions.pod
1 =head2 guestfs_mount
2
3  int guestfs_mount (guestfs_h *handle, const char *device, const char *mountpoint);
4
5 Mount a guest disk at a position in the filesystem.  Block devices
6 are named C</dev/sda>, C</dev/sdb> and so on, as they were added to
7 the guest.  If those block devices contain partitions, they will have
8 the usual names (eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style
9 names can be used.
10
11 The rules are the same as for L<mount(2)>:  A filesystem must
12 first be mounted on C</> before others can be mounted.  Other
13 filesystems can only be mounted on directories which already
14 exist.
15
16 =head2 guestfs_sync
17
18  int guestfs_sync (guestfs_h *handle);
19
20 This syncs the disk, so that any writes are flushed through to the
21 underlying disk image.
22
23 You should always call this if you have modified a disk image, before
24 calling C<guestfs_close>.
25
26 =head2 guestfs_touch
27
28  int guestfs_touch (guestfs_h *handle, const char *path);
29
30 Touch acts like the L<touch(1)> command.  It can be used to
31 update the filesystems on a file, or, if the file does not exist,
32 to create a new zero-length file.
33