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);
                }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to