No verbose. User can enable by setting LIBGUESTFS_DEBUG=1 if they want.
[libguestfs.git] / guestfs-actions.pod
1 =head2 guestfs_mount
2
3  int guestfs_mount (guestfs_h *handle,
4                 const char *device,
5                 const char *mountpoint);
6
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
11 names can be used.
12
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
16 exist.
17
18 This function return 0 on success or -1 on error.
19
20 =head2 guestfs_sync
21
22  int guestfs_sync (guestfs_h *handle);
23
24 This syncs the disk, so that any writes are flushed through to the
25 underlying disk image.
26
27 You should always call this if you have modified a disk image, before
28 calling C<guestfs_close>.
29
30 This function return 0 on success or -1 on error.
31
32 =head2 guestfs_touch
33
34  int guestfs_touch (guestfs_h *handle,
35                 const char *path);
36
37 Touch acts like the L<touch(1)> command.  It can be used to
38 update the filesystems on a file, or, if the file does not exist,
39 to create a new zero-length file.
40
41 This function return 0 on success or -1 on error.
42