Remove the disk limits after saving them.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 18 Jan 2007 04:38:30 +0000 (04:38 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 18 Jan 2007 04:38:30 +0000 (04:38 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2456 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vserver.functions

index 3139ac6..ba07f33 100644 (file)
@@ -1168,6 +1168,8 @@ function _saveSingleDiskLimit
 
     $_VDLIMIT --xid $ctx "$directory" | \
        $_GREP '_used=' > "$vdir/cache/dlimits/$cachename"
+
+    $_VDLIMIT --xid $ctx --remove "$directory"
 }