debian-forge/osbuild/util
David Rheinsberg 18c69d2620 util/fscache: add cachedir-tag support
The cachedir-tag specification defines how to mark directories as
cache-directories. This allows tools like `tar` to ignore those
directories if desired (e.g., see `tar --ignore-caches`). This is very
useful to avoid huge cache-directories in backups and remote
synchronizations.

The spec simply defines a file called `CACHEDIR.TAG` with the first 43
bytes to be: "Signature: 8a477f597d28d172789f06886806bc55" (which
happens to be the MD5-checksum of ".IsCacheDirectory". Further content
is to be ignored. Any such files marks the directory in question as a
cache-directory.

The cachedir-tag has been successfully deployed in tools like `cargo`
and `VLC`, and is currently discussed to be implemented in Firefox. More
information is available here: https://bford.info/cachedir/

Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
2022-12-20 16:56:43 +01:00
..
__init__.py util: mark as module 2020-04-21 17:00:04 +02:00
checksum.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
ctx.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
fscache.py util/fscache: add cachedir-tag support 2022-12-20 16:56:43 +01:00
jsoncomm.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
linux.py linux: add Libc accessor with renameat2(2) 2022-12-06 09:48:38 +01:00
lorax.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
lvm2.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
mnt.py objectstore, move {u,}mount methods to util.mnt 2022-08-13 19:21:52 +01:00
osrelease.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
ostree.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
parsing.py util: add helper to parse size strings 2022-12-09 12:03:40 +01:00
path.py util/path: new clamp mtime function 2022-12-15 13:10:35 +00:00
pe32p.py util: add module to parse PE32+ files 2022-11-14 20:10:59 +01:00
rhsm.py util: fix typo in get_consumer_secrets 2022-12-09 21:46:43 +01:00
rmrf.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
selinux.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
term.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
types.py osbuild: fix optional-types 2022-07-13 17:31:37 +02:00
udev.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00