X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fmount.c;h=4955fcf307704557f3110ea87af6dad28349ea72;hp=071ca9627b671b5a089ab93b2508bf878972182c;hb=05c34c1c1479bb07b31cfbf912743a8cf014a636;hpb=2df2f2854ed2d1f9857ef3c5aaca29810cf3c506 diff --git a/daemon/mount.c b/daemon/mount.c index 071ca96..4955fcf 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -39,8 +39,8 @@ int root_mounted = 0; */ int -do_mount_vfs (const char *options, const char *vfstype, - const char *device, const char *mountpoint) +do_mount_vfs (char *options, char *vfstype, + char *device, char *mountpoint) { int len, r, is_root; char *mp; @@ -84,20 +84,20 @@ do_mount_vfs (const char *options, const char *vfstype, } int -do_mount (const char *device, const char *mountpoint) +do_mount (char *device, char *mountpoint) { return do_mount_vfs ("sync,noatime", NULL, device, mountpoint); } int -do_mount_ro (const char *device, const char *mountpoint) +do_mount_ro (char *device, char *mountpoint) { return do_mount_vfs ("ro", NULL, device, mountpoint); } int -do_mount_options (const char *options, const char *device, - const char *mountpoint) +do_mount_options (char *options, char *device, + char *mountpoint) { return do_mount_vfs (options, NULL, device, mountpoint); } @@ -106,7 +106,7 @@ do_mount_options (const char *options, const char *device, * is kept updated. */ int -do_umount (const char *pathordevice) +do_umount (char *pathordevice) { int len, freeit = 0, r; char *buf;