Software /
code /
prosody
Diff
util/datamanager.lua @ 13234:c886ea087b38
util.datamanager: Disable blockwise removal
In desperate need of tests
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 21 Jul 2023 18:28:16 +0200 |
parent | 13231:6a11d92ae436 |
child | 13235:dbd7a6b09ada |
line wrap: on
line diff
--- a/util/datamanager.lua Fri Jul 21 22:49:01 2023 +0200 +++ b/util/datamanager.lua Fri Jul 21 18:28:16 2023 +0200 @@ -32,6 +32,7 @@ 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 @@ 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 @@ return true; end + --[[ if remove_blocks then local f, err = io_open(list_filename, "r+"); if not f then @@ -620,6 +622,7 @@ end end end + --]] local r, err = io_open(list_filename, "r"); if not r then