summaryrefslogtreecommitdiff
path: root/src/home/homed-home-bus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-08-17 20:37:04 +0200
committerLennart Poettering <lennart@poettering.net>2020-08-25 18:18:46 +0200
commit565ac8b1c85acb9550d0645f65ac63ec9a255ffd (patch)
treebbf15d9cf7a892aa7b2f22200bde1d8a5f43e95d /src/home/homed-home-bus.c
parent05c8e12c4729a8965079aed63e82799d3023c6a8 (diff)
downloadsystemd-565ac8b1c85acb9550d0645f65ac63ec9a255ffd.tar.gz
homed: mark LUKS loopback file as "dirty" via xattr when in use
Let's track the "dirty" state of a home directory backed by a LUKS volume by setting a new xattr "home.home-dirty" on the backing file whenever it is in use. This allows us to later user this information to show a home directory as "dirty". This is useful because we trim/allocate on log-out, and if we don't do that a home directory will be larger than necessary. This fact is something we should communicate to the admin. The idea is that when an admin sees a user with a "dirty" home directory they can ask them to log in, to clean up the dirty state, and thus trim everything again.
Diffstat (limited to 'src/home/homed-home-bus.c')
0 files changed, 0 insertions, 0 deletions