summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r--xlators/storage/posix/src/posix.h8
1 files changed, 8 insertions, 0 deletions
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;
};