diff options
| author | Raghavendra Bhat <raghavendra@redhat.com> | 2019-05-14 10:56:15 -0400 |
|---|---|---|
| committer | Amar Tumballi <amarts@redhat.com> | 2019-06-08 05:42:19 +0000 |
| commit | 2ff76fa45c53b8e291cf70c98b28800f3ed5f6fc (patch) | |
| tree | 4fcdb3a9618b33966e49881df2b7d1bb7dfec58c /xlators/features/snapview-server/src/snapview-server.h | |
| parent | fa32b594d12673698da0c1dab8491db8655b4d50 (diff) | |
uss: Ensure that snapshot is deleted before creating a new snapshot
* Also some logging enhancements in snapview-server
Change-Id: I6a7646771cedf4bd1c62806eea69d720bbaf0c83
fixes: bz#1715921
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators/features/snapview-server/src/snapview-server.h')
| -rw-r--r-- | xlators/features/snapview-server/src/snapview-server.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xlators/features/snapview-server/src/snapview-server.h b/xlators/features/snapview-server/src/snapview-server.h index b25801901ed..42f22404b68 100644 --- a/xlators/features/snapview-server/src/snapview-server.h +++ b/xlators/features/snapview-server/src/snapview-server.h @@ -58,9 +58,16 @@ { \ for (i = 0; i < _private->num_snaps; i++) { \ tmp_fs = _private->dirents[i].fs; \ - gf_log(this->name, GF_LOG_DEBUG, "dirent->fs: %p", tmp_fs); \ + gf_log(this->name, GF_LOG_DEBUG, \ + "snap name: %s, snap volume: %s," \ + "dirent->fs: %p", \ + _private->dirents[i].name, \ + _private->dirents[i].snap_volname, tmp_fs); \ if (tmp_fs && fs && (tmp_fs == fs)) { \ found = _gf_true; \ + gf_msg_debug(this->name, 0, \ + "found the fs " \ + "instance"); \ break; \ } \ } \ |
