diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-25 03:19:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-25 03:19:19 +0100 |
commit | 10f9c75519671e7c7ab8993b54fe22da7c2d0c38 (patch) | |
tree | 78777a123c0261f892af164581884f8a07756203 /src/import/import-gpt.c | |
parent | 5fa89b2cb366d533e56a9b7a9ce548480776f973 (diff) |
machined: beef up machined image listing with creation/modification times of subvolumes
We make use of the btrfs subvol crtime for this, and for gpt images of a
manually managed xattr, if we can.
Diffstat (limited to 'src/import/import-gpt.c')
-rw-r--r-- | src/import/import-gpt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/import/import-gpt.c b/src/import/import-gpt.c index 503f1e64cf..a81efa2bba 100644 --- a/src/import/import-gpt.c +++ b/src/import/import-gpt.c @@ -171,6 +171,8 @@ static void gpt_import_curl_on_finished(CurlGlue *g, CURL *curl, CURLcode result ut[1] = ut[0]; (void) futimens(f->disk_fd, ut); + + fd_setcrtime(f->disk_fd, f->mtime); } if (fstat(f->disk_fd, &st) < 0) { |