From 886021a31bdac83c2124d08d64b81f22d82039d6 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Fri, 7 Jun 2013 15:03:46 +0530 Subject: glusterd: Ignore directories matching *.tmp in store Backport of http://review.gluster.org/5177 store being glusterd's persistent store under /var/lib/glusterd/ Change-Id: I1c01a09a8ce4a73ea612f05e7f14d4ab39ad1628 BUG: 971796 Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.org/5212 Reviewed-by: Xavier Hernandez Reviewed-by: Niels de Vos Tested-by: Gluster Build System --- xlators/mgmt/glusterd/src/glusterd-store.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/mgmt') diff --git a/xlators/mgmt/glusterd/src/glusterd-store.h b/xlators/mgmt/glusterd/src/glusterd-store.h index 68977dd9ce5..2a453772262 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.h +++ b/xlators/mgmt/glusterd/src/glusterd-store.h @@ -74,6 +74,7 @@ typedef enum glusterd_store_ver_ac_{ if (dir) {\ entry = readdir (dir);\ while (entry && (!strcmp (entry->d_name, ".") ||\ + !fnmatch ("*.tmp", entry->d_name, 0) ||\ !strcmp (entry->d_name, ".."))) {\ entry = readdir (dir);\ }\ -- cgit