diff options
author | Phillip Lougher <phillip@squashfs.org.uk> | 2014-05-11 19:56:11 +0100 |
---|---|---|
committer | Phillip Lougher <phillip@squashfs.org.uk> | 2014-05-11 19:56:11 +0100 |
commit | bb76b3fe22d011e54a1ebff83991829793ead755 (patch) | |
tree | e6001352dad6ff770cc5a7c7783e357e6fbae4cb | |
parent | eec3da8ef994dc85b56806ef77f9cde7ba3d38e9 (diff) | |
download | squashfs-tools-bb76b3fe22d011e54a1ebff83991829793ead755.tar.gz |
mksquashfs: fix LOWMEM check in -mem option
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
-rw-r--r-- | squashfs-tools/mksquashfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c index 4c5f76a..ba5f66c 100644 --- a/squashfs-tools/mksquashfs.c +++ b/squashfs-tools/mksquashfs.c @@ -5133,9 +5133,10 @@ print_compressor_options: } /* convert from bytes to Mbytes */ total_mem = number / 1048576; - if(total_mem < SQUASHFS_LOWMEM) { + if(total_mem < (SQUASHFS_LOWMEM / SQUASHFS_TAKE)) { ERROR("%s: -mem should be %d Mbytes or " - "larger\n", argv[0], SQUASHFS_LOWMEM); + "larger\n", argv[0], + SQUASHFS_LOWMEM / SQUASHFS_TAKE); exit(1); } calculate_queue_sizes(total_mem, &readq, &fragq, |