Growing UFS beyond 2 TB

Arne Wörner arne_woerner at yahoo.com
Fri May 25 05:07:42 UTC 2007


--- Nick Gustas <freebsd-fs at tychl.net> wrote:

> Richard Noorlandt wrote:
> > I have been on this list for only a few days now, so I don't know 
> > anything
> > about these growfs patches. But I'll guess I can find them somewhere. 
> > Unless
> > they're scattered all over the place ;-)
> >
> > I run 6.2-RELEASE by the way. What's the easiest way to get the right 
> > growfs
> > version with the necessary patches?
> >
> >
> > Meddling with a FS that has data on it is always scary, no matter what 
> > tools
> > you use. But your detailed description helps a lot. So once I updated 
> > growfs
> > I'll try this approach myself.
> >
> > Best regards,
> >
> > Richard
> 
> 
> 
> I did a diff between the growfs.c from a 6.2-STABLE machine and what I 
> have now from list patches and GCC error fixing.  *WARNING* it appears 
> to work, and compiles clean, but doesn't actually make a correct 
> filesystem! I don't know enough C to get past this, though I suspect 
> it's close and some study might get me there.
> 
> http://masq.tychl.net/growfs.patch
>
This look wrong, too:
@@ -417,7 +417,7 @@
 		acg.cg_initediblk = 0;
 		acg.cg_old_btotoff = start;
 		acg.cg_old_boff = acg.cg_old_btotoff +
-		    sblock.fs_old_cpg * sizeof(int32_t);
+		    sblock.fs_old_cpg * sizeof(int64_t);
 		acg.cg_iusedoff = acg.cg_old_boff +
 		    sblock.fs_old_cpg * sizeof(u_int16_t);
 	}
Where have u found that?

-Arne


       
____________________________________________________________________________________You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html


More information about the freebsd-fs mailing list