Skip to content

Commit e276b0a

Browse files
authored
Merge pull request #154 from mbiebl/e2fsprogs_1-47-2_compat
Provide compatibility with e2fsprogs >= 1.47.2
2 parents a6900a6 + af7657d commit e276b0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/fs_ext2.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,10 @@ int extfs_mkfs(cdico *d, char *partition, int extfstype, char *fsoptions, char *
353353
strlcatf(options, sizeof(options), " -I %ld ", (long)devisize);
354354

355355
// filesystem revision: good-old-rev or dynamic
356-
strlcatf(options, sizeof(options), " -r %d ", (int)fsextrevision);
356+
if (e2fstoolsver<PROGVER(1,47,2))
357+
strlcatf(options, sizeof(options), " -r %d ", (int)fsextrevision);
358+
else
359+
strlcatf(options, sizeof(options), " -E revision=%d ", (int)fsextrevision);
357360

358361
// if extfs revision is dynamic and there are features in the list
359362
if (fsextrevision!=EXT2_GOOD_OLD_REV && strlist_count(&strfeatures)>0)

0 commit comments

Comments
 (0)