Patch to correct order of unmounting in vzctl [message #2932] |
Fri, 28 April 2006 22:53 |
|
Griffon26
Messages: 4 Registered: April 2006 Location: Eindhoven, The Netherland...
|
Junior Member |
|
|
Hi guys,
The attached patch corrects the unmount order in vzctl to follow the
description of it in the user manual (VPS umount before global umount
instead of the other way around). It applies to vzctl-3.0.0.8.
Regards,
Maurice.
--
Maurice van der Pot
Gentoo Linux Developer griffon26@gentoo.org http://www.gentoo.org
Creator of BiteMe! griffon26@kfk4ever.com http://www.kfk4ever.com
diff -ruN vzctl-3.0.0-8/src/lib/fs.c vzctl-3.0.0-8-patched/src/lib/fs.c
--- vzctl-3.0.0-8/src/lib/fs.c 2006-04-19 14:19:06.000000000 +0200
+++ vzctl-3.0.0-8-patched/src/lib/fs.c 2006-04-28 23:51:09.843033500 +0200
@@ -179,16 +179,16 @@
return 0;
}
if (!(skip & SKIP_ACTION_SCRIPT)) {
- snprintf(buf, sizeof(buf), "%svps.%s", VPS_CONF_DIR,
- UMOUNT_PREFIX);
+ snprintf(buf, sizeof(buf), "%s%d.%s", VPS_CONF_DIR,
+ veid, UMOUNT_PREFIX);
for (i = 0; i < 2; i++) {
if (run_pre_script(veid, buf)) {
logger(0, 0, "Error executing umount script %s",
buf);
return VZ_ACTIONSCRIPT_ERROR;
}
- snprintf(buf, sizeof(buf), "%s%d.%s", VPS_CONF_DIR,
- veid, UMOUNT_PREFIX);
+ snprintf(buf, sizeof(buf), "%svps.%s", VPS_CONF_DIR,
+ UMOUNT_PREFIX);
}
}
if (!(ret = fsumount(veid, root)))
|
|
|
Re: Patch to correct order of unmounting in vzctl [message #2944 is a reply to message #2932] |
Tue, 02 May 2006 10:06 |
Igor Sukhih
Messages: 21 Registered: May 2006
|
Junior Member |
|
|
Maurice van der Pot wrote:
>Hi guys,
>
>The attached patch corrects the unmount order in vzctl to follow the
>description of it in the user manual (VPS umount before global umount
>instead of the other way around). It applies to vzctl-3.0.0.8.
>
Thanks for notice, will be applied in next release.
--
Igor.
|
|
|