- /* File count statistics used to print summary and fill in superblock */
- unsigned int file_count = 0, sym_count = 0, dev_count = 0, dir_count = 0,
- fifo_count = 0, sock_count = 0, id_count = 0;
-@@ -342,7 +348,7 @@ char *option_table[] = { "comp", "b", "mkfs-time", "fstime", "all-time",
- "vaf", "taf", "faf", "read-queue", "write-queue", "fragment-queue",
- "root-time", "root-uid", "root-gid", "xattrs-exclude", "xattrs-include",
- "xattrs-add", "default-mode", "default-uid", "default-gid",
-- "mem-percent", NULL
-+ "mem-percent", "label", "uuid", NULL
- };
-
- char *sqfstar_option_table[] = { "comp", "b", "mkfs-time", "fstime", "all-time",
-@@ -6252,6 +6258,8 @@ static void print_options(FILE *stream, char *name, int total_mem)
- 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");
-+ fprintf(stream, "-label <volume-label>\tSet the volume label\n");
-+ fprintf(stream, "-uuid <UUID>\tSet the volume UUID\n");
- fprintf(stream, "\t\t\tcontents of the directory\n");
- fprintf(stream, "\nFilesystem filter options:\n");
- fprintf(stream, "-p <pseudo-definition>\tadd pseudo file ");
-@@ -7555,6 +7563,7 @@ int sqfstar(int argc, char *argv[])
- SQUASHFS_MAJOR, SQUASHFS_MINOR,
- destination_file, block_size);
-
-+ bytes = sizeof(struct squashfs_super_block);
- /*
- * store any compressor specific options after the superblock,
- * and set the COMP_OPT flag to show that the filesystem has
-@@ -7568,11 +7577,9 @@ int sqfstar(int argc, char *argv[])
- sizeof(c_byte), &c_byte);
- write_destination(fd, sizeof(struct squashfs_super_block) +
- sizeof(c_byte), size, comp_data);
-- bytes = sizeof(struct squashfs_super_block) + sizeof(c_byte)
-- + size;
-+ bytes += sizeof(c_byte) + size;
- comp_opts = TRUE;
-- } else
-- bytes = sizeof(struct squashfs_super_block);
-+ }