On Fri, 2010-06-04 at 12:20 -0700, Sandon Van Ness wrote:

> Thanks a ton for this! I formatted my 32+ TiB partition without any
> issues and the fsck ran ok as well. Just to test I went ahead and tried
> creating and fscking a 511 TiB sparse file so it was just under 512TiB
> and the mkfs seemed to run ok but the fsck failed:

Try the attached patch.

Shaggy
-- 
Dave Kleikamp
IBM Linux Technology Center
Index: fsck/fsckmeta.c
===================================================================
RCS file: /cvsroot/jfs/jfsutils/fsck/fsckmeta.c,v
retrieving revision 1.26
diff -u -p -r1.26 fsckmeta.c
--- fsck/fsckmeta.c	5 Jun 2006 19:31:40 -0000	1.26
+++ fsck/fsckmeta.c	4 Jun 2010 20:15:08 -0000
@@ -2056,7 +2056,8 @@ int validate_super(int which_super)
 				    50;
 				/* size in aggregate blocks */
 				fsck_blkmap_size_blks =
-				    (fsck_blkmap_size_pages << L2PSIZE) /
+				    ((int64_t)fsck_blkmap_size_pages <<
+				     L2PSIZE) /
 				    sb_ptr->s_bsize;
 				/*
 				 * aggregate block offset of the fsck
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to