summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2009-03-11 16:20:49 -0400
committerMichael DeHaan <mdehaan@redhat.com>2009-03-11 16:21:09 -0400
commit92dd699ee4bdef9baa742fc229a6df436adc5ba8 (patch)
tree6181495f2f0cf491d7d3e81e3210a242d9e1f5e4
parentc2fa274c0ea98946e15920d31e83f4e096f71703 (diff)
downloadcobbler-92dd699ee4bdef9baa742fc229a6df436adc5ba8.tar.gz
cobbler-92dd699ee4bdef9baa742fc229a6df436adc5ba8.tar.xz
cobbler-92dd699ee4bdef9baa742fc229a6df436adc5ba8.zip
Surface hardlink command remotely.
-rw-r--r--cobbler/remote.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/cobbler/remote.py b/cobbler/remote.py
index 6fdb96fe..eaf3d41d 100644
--- a/cobbler/remote.py
+++ b/cobbler/remote.py
@@ -1138,6 +1138,17 @@ class CobblerXMLRPCInterface:
self.check_access(token,"sync")
return self.api.sync()
+ def hardlink(self,token):
+ """
+ Hardlink trees and repos to save disk space. Caution: long
+ running op. Until we have a task engine, this may lock other
+ folks out of the web app, so use wisely. It may also be timeout
+ prone.
+ """
+ self._log("hardlink",token=token)
+ self.check_access(token,"hardlink")
+ return self.api.hardlink()
+
def new_distro(self,token):
"""
Creates a new (unconfigured) distro object. It works something like