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:
authorJoerg Steffens <joerg.steffens@bareos.com>2015-11-15 13:18:33 +0300
committerJoerg Steffens <joerg.steffens@bareos.com>2015-11-15 13:18:33 +0300
commitbc9ba63080de46937e4b521887ef4d626129d307 (patch)
treece7c676c387ec0d67b32c1c1506a618715840612
parentf59d9d8e10896627615770d9f88c5f32215bfb8b (diff)
bugfix: needed more info to identify object
-rw-r--r--bareos/fuse/node/bvfsdir.py2
-rw-r--r--bareos/fuse/node/bvfsfile.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/bareos/fuse/node/bvfsdir.py b/bareos/fuse/node/bvfsdir.py
index 0ead431..b664d0f 100644
--- a/bareos/fuse/node/bvfsdir.py
+++ b/bareos/fuse/node/bvfsdir.py
@@ -28,7 +28,7 @@ class BvfsDir(Directory, BvfsCommon):
if pathid == None:
id = "jobid=%s" % (str(job.job['jobid']))
else:
- id = "pathid=%s" % (str(pathid))
+ id = "jobid=%s_pathid=%s" % (str(job.job['jobid']),str(pathid))
return id
def setxattr(self, path, key, value, flags):
diff --git a/bareos/fuse/node/bvfsfile.py b/bareos/fuse/node/bvfsfile.py
index 636b336..d47a9b9 100644
--- a/bareos/fuse/node/bvfsfile.py
+++ b/bareos/fuse/node/bvfsfile.py
@@ -18,7 +18,8 @@ class BvfsFile(File, BvfsCommon):
@classmethod
def get_id(cls, file, job, bvfspath):
- return str(file['fileid'])
+ return "jobid=%s_fileid=%s" % (str(job.job['jobid']),str(file['fileid']))
+
# Filesystem methods
# ==================