chiark / gitweb /
machined: beef up machined image listing with creation/modification times of subvolumes
[elogind.git] / src / import / import-gpt.c
index 503f1e64cf6121e49c9504474e5048a176eb3d5f..a81efa2bba46489abe165abfdfc822274342fd33 100644 (file)
@@ -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);
                 ut[1] = ut[0];
 
                 (void) futimens(f->disk_fd, ut);
+
+                fd_setcrtime(f->disk_fd, f->mtime);
         }
 
         if (fstat(f->disk_fd, &st) < 0) {
         }
 
         if (fstat(f->disk_fd, &st) < 0) {