Support Linux 3.x by mkfs.reiser4 Signed-off-by: Edward Shishkin <edward.shishkin@xxxxxxxxx> --- progs/mkfs/mkfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- reiser4progs-1.0.7.orig/progs/mkfs/mkfs.c +++ reiser4progs-1.0.7/progs/mkfs/mkfs.c @@ -300,15 +300,15 @@ int main(int argc, char *argv[]) { if (!(flags & BF_FORCE)) { if (aal_strncmp(sysinfo.release, "2.5", 3) && - aal_strncmp(sysinfo.release, "2.6", 3)) - { + aal_strncmp(sysinfo.release, "2.6", 3) && + (aal_strncmp(sysinfo.release, "3.", 2) || + (sysinfo.release[2] < '0' && (sysinfo.release[2] > '9')))){ aal_warn("%s %s is detected. Reiser4 does not " "support such a platform. Use -f to " "force over.", sysinfo.sysname, sysinfo.release); goto error_free_libreiser4; } - } if (!(flags & BF_YES)) {