[patch 3/6] reiser4progs: mkfs: Don't ask for confirmation to work under linux-3.X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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)) {

[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux