Fix vzctl destroy logic.
vzctl destroy operation is asyncronous: it moves VE private area to a temp
directory on the same filesystem, and then forks rm -rf in background.
The problem: that background task removes everything that is sitting
under the 'tmp' directory under the filesystem root where VE private
area is situated (usually /vz/tmp or /var/lib/vz/tmp).
Rework the removal logic to remove only those temporary directories that
we have created, by embedding a magic into temp directory name.
Problem was found and reported by Wolfgang Schnerring, see
http://bugzilla.openvz.org/455
1 file changed