Index: squashfs-tools-4.5/squashfs-tools/mksquashfs.c =================================================================== --- squashfs-tools-4.5.orig/squashfs-tools/mksquashfs.c +++ squashfs-tools-4.5/squashfs-tools/mksquashfs.c @@ -5954,7 +5954,7 @@ static void print_options(FILE *stream, fprintf(stream, "-root-gid \t\tset root directory group to \n"); fprintf(stream, "-force-uid \tset all file uids to \n"); fprintf(stream, "-force-gid \tset all file gids to \n"); - fprintf(stream, "-nopad\t\t\tdo not pad filesystem to a multiple of 4K\n"); + fprintf(stream, "-nopad\t\t\tdo not pad filesystem to a multiple of 64K\n"); fprintf(stream, "-keep-as-directory\tif one source directory is specified, "); fprintf(stream, "create a root\n"); fprintf(stream, "\t\t\tdirectory containing that directory, rather than the\n"); @@ -6112,7 +6112,7 @@ static void print_sqfstar_options(FILE * fprintf(stream, "-root-gid \t\tset root directory group to \n"); fprintf(stream, "-force-uid \tset all file uids to \n"); fprintf(stream, "-force-gid \tset all file gids to \n"); - fprintf(stream, "-nopad\t\t\tdo not pad filesystem to a multiple of 4K\n"); + fprintf(stream, "-nopad\t\t\tdo not pad filesystem to a multiple of 64K\n"); fprintf(stream, "\nFilesystem filter options:\n"); fprintf(stream, "-ef \tlist of exclude dirs/files. "); fprintf(stream, "One per line\n"); @@ -6877,9 +6877,9 @@ print_sqfstar_compressor_options: set_progressbar_state(FALSE); write_filesystem_tables(&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);