Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/python-bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bareos/fuse/node/base.py')
-rw-r--r--bareos/fuse/node/base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bareos/fuse/node/base.py b/bareos/fuse/node/base.py
index 012da3f..916e2b0 100644
--- a/bareos/fuse/node/base.py
+++ b/bareos/fuse/node/base.py
@@ -186,6 +186,8 @@ class Base(object):
self.update_stat()
result = self.get_stat()
else:
+ if not (path.get(0) in self.subnodes):
+ self.update()
if path.get(0) in self.subnodes:
topdir = path.shift()
result = self.subnodes[topdir].getattr(path)
@@ -201,6 +203,8 @@ class Base(object):
if self.content != None:
result = self.content[offset:offset+size]
else:
+ if not (path.get(0) in self.subnodes):
+ self.update()
if path.get(0) in self.subnodes:
topdir = path.shift()
result = self.subnodes[topdir].read(path, size, offset)