File locking isn't exclusive in the same process across threads. Switched to regular...
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Fri, 4 Apr 2008 19:54:58 +0000 (19:54 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Fri, 4 Apr 2008 19:54:58 +0000 (19:54 +0000)
commitae2df81ef9b7c8da6a7f8b201e95e01062543953
tree165d53ba05a9bdb3b30903aa461bcd7a55373244
parenta185ca88c75c3c2e2d793a25988b1e5fd359ad1b
File locking isn't exclusive in the same process across threads.  Switched to regular semaphores.  The assumption is sliver_vs.configure is called before Vserver.start(), which sets disk_usage_initialized.  The disk check should be skipped during start, so the lock won't carry over.  ...I hope.
sliver_vs.py
tools.py