The btrfs subvol ctime is conceptually what we call the images "mtime",
hence expose it like that, since we get it anyway these days.
*ret = (BtrfsSubvolInfo) {
.subvol_id = info.treeid,
.otime = info.otime.sec * USEC_PER_SEC + (info.otime.nsec / NSEC_PER_USEC),
+ .ctime = info.ctime.sec * USEC_PER_SEC + (info.ctime.nsec / NSEC_PER_USEC),
.read_only = FLAGS_SET(info.flags, BTRFS_SUBVOL_RDONLY),
};
typedef struct BtrfsSubvolInfo {
uint64_t subvol_id;
- usec_t otime;
+ usec_t otime; /* creation time */
+ usec_t ctime; /* change time */
sd_id128_t uuid;
sd_id128_t parent_uuid;
filename,
info.read_only || read_only,
info.otime,
- 0,
+ info.ctime,
ret);
if (r < 0)
return r;