diff options
author | Raghavendra G <raghavendra@zresearch.com> | 2009-04-09 07:59:21 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-09 20:33:17 +0530 |
commit | bf7b4623821c8ffe8070297949e18dc6e3757e9c (patch) | |
tree | 4e29b5e4dd165bb8d87a0925bf83e6ef105300bf /xlators/storage/posix/src/posix.h | |
parent | fb034ba3036fadc7cf35edc5cae7481149a67ca0 (diff) |
posix_unlink: make unlinking in background configurable through volume spec file
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 8 |
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; }; |