SHA256
1
0
forked from pool/squashfs
squashfs/squashfs-64k.patch

36 lines
1.8 KiB
Diff
Raw Normal View History

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 <gid>\t\tset root directory group to <gid>\n");
fprintf(stream, "-force-uid <uid>\tset all file uids to <uid>\n");
fprintf(stream, "-force-gid <gid>\tset all file gids to <gid>\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 <gid>\t\tset root directory group to <gid>\n");
fprintf(stream, "-force-uid <uid>\tset all file uids to <uid>\n");
fprintf(stream, "-force-gid <gid>\tset all file gids to <gid>\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 <exclude_file>\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);