xfs
[Top] [All Lists]

Re: [PATCH] xfs_io: fix comment in bmap.c

To: Christoph Hellwig <hch@xxxxxx>
Subject: Re: [PATCH] xfs_io: fix comment in bmap.c
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Sat, 24 Jan 2009 09:10:54 -0600
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20090124143938.GA31680@xxxxxx>
References: <20090124143938.GA31680@xxxxxx>
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
Christoph Hellwig wrote:
> Based on a patch from Tomasz Majkowski <moosh009@xxxxxxxxx> in bugzilla
> #785.
> 

Heh, I can ACK this one :)

-Eric

> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> 
> Index: xfsprogs-dev/io/bmap.c
> ===================================================================
> --- xfsprogs-dev.orig/io/bmap.c       2009-01-24 15:36:56.780113315 +0100
> +++ xfsprogs-dev/io/bmap.c    2009-01-24 15:37:17.875168142 +0100
> @@ -140,7 +140,7 @@ bmap_f(
>               }
>       }
>  
> -     map_size = nflag ? nflag+2 : 32;        /* initial guess - 256 */
> +     map_size = nflag ? nflag+2 : 32;        /* initial guess - 32 */
>       map = malloc(map_size*sizeof(*map));
>       if (map == NULL) {
>               fprintf(stderr, _("%s: malloc of %d bytes failed.\n"),
> @@ -151,7 +151,7 @@ bmap_f(
>  
>  
>  /*   Try the xfsctl(XFS_IOC_GETBMAPX) for the number of extents specified
> - *   by nflag, or the initial guess number of extents (256).
> + *   by nflag, or the initial guess number of extents (32).
>   *
>   *   If there are more extents than we guessed, use xfsctl
>   *   (XFS_IOC_FSGETXATTR[A]) to get the extent count, realloc some more
> 
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs
> 

<Prev in Thread] Current Thread [Next in Thread>