[PATCH 2/4] util/jffs2reader file size fix
Suzuki Takashi
suzuki.takashi at gmail.com
Thu Oct 20 10:43:51 EDT 2005
On Sat, 15 Oct 2005 12:12:07 +0900, I wrote:
> This is a trivial patch for util/jffs2reader
> to correct file sizes shown in the listings.
>
> Please review and apply if it is ok.
The patch without quoted-printable encoding.
Thanks.
--- jffs2reader.c.compile 2005-10-10 12:51:37.000000000 +0900
+++ jffs2reader.c 2005-10-10 17:55:17.000000000 +0900
@@ -369,7 +369,7 @@ void printdir(char *o, size_t size, stru
putblock((char*)&rdev, sizeof(rdev), &devsize, ri);
printf("%4d, %3d ", (int)MAJOR(rdev), (int)MINOR(rdev));
} else {
- printf("%9ld ", (long)je32_to_cpu (ri->dsize));
+ printf("%9ld ", (long)je32_to_cpu (ri->isize));
}
d->name[d->nsize]='\0';
if (age < 3600L * 24 * 365 / 2 && age > -15 * 60) {
--
Suzuki Takashi
More information about the linux-mtd
mailing list