From f9b6174a7f5eb6475ca9780b062bfb3ff1132b2d Mon Sep 17 00:00:00 2001 From: Shreyas Siravara Date: Mon, 10 Apr 2017 12:36:21 -0700 Subject: posix: Add option to disable nftw() based deletes when purging the landfill directory Summary: - We may have found an issue where certain directories were being moved into .landfill and then being quickly purged via nftw(). - We would like to have an emergency option to disable these purges. > Reviewed-on: https://review.gluster.org/18253 > Reviewed-by: Shreyas Siravara Fixes #371 Change-Id: I90b54c535930c1ca2925a928728199b6b80eadd9 Signed-off-by: Amar Tumballi --- xlators/storage/posix/src/posix-entry-ops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/storage/posix/src/posix-entry-ops.c') diff --git a/xlators/storage/posix/src/posix-entry-ops.c b/xlators/storage/posix/src/posix-entry-ops.c index e7658e46543..9d336ee5f60 100644 --- a/xlators/storage/posix/src/posix-entry-ops.c +++ b/xlators/storage/posix/src/posix-entry-ops.c @@ -1281,6 +1281,8 @@ posix_rmdir (call_frame_t *frame, xlator_t *this, } else { (void) snprintf (tmp_path, sizeof(tmp_path), "%s/%s", priv->trash_path, gfid_str); + gf_msg_debug (this->name, 0, + "Moving %s to %s", real_path, tmp_path); op_ret = sys_rename (real_path, tmp_path); pthread_cond_signal (&priv->janitor_cond); } -- cgit