From aacddbff778d7d3044772d6bfb34b243e56a6680 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 28 Nov 2012 08:43:38 -0800 Subject: [PATCH] 64k [ rebased to v4.3 ] Signed-off-by: Mateusz Moscicki [ fixed commit log ] Signed-off-by: Karol Lewandowski Change-Id: I7d140a0b409d11fba93eabc84cc87a9ab32fc79d --- squashfs-tools/mksquashfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c index 86f82bb..15f1331 100644 --- a/squashfs-tools/mksquashfs.c +++ b/squashfs-tools/mksquashfs.c @@ -4674,9 +4674,9 @@ void write_filesystem_tables(struct squashfs_super_block *sBlk, int nopad) SQUASHFS_INSWAP_SUPER_BLOCK(sBlk); write_destination(fd, SQUASHFS_START, sizeof(*sBlk), sBlk); - if(!nopad && (i = bytes & (4096 - 1))) { - char temp[4096] = {0}; - write_destination(fd, bytes, 4096 - i, temp); + if(!nopad && (i = bytes & (65536 - 1))) { + char temp[65536] = {0}; + write_destination(fd, bytes, 65536 - i, temp); } close(fd); @@ -5309,7 +5309,7 @@ printOptions: ERROR("-force-uid uid\t\tset all file uids to uid\n"); ERROR("-force-gid gid\t\tset all file gids to gid\n"); ERROR("-nopad\t\t\tdo not pad filesystem to a multiple " - "of 4K\n"); + "of 64K\n"); ERROR("-keep-as-directory\tif one source directory is " "specified, create a root\n"); ERROR("\t\t\tdirectory containing that directory, " -- 2.7.4