From 195548f55b09bf71db92929b7b734407b863093c Mon Sep 17 00:00:00 2001 From: Ashish Pandey Date: Thu, 26 Nov 2015 14:35:49 +0530 Subject: storage/posix: Implement .unlink directory Problem: For EC volume, If a file descriptor is open and file has been unlinked, any further write on that fd will fail. When a write request comes, EC internally reads some blocks using anonymous fd. This read will fail as the file has already been unlinked. Solution: To solve this issue, we are using .unlink directory to keep track of unlinked file. If a file is to be unlinked while its fd is open, move this to .unlink directory and unlink it from .glusterfs and real path. Once all the fd will be closed, remove this entry form .unlink directory. master - http://review.gluster.org/#/c/12816/ Change-Id: I8344edb0d340bdb883dc46458c16edbc336916b9 BUG: 1291557 Signed-off-by: Ashish Pandey Reviewed-on: http://review.gluster.org/12968 Reviewed-by: Pranith Kumar Karampuri Tested-by: Pranith Kumar Karampuri Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System --- tests/include.rc | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/include.rc') diff --git a/tests/include.rc b/tests/include.rc index 8b5dea9b013..495db1b0ca6 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -70,6 +70,7 @@ UMOUNT_TIMEOUT=5 CONFIG_UPDATE_TIMEOUT=5 AUTH_REFRESH_INTERVAL=10 GRAPH_SWITCH_TIMEOUT=10 +UNLINK_TIMEOUT=5 LOGDIR=$(gluster --print-logdir) -- cgit