git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reverse sense of whitelist test.
[libguestfs.git]
/
daemon
/
mount.c
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
071ca96
..
4955fcf
100644
(file)
--- a/
daemon/mount.c
+++ b/
daemon/mount.c
@@
-39,8
+39,8
@@
int root_mounted = 0;
*/
int
*/
int
-do_mount_vfs (c
onst char *options, const
char *vfstype,
- c
onst char *device, const
char *mountpoint)
+do_mount_vfs (c
har *options,
char *vfstype,
+ c
har *device,
char *mountpoint)
{
int len, r, is_root;
char *mp;
{
int len, r, is_root;
char *mp;
@@
-84,20
+84,20
@@
do_mount_vfs (const char *options, const char *vfstype,
}
int
}
int
-do_mount (c
onst char *device, const
char *mountpoint)
+do_mount (c
har *device,
char *mountpoint)
{
return do_mount_vfs ("sync,noatime", NULL, device, mountpoint);
}
int
{
return do_mount_vfs ("sync,noatime", NULL, device, mountpoint);
}
int
-do_mount_ro (c
onst char *device, const
char *mountpoint)
+do_mount_ro (c
har *device,
char *mountpoint)
{
return do_mount_vfs ("ro", NULL, device, mountpoint);
}
int
{
return do_mount_vfs ("ro", NULL, device, mountpoint);
}
int
-do_mount_options (c
onst char *options, const
char *device,
- c
onst c
har *mountpoint)
+do_mount_options (c
har *options,
char *device,
+ char *mountpoint)
{
return do_mount_vfs (options, NULL, device, 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
* is kept updated.
*/
int
-do_umount (c
onst c
har *pathordevice)
+do_umount (char *pathordevice)
{
int len, freeit = 0, r;
char *buf;
{
int len, freeit = 0, r;
char *buf;