diff options
author | Jiffin Tony Thottan <jthottan@redhat.com> | 2015-03-25 15:04:19 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-04-24 11:07:25 -0700 |
commit | b72bc58ecc108a2fddbdb6f606cd86a57ca5a68f (patch) | |
tree | fbc1af361c628aa9cead9a2a979fbe2faadcf6d0 /xlators/features/trash/src/trash.h | |
parent | 4973d0ea608147ff186f13ab51090f59986f1c9f (diff) |
features/trash : Notify CTR translator if an unlink happens to a file
This implementation is same as the posix_unlink_cbk() where CTR sends
a request during a unlink to send the number of links to the inode
and posix obliges sending it using the unwind xdata dict.
For Trash xlator a unlink is stat + mkdir(if parent is not present)
+ rename. And hence this is handled in trash_unlink_rename_cbk().
Change-Id: I402e83567b88e3c9fe171379693c82937af567f9
BUG: 1205545
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
Signed-off-by: Joseph Fernandes <josferna@redhat.com>
Signed-off-by: Anoop C S <achiraya@redhat.com>
Reviewed-on: http://review.gluster.org/9989
Tested-by: NetBSD Build System
Tested-by: Joseph Fernandes
Reviewed-by: Joseph Fernandes
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/trash/src/trash.h')
-rw-r--r-- | xlators/features/trash/src/trash.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/trash/src/trash.h b/xlators/features/trash/src/trash.h index 3e03edf5474..37d8f7b3d85 100644 --- a/xlators/features/trash/src/trash.h +++ b/xlators/features/trash/src/trash.h @@ -50,6 +50,7 @@ struct trash_struct { int32_t loop_count; struct iatt preparent; struct iatt postparent; + gf_boolean_t ctr_link_count_req; }; typedef struct trash_struct trash_local_t; |