On Wed, Dec 04, 2024 at 01:24:39PM +0100, Michael Biebl wrote:
> Patching fsarchiver to use -E revision=0 (or rather try both as I can't
> assume I have a new e2fsprogs) could be an option if someone provided a
> patch. Are you willing to work on such a patch?

This patch compiles, but has not been tested.

"It builds, ship it!"  :-)

                                        - Ted

--- src/fs_ext2.c.orig  2024-12-04 13:54:30.230764953 -0500
+++ src/fs_ext2.c       2024-12-04 13:58:02.545015510 -0500
@@ -349,7 +349,10 @@
     strlcatf(options, sizeof(options), " -I %ld ", (long)devisize);
 
     // filesystem revision: good-old-rev or dynamic
-    strlcatf(options, sizeof(options), " -r %d ", (int)fsextrevision);
+    if (e2fstoolsver<=PROGVER(1,47,2))
+        strlcatf(options, sizeof(options), " -r %d ", (int)fsextrevision);
+    else
+        strlcatf(options, sizeof(options), " -E revision=%d ", 
(int)fsextrevision);
 
     // if extfs revision is dynamic and there are features in the list
     if (fsextrevision!=EXT2_GOOD_OLD_REV && strlist_count(&strfeatures)>0)

Reply via email to