Selaa lähdekoodia

Merge pull request #4767 from lamyj/1.1-maint-missing_st_birthtime

Backport #4763 to 1.1-maint (FUSE mount missing st_birthtime)
TW 5 vuotta sitten
vanhempi
sitoutus
3d012c1dd4
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/borg/fuse.py

+ 2 - 0
src/borg/fuse.py

@@ -541,10 +541,12 @@ class FuseOperations(llfuse.Operations):
             entry.st_mtime_ns = mtime_ns
             entry.st_atime_ns = item.get('atime', mtime_ns)
             entry.st_ctime_ns = item.get('ctime', mtime_ns)
+            entry.st_birthtime_ns = item.get('birthtime', mtime_ns)
         else:
             entry.st_mtime = mtime_ns / 1e9
             entry.st_atime = item.get('atime', mtime_ns) / 1e9
             entry.st_ctime = item.get('ctime', mtime_ns) / 1e9
+            entry.st_birthtime = item.get('birthtime', mtime_ns) / 1e9
         return entry
 
     def listxattr(self, inode, ctx=None):