machined: beef up machined image listing with creation/modification times of subvolumes

System Internals / systemd - Lennart Poettering [poettering.net] - 24 December 2014 20:19 UTC

We make use of the btrfs subvol crtime for this, and for gpt images of a manually managed xattr, if we can.

10f9c75 machined: beef up machined image listing with creation/modification times of subvolumes
Makefile.am | 1 +
src/import/import-dkr.c | 2 +-
src/import/import-gpt.c | 2 ++
src/machine/image-dbus.c | 64 ++++++++++++++++++++++++++++++---
src/machine/image.c | 33 ++++++++---------
src/machine/image.h | 2 +-
src/machine/machinectl.c | 53 +++++++++++++++++++++-------
src/machine/machined-dbus.c | 8 +++--
src/shared/btrfs-ctree.h | 68 +++++++++++++++++++++++++++++++++++
src/shared/btrfs-util.c | 82 +++++++++++++++++++++++++++++++++++++++++--
src/shared/btrfs-util.h | 19 ++++++++--
src/shared/missing.h | 8 +++++
src/shared/util.c | 55 ++++++++++++++++++++++-------
src/shared/util.h | 3 ++
src/test/test-btrfs.c | 25 ++++++++++++-
15 files changed, 370 insertions(+), 55 deletions(-)

Upstream: github.com


  • Share