From 056e3e7a56a24291c6f07b9ef572ee8c8ff7c700 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 30 Nov 2009 01:18:09 +0000 Subject: trash_unlink fop added Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati 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 --- xlators/features/trash/src/trash.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xlators/features/trash/src/trash.h') diff --git a/xlators/features/trash/src/trash.h b/xlators/features/trash/src/trash.h index 7f0e13085b1..48d5196bd2d 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__ */ -- cgit