]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
zramctl: add zstd compression algorithm option
authorJan Samek <samekh@email.cz>
Mon, 16 Aug 2021 19:22:15 +0000 (21:22 +0200)
committerJan Samek <samekh@email.cz>
Mon, 16 Aug 2021 19:22:15 +0000 (21:22 +0200)
Add information about the possible value 'zstd' for the 'zramctl --algorithm'
option to 'zramctl --help' and zramctl (8) manpage. The kernel supports zram
with zstd compression starting with 4.15 (see
https://lore.kernel.org/lkml/20170912050005.3247-1-sergey.senozhatsky@gmail.com/#r).

Signed-off-by: Jan Samek <samekh@email.cz>
sys-utils/zramctl.8.adoc
sys-utils/zramctl.c

index 7b684ed44439ebab30427477bdcfd06f6578fc83..2bb4f96239ca9a43adde2bcf5c726700f173c9fb 100644 (file)
@@ -38,7 +38,7 @@ Note that _zramdev_ node specified on command line has to already exist. The com
 
 == OPTIONS
 
-*-a*, **--algorithm lzo**|**lz4**|**lz4hc**|**deflate**|*842*::
+*-a*, **--algorithm lzo**|**lz4**|**lz4hc**|**deflate**|**842**|**zstd**::
 Set the compression algorithm to be used for compressing data in the zram device.
 
 *-f*, *--find*::
index 003349fadf2602b42c7544e2caa10019a5628a90..e2959f2ceba48c2b6a83a7254be6bb230abf31e4 100644 (file)
@@ -547,7 +547,7 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Set up and control zram devices.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       fputs(_(" -a, --algorithm lzo|lz4|lz4hc|deflate|842   compression algorithm to use\n"), out);
+       fputs(_(" -a, --algorithm lzo|lz4|lz4hc|deflate|842|zstd   compression algorithm to use\n"), out);
        fputs(_(" -b, --bytes               print sizes in bytes rather than in human readable format\n"), out);
        fputs(_(" -f, --find                find a free device\n"), out);
        fputs(_(" -n, --noheadings          don't print headings\n"), out);