git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
propagate semantic changes to NEED_ROOT, NEED_ROOT_OR_IS_DEVICE
[libguestfs.git]
/
daemon
/
mount.c
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
9754ca9
..
6c30304
100644
(file)
--- a/
daemon/mount.c
+++ b/
daemon/mount.c
@@
-48,7
+48,7
@@
do_mount_vfs (char *options, char *vfstype,
char *mp;
char *error;
char *mp;
char *error;
-
IS_DEVICE (device,
-1);
+
RESOLVE_DEVICE (device, return
-1);
is_root = strcmp (mountpoint, "/") == 0;
is_root = strcmp (mountpoint, "/") == 0;
@@
-113,7
+113,7
@@
do_umount (char *pathordevice)
if (strncmp (pathordevice, "/dev/", 5) == 0) {
buf = pathordevice;
if (strncmp (pathordevice, "/dev/", 5) == 0) {
buf = pathordevice;
-
IS_DEVICE (buf,
-1);
+
RESOLVE_DEVICE (buf, return
-1);
} else {
buf = sysroot_path (pathordevice);
if (buf == NULL) {
} else {
buf = sysroot_path (pathordevice);
if (buf == NULL) {