Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package xfs_undelete for openSUSE:Factory 
checked in at 2024-08-08 10:58:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xfs_undelete (Old)
 and      /work/SRC/openSUSE:Factory/.xfs_undelete.new.7232 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xfs_undelete"

Thu Aug  8 10:58:33 2024 rev:3 rq:1192355 version:15.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/xfs_undelete/xfs_undelete.changes        
2024-04-12 17:37:35.225944048 +0200
+++ /work/SRC/openSUSE:Factory/.xfs_undelete.new.7232/xfs_undelete.changes      
2024-08-08 10:59:06.241360629 +0200
@@ -1,0 +2,6 @@
+Mon Jul 29 09:39:11 UTC 2024 - Manfred Schwarb <[email protected]>
+
+- update to version 15.0:
+  * added support for the XFSv5 bigtime feature
+
+-------------------------------------------------------------------

Old:
----
  xfs_undelete-14.0.tar.gz

New:
----
  xfs_undelete-15.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xfs_undelete.spec ++++++
--- /var/tmp/diff_new_pack.nmsKgq/_old  2024-08-08 10:59:06.677378554 +0200
+++ /var/tmp/diff_new_pack.nmsKgq/_new  2024-08-08 10:59:06.681378718 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           xfs_undelete
-Version:        14.0
+Version:        15.0
 Release:        0
 Summary:        An undelete tool for the XFS filesystem
 License:        GPL-3.0-only

++++++ xfs_undelete-14.0.tar.gz -> xfs_undelete-15.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xfs_undelete-14.0/xfs_undelete 
new/xfs_undelete-15.0/xfs_undelete
--- old/xfs_undelete-14.0/xfs_undelete  2024-03-18 20:40:14.000000000 +0100
+++ new/xfs_undelete-15.0/xfs_undelete  2024-07-20 18:27:19.000000000 +0200
@@ -248,8 +248,19 @@
                if {[string range $data $boffset $boffset+3] ne "IN\0\0"} 
continue
 
                ## Get ctime and mtime.
-               binary scan [string range $data $boffset+48 $boffset+51] Iu 
ctime
-               binary scan [string range $data $boffset+40 $boffset+43] Iu 
mtime
+               if {$::bigtime} {
+                       ## Big timestamps.
+                       binary scan [string range $data $boffset+48 
$boffset+55] Wu bigctime
+                       binary scan [string range $data $boffset+40 
$boffset+47] Wu bigmtime
+
+                       ## Calculate legacy ctime and mtime from big timestamps.
+                       set ctime [expr {$bigctime/10**9-2**31}]
+                       set mtime [expr {$bigmtime/10**9-2**31}]
+               } else {
+                       ## Legacy timestamps. Use the seconds value directly.
+                       binary scan [string range $data $boffset+48 
$boffset+51] Iu ctime
+                       binary scan [string range $data $boffset+40 
$boffset+43] Iu mtime
+               }
 
                ## Ignore files deleted outside of the given time range.
                if {$ctime<[lindex $::ctimes 0] || $ctime>[lindex $::ctimes 1]} 
continue
@@ -699,12 +710,21 @@
 binary scan [string range $data   8  15] Wu dblocks
 binary scan [string range $data  84  87] Iu agblocks
 binary scan [string range $data  88  91] Iu agcount
+binary scan [string range $data 100 101] Su versionnum
 binary scan [string range $data 102 103] Su sectsize
 binary scan [string range $data 104 105] Su inodesize
 binary scan [string range $data 106 107] Su inopblock
 binary scan [string index $data     124] cu agblklog
 binary scan [string range $data 128 136] Wu icount
 
+## Check extra features of XFS version 5.
+if {[string index [format "%04x" $versionnum] 3] eq "5"} {
+       binary scan [string range $data 216 219] Iu featuresincompat
+       set bigtime [expr {$featuresincompat&0x08?true:false}]
+} else {
+       set bigtime false
+}
+
 ## Set message formats.
 set skformat "Skipping  inode %[string length $dblocks]d (%3.0f%%)\r"
 set cmformat "Checking  inode %[string length $dblocks]d (%3.0f%%)\r"

Reply via email to