Date: Fri, 11 May 2007 08:20:38 -0500 From: Eric Anderson <anderson@freebsd.org> To: Lukas Ertl <le@freebsd.org> Cc: freebsd-current@freebsd.org, Daniel Eriksson <daniel_k_eriksson@telia.com> Subject: Re: growfs reporting negative sectors beyond 2^31 Message-ID: <46446DA6.8060801@freebsd.org> In-Reply-To: <4642E481.9070109@freebsd.org> References: <4F9C9299A10AE74E89EA580D14AA10A61A172F@royal64.emp.zapto.org> <4642E481.9070109@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------060201040901000602080506 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 05/10/07 04:23, Lukas Ertl wrote: > Daniel Eriksson wrote: >> While playing around with growfs I noticed that it prints the sector >> numbers for the super-block backups on sectors beyond 2^31 as negative >> numbers. I ran into this issue while trying to grow a 1TB filesystem to >> a 1.5TB filesystem. >> >> Example: >> [snip] >> 2142948448, 2143324800, 2143701152, 2144077504, 2144453856, 2144830208, >> 2145206560, 2145582912, 2145959264, >> 2146335616, 2146711968, 2147088320, 2147464672, -2147126272, >> -2146749920, -2146373568, -2145997216, -2145620864, >> -2145244512, -2144868160, -2144491808, -2144115456, -2143739104, >> -2143362752, -2142986400, -2142610048, -2142233696, >> [snip] >> >> Is this something to worry about as far as file system consistency goes, >> or is it just a cosmetic problem with the printout? > > It's just cosmetic, as far as I can see. > > cheers, > le > I think this patch fixes it. http://www.googlebit.com/freebsd/patches/growfs-bigdisk-patch Eric --------------060201040901000602080506 Content-Type: text/plain; name="growfs-bigdisk-patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="growfs-bigdisk-patch" Index: sbin/growfs/growfs.c =================================================================== RCS file: /alt/ncvs/src/sbin/growfs/growfs.c,v retrieving revision 1.25 diff -u -r1.25 growfs.c --- sbin/growfs/growfs.c 17 Jul 2006 20:48:36 -0000 1.25 +++ sbin/growfs/growfs.c 11 May 2007 13:17:43 -0000 @@ -259,8 +259,8 @@ */ for (cylno = osblock.fs_ncg; cylno < sblock.fs_ncg; cylno++) { initcg(cylno, utime, fso, Nflag); - j = sprintf(tmpbuf, " %d%s", - (int)fsbtodb(&sblock, cgsblock(&sblock, cylno)), + j = sprintf(tmpbuf, " %jd%s", + (intmax_t)fsbtodb(&sblock, cgsblock(&sblock, cylno)), cylno < (sblock.fs_ncg-1) ? "," : "" ); if (i + j >= width) { printf("\n"); --------------060201040901000602080506--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46446DA6.8060801>