core-admin/qubes/storage
Rusty Bird c988a2218b
utils: take tweaked helper functions from storage/reflink
replace_file(), rename_file(), and remove_file() now have optional
'logger' and 'log_level' (defaulting to DEBUG) arguments.

replace_file() now has a required 'permissions' and an optional
'close_on_success' (defaulting to True) argument. Also, it doesn't
create any directories; and in case of an exception, the tempfile is
removed even when closing it raises another exception.

remove_file() now returns a value: True if the file was removed, or
False if it already didn't exist.

(fsync_path() is unchanged.)

!!! After cherry-picking for release4.0, consider a fixup !!!
!!! adding 'import qubes.utils' to storage/reflink there  !!!
2021-02-10 12:47:09 +00:00
..
__init__.py Adjust code for possibly coroutine Volume.export() and Volume.export_end() 2020-07-08 12:50:10 +02:00
callback.json.example storage/callback: some callbacks added & removed 2020-07-29 17:06:23 +02:00
callback.py storage/callback: remove the "word of caution" 2020-08-01 10:04:27 +02:00
file.py Fix line lengths 2020-11-26 13:40:07 -05:00
kernels.py storage: clean up __init__() of Pool() and subclasses 2020-06-22 14:03:21 +00:00
lvm.py storage/lvm: make the "hack" work with CallbackPool instances 2020-07-16 14:31:04 +02:00
README.md Merge remote-tracking branch 'marmarek/master' into core3-devel 2016-03-03 01:13:51 +01:00
reflink.py utils: take tweaked helper functions from storage/reflink 2021-02-10 12:47:09 +00:00

WNI File storage

Before v3.1 there existed a draft wni storage. You can find it in the git history

(it was in /core/storage directory, now gone)