OpenVZ Forum - RDF feed
type: channel
items: Patch to correct order of unmounting in vzctl
items: Re: Patch to correct order of unmounting in vzctl

Patch to correct order of unmounting in vzctl
type: item
description: 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)))
creator: Griffon26
date: 2006-04-28T22:53:04-00:00

Re: Patch to correct order of unmounting in vzctl
type: item
description: 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.
creator: Igor Sukhih
date: 2006-05-02T10:06:45-00:00