Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 2013 20:02:19 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r247900 - stable/9/sbin/tunefs
Message-ID:  <201303062002.r26K2PrL050857@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Wed Mar  6 20:02:19 2013
New Revision: 247900
URL: http://svnweb.freebsd.org/changeset/base/247900

Log:
  MFC r247399:
  The .journal file needs to reside on the ROOTINO which must not extend
  beyond direct blocks. A typo caused this check to fail.

Modified:
  stable/9/sbin/tunefs/tunefs.c
Directory Properties:
  stable/9/sbin/tunefs/   (props changed)

Modified: stable/9/sbin/tunefs/tunefs.c
==============================================================================
--- stable/9/sbin/tunefs/tunefs.c	Wed Mar  6 19:59:42 2013	(r247899)
+++ stable/9/sbin/tunefs/tunefs.c	Wed Mar  6 20:02:19 2013	(r247900)
@@ -672,7 +672,7 @@ journal_findfile(void)
 				return (ino);
 		}
 	} else {
-		if ((off_t)dp1->di_size >= lblktosize(&sblock, NDADDR)) {
+		if ((off_t)dp2->di_size >= lblktosize(&sblock, NDADDR)) {
 			warnx("ROOTINO extends beyond direct blocks.");
 			return (-1);
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303062002.r26K2PrL050857>