summaryrefslogtreecommitdiffstats
path: root/xlators/features/snapview-server
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/snapview-server')
-rw-r--r--xlators/features/snapview-server/src/snapview-server.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/xlators/features/snapview-server/src/snapview-server.h b/xlators/features/snapview-server/src/snapview-server.h
index d776ed93a3a..bacb6275607 100644
--- a/xlators/features/snapview-server/src/snapview-server.h
+++ b/xlators/features/snapview-server/src/snapview-server.h
@@ -53,11 +53,14 @@
_private = this->private; \
int i = 0; \
gf_boolean_t found = _gf_false; \
+ glfs_t *tmp_fs = NULL; \
LOCK (&_private->snaplist_lock); \
{ \
for (i = 0; i < _private->num_snaps; i++) { \
- if (_private->dirents->fs && fs && \
- _private->dirents->fs == fs) { \
+ tmp_fs = _private->dirents[i].fs; \
+ gf_log (this->name, GF_LOG_DEBUG, \
+ "dirent->fs: %p", tmp_fs); \
+ if (tmp_fs && fs && (tmp_fs == fs)) { \
found = _gf_true; \
break; \
} \
@@ -65,8 +68,11 @@
} \
UNLOCK (&_private->snaplist_lock); \
\
- if (!found) \
+ if (!found) { \
+ gf_log (this->name, GF_LOG_WARNING, "failed to" \
+ " find the fs instance %p", fs); \
fs = NULL; \
+ } \
} while (0)
#define SVS_GET_INODE_CTX_INFO(inode_ctx, fs, object, this, loc, ret, \