summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-07-11 11:50:25 +1200
committerLars Wirzenius <liw@liw.fi>2010-07-11 11:50:25 +1200
commit3928da79022bca798875daab9f1ae14b2de24761 (patch)
treeb60ecb584dc9d732b664ff5a92458bb8497c8f91
parent46d568dda6f951ec86d90ab24d44c57f30de1361 (diff)
downloadobnam-3928da79022bca798875daab9f1ae14b2de24761.tar.gz
Add missing .connect() calls to filesystems.
-rw-r--r--obnamlib/plugins/backup_plugin.py1
-rw-r--r--obnamlib/plugins/forget_plugin.py1
-rw-r--r--obnamlib/plugins/restore_plugin.py2
-rw-r--r--obnamlib/plugins/show_plugin.py1
4 files changed, 5 insertions, 0 deletions
diff --git a/obnamlib/plugins/backup_plugin.py b/obnamlib/plugins/backup_plugin.py
index ba18b539..53159e9e 100644
--- a/obnamlib/plugins/backup_plugin.py
+++ b/obnamlib/plugins/backup_plugin.py
@@ -55,6 +55,7 @@ class BackupPlugin(obnamlib.ObnamPlugin):
storepath = self.app.config['store']
logging.debug('store: %s' % storepath)
storefs = self.app.fsf.new(storepath)
+ storefs.connect()
self.store = obnamlib.Store(storefs, self.app.config['node-size'],
self.app.config['upload-queue-size'])
diff --git a/obnamlib/plugins/forget_plugin.py b/obnamlib/plugins/forget_plugin.py
index 0ecc8bd0..419c8e19 100644
--- a/obnamlib/plugins/forget_plugin.py
+++ b/obnamlib/plugins/forget_plugin.py
@@ -34,6 +34,7 @@ class ForgetPlugin(obnamlib.ObnamPlugin):
self.app.config.require('hostname')
fs = self.app.fsf.new(self.app.config['store'])
+ fs.connect()
self.store = obnamlib.Store(fs, self.app.config['node-size'],
self.app.config['upload-queue-size'])
self.store.lock_host(self.app.config['hostname'])
diff --git a/obnamlib/plugins/restore_plugin.py b/obnamlib/plugins/restore_plugin.py
index b51d3977..3a6a9412 100644
--- a/obnamlib/plugins/restore_plugin.py
+++ b/obnamlib/plugins/restore_plugin.py
@@ -81,10 +81,12 @@ class RestorePlugin(obnamlib.ObnamPlugin):
args = ['/']
storefs = self.app.fsf.new(self.app.config['store'])
+ storefs.connect()
self.store = obnamlib.Store(storefs, self.app.config['node-size'],
self.app.config['node-size'])
self.store.open_host(self.app.config['hostname'])
self.fs = self.app.fsf.new(self.app.config['to'])
+ self.fs.connect()
self.hardlinks = Hardlinks()
diff --git a/obnamlib/plugins/show_plugin.py b/obnamlib/plugins/show_plugin.py
index d650a828..6c3548f2 100644
--- a/obnamlib/plugins/show_plugin.py
+++ b/obnamlib/plugins/show_plugin.py
@@ -40,6 +40,7 @@ class ShowPlugin(obnamlib.ObnamPlugin):
self.app.config.require('store')
self.app.config.require('hostname')
fs = self.app.fsf.new(self.app.config['store'])
+ fs.connect()
self.store = obnamlib.Store(fs, self.app.config['node-size'],
self.app.config['node-size'])
self.store.open_host(self.app.config['hostname'])