[PATCH] erofs-utils: dump: Add --cat flag to show file contents

Gao Xiang xiang at kernel.org
Thu Jan 9 23:56:08 AEDT 2025


On Thu, Jan 09, 2025 at 11:56:11AM +0100, Juan Hernandez wrote:
> This patch adds a new '--cat' flag to the 'dump.erofs' command. When
> used it will write to the standard output the content of the file
> indicated by the '--path' or '--nid' options. For example, if there is a
> '/mydir/myfile.txt' file containg the text 'mytext':
> 
>     $ dump.erofs --cat --path=/mydir/myfile.txt myimage.erofs
>     mytext
> 
> Signed-off-by: Juan Hernandez <jhernand at redhat.com>

Thanks! Applied now for testing.

Thanks,
Gao Xiang


More information about the Linux-erofs mailing list