core-admin/qubes/storage
Rusty Bird d7478d128b
storage/reflink: document hardcoded sizeof(int) for FICLONE
One alternative would look like

    import ctypes
    sizeof_int = ctypes.sizeof(ctypes.c_int)
    FICLONE = (1073741824 % 256**sizeof_int) | 37897 | (sizeof_int << 16)

but, even if the above really(?) is a 100% correct Python port of

    $ echo FICLONE | cpp -include linux/fs.h | tail -n 1

it still seems more likely that the ctypes package is somehow buggy
somewhere than for Qubes storage to run on an exotic architecture with
non 32 bit ints (in the foreseeable future).

So just document the baked in assumption.
2019-12-03 18:21:54 +00:00
..
__init__.py Correct inconsistent behavior on unavailable usage data 2019-11-15 20:01:43 +01:00
file.py storage/file: get volume size from the actual image file size 2019-10-31 21:53:35 +01:00
kernels.py storage/kernels: fix listing volumes 2019-11-10 01:14:34 +01:00
lvm.py Added admin.pool.UsageDetails API method 2019-10-23 03:04:30 +02:00
README.md Merge remote-tracking branch 'marmarek/master' into core3-devel 2016-03-03 01:13:51 +01:00
reflink.py storage/reflink: document hardcoded sizeof(int) for FICLONE 2019-12-03 18:21:54 +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)