reiserfs-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 3/6] reiser4progs: mkfs: Don't ask for confirmation to work under linux-3.X
@ 2013-05-03 20:39 Edward Shishkin
  0 siblings, 0 replies; only message in thread
From: Edward Shishkin @ 2013-05-03 20:39 UTC (permalink / raw)
  To: ReiserFS Development mailing list

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: reiser4progs-mkfs-support-linux-3.x.patch --]
[-- Type: text/x-patch, Size: 853 bytes --]

Support Linux 3.x by mkfs.reiser4

Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
---
 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)) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-03 20:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-03 20:39 [patch 3/6] reiser4progs: mkfs: Don't ask for confirmation to work under linux-3.X Edward Shishkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).