diff options
author | Kim Alvefur <zash@zash.se> | 2023-07-21 18:28:16 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-07-21 18:28:16 +0200 |
commit | 1312963f73ba911122597b2b84c0d41eaff50d94 (patch) | |
tree | 6e27f9548c8de3185d1aa19b75621086af8eb312 /util/datamanager.lua | |
parent | 1d955bd1f310d0d5ce3cfcf1906771dfd8bec96d (diff) | |
download | prosody-1312963f73ba911122597b2b84c0d41eaff50d94.tar.gz prosody-1312963f73ba911122597b2b84c0d41eaff50d94.zip |
util.datamanager: Disable blockwise removal
In desperate need of tests
Diffstat (limited to 'util/datamanager.lua')
-rw-r--r-- | util/datamanager.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua index 8f925fd4..35ce09a4 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -32,6 +32,7 @@ local path_separator = assert ( package.config:match ( "^([^\n]+)" ) , "package. local prosody = prosody; +--luacheck: ignore 211/blocksize 211/remove_blocks local blocksize = 0x1000; local raw_mkdir = lfs.mkdir; local atomic_append; @@ -41,7 +42,7 @@ pcall(function() local pposix = require "prosody.util.pposix"; raw_mkdir = pposix.mkdir or raw_mkdir; -- Doesn't trample on umask atomic_append = pposix.atomic_append; - remove_blocks = pposix.remove_blocks; + -- remove_blocks = pposix.remove_blocks; ENOENT = pposix.ENOENT or ENOENT; end); @@ -583,6 +584,7 @@ local function list_shift(username, host, datastore, trim_to) return true; end + --[[ if remove_blocks then local f, err = io_open(list_filename, "r+"); if not f then @@ -620,6 +622,7 @@ local function list_shift(username, host, datastore, trim_to) end end end + --]] local r, err = io_open(list_filename, "r"); if not r then |