From: Faiyaz Ahmed Date: Thu, 30 Aug 2007 19:59:54 +0000 (+0000) Subject: DHOZAC suggestion to remove race between vuseradd and vcached. The only time there... X-Git-Tag: planetlab-4_1-rc2~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=90b916bba5a56d2f50f565a73f61756801ae547a;p=util-vserver.git DHOZAC suggestion to remove race between vuseradd and vcached. The only time there would be trash to take out is if a previous vcached/vuseradd instance was running when the box was rebooted. --- diff --git a/scripts/vcached b/scripts/vcached index c587bc1..1fa9e6d 100755 --- a/scripts/vcached +++ b/scripts/vcached @@ -16,7 +16,7 @@ # Mark Huang # Copyright (c) 2004-2005 The Trustees of Princeton University # -# $Id: vcached,v 1.12 2005/09/03 21:47:11 mlhuang Exp $ +# $Id: vcached,v 1.13 2006/11/13 18:57:21 mlhuang Exp $ # PATH=/sbin:/usr/sbin:$PATH @@ -79,7 +79,7 @@ test -e "$UTIL_VSERVER_VARS" || { setattr --barrier $__DEFAULT_VSERVERDIR # take out the trash -rm -rf "$__DEFAULT_VSERVERDIR/.vtmp" +#rm -rf "$__DEFAULT_VSERVERDIR/.vtmp" mkdir -p "$__DEFAULT_VSERVERDIR/.vcache" mkdir -p "$__DEFAULT_VSERVERDIR/.vtmp"