diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2018-12-03 11:23:20 -0500 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-12-17 12:25:33 +0000 |
commit | bdcb2d8497d77ff28cb031ae3992eb7ea0c90486 (patch) | |
tree | 54d309a1d7d1ad95410ebb5379612a0ad44d635d /xlators/features/snapview-client/src/snapview-client-messages.h | |
parent | 403c69d35827b6cbb430e97a797c318cca81e86e (diff) |
features/snapview-client: access priv->path inside lock
To handle the race condition of a fop or a function accessing priv->path
and a reconfigure changing priv->path (because entry point directory
changed), the private structure's path is guarded by the lock.
updates bz#1650403
Change-Id: I61c539da06d68d38eafcf2155699c7702f31323e
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators/features/snapview-client/src/snapview-client-messages.h')
-rw-r--r-- | xlators/features/snapview-client/src/snapview-client-messages.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/features/snapview-client/src/snapview-client-messages.h b/xlators/features/snapview-client/src/snapview-client-messages.h index d5215dcecf9..f6b8f48ef72 100644 --- a/xlators/features/snapview-client/src/snapview-client-messages.h +++ b/xlators/features/snapview-client/src/snapview-client-messages.h @@ -31,6 +31,8 @@ GLFS_MSGID(SNAPVIEW_CLIENT, SVC_MSG_NO_MEMORY, SVC_MSG_MEM_ACNT_FAILED, SVC_MSG_XLATOR_CHILDREN_WRONG, SVC_MSG_NORMAL_GRAPH_LOOKUP_FAIL, SVC_MSG_SNAPVIEW_GRAPH_LOOKUP_FAIL, SVC_MSG_OPENDIR_SPECIAL_DIR, SVC_MSG_RENAME_SNAPSHOT_ENTRY, SVC_MSG_LINK_SNAPSHOT_ENTRY, - SVC_MSG_ENTRY_POINT_SPECIAL_DIR); + SVC_MSG_COPY_ENTRY_POINT_FAILED, SVC_MSG_ENTRY_POINT_SPECIAL_DIR, + SVC_MSG_STR_LEN, SVC_MSG_INVALID_ENTRY_POINT, SVC_MSG_NULL_PRIV, + SVC_MSG_PRIV_DESTROY_FAILED); #endif /* !_SNAPVIEW_CLIENT_MESSAGES_H_ */ |