[Vserver] How best to unhashify

From: Tony Lewis <gnutered_at_yahoo.com.au>
Date: Mon 13 Mar 2006 - 22:58:50 GMT
Message-ID: <4415F92A.9020403@yahoo.com.au>

With reckless abandon, I vhashified a couple of vserver Ubuntu guests
with no exclusions. Now I find that upgrading is a problem. These
vservers are just for fun, so no harm done, but I'm curious as to the
best way to unhashify, should a mistake be made.

Would it be:

for each file in /vservers/.hash
    for all files in /vservers/* (except /vservers/.hash) with the same
inode
       cp the file, preserving username, perms, timestamp, to a temp file
       rm the file
       mv the copied file to the original file
    remove the file in /vservers/.hash

Or is there a more elegant way?

Tony
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Mon Mar 13 23:11:11 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 13 Mar 2006 - 23:11:16 GMT by hypermail 2.1.8