From bf7b4623821c8ffe8070297949e18dc6e3757e9c Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Thu, 9 Apr 2009 07:59:21 -0700 Subject: posix_unlink: make unlinking in background configurable through volume spec file Signed-off-by: Anand V. Avati --- xlators/storage/posix/src/posix.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xlators/storage/posix/src/posix.h') diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index 88860a57116..ed6b46430dd 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -93,6 +93,14 @@ struct posix_private { gf_boolean_t span_devices; +/* + decide whether posix_unlink does open (file), unlink (file), close (fd) + instead of just unlink (file). with the former approach there is no lockout + of access to parent directory during removal of very large files for the + entire duration of freeing of data blocks. +*/ + gf_boolean_t background_unlink; + int num_devices_to_span; dev_t *st_device; }; -- cgit