diff options
author | Amar Tumballi <amar@gluster.com> | 2009-11-30 01:18:09 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-12-01 10:02:52 -0800 |
commit | 056e3e7a56a24291c6f07b9ef572ee8c8ff7c700 (patch) | |
tree | cf395d9d7a1e10f928559cca29ea5523e6535e71 /xlators/features/trash/src/trash.h | |
parent | 936001b147a3adcf9731d02e8f2fb62e5e50caf4 (diff) |
trash_unlink fop added
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 142 (enhance features/trash translator so it can work on client side too..)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=142
Diffstat (limited to 'xlators/features/trash/src/trash.h')
-rw-r--r-- | xlators/features/trash/src/trash.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xlators/features/trash/src/trash.h b/xlators/features/trash/src/trash.h index 7f0e13085..48d5196bd 100644 --- a/xlators/features/trash/src/trash.h +++ b/xlators/features/trash/src/trash.h @@ -77,4 +77,13 @@ struct trash_priv { }; typedef struct trash_priv trash_private_t; +#define TRASH_STACK_UNWIND(frame, params ...) do { \ + trash_local_t *__local = NULL; \ + __local = frame->local; \ + frame->local = NULL; \ + STACK_UNWIND (frame, params); \ + trash_local_wipe (__local); \ + } while (0) + + #endif /* __TRASH_H__ */ |