From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 000AEC2B9F2 for ; Sat, 22 May 2021 05:51:19 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 50283610A5 for ; Sat, 22 May 2021 05:51:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 50283610A5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4FnCJk061Yz3085 for ; Sat, 22 May 2021 15:51:18 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=qR0DFLaH; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=xiang@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=qR0DFLaH; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4FnCJb3P8rz2yyM for ; Sat, 22 May 2021 15:51:11 +1000 (AEST) Received: by mail.kernel.org (Postfix) with ESMTPSA id EE5936138C; Sat, 22 May 2021 05:51:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621662668; bh=ouQQ9hJPutbd0gGZnRj6/AHdG3qP/l/FD9+HSFTY12Q=; h=From:To:Cc:Subject:Date:From; b=qR0DFLaHziy7tT89XlNRjfzRmZo7YMRhMq/UkdA0+dkWY6h9W2WN8RGl5QGjqdlV5 WxQshuOiA2VwIulb3QY5A1Wkr005aNOs5ZzrJI3CT4uHwQpJ7wLj9P1JMeXGh73gVb Wqh8MupiVt3Vpf4jwKmS+IDWIL0GnDYJNyjMT3tHaQw5ihOxZUiQJSOuS9rTMz4U35 f2WnYLBH+UoISzfROgZ8D7AKf3f62dBwYcHoLkkqUO2imHpmSObfUuDk6mtuI47i7V Fhf06jKO/GAn6mT8YvhrouUURZoZirkpt6KKZvHZfCJ/IqYDD2uQW4685xiQ5XblGB doDa20FI6KmmQ== From: Gao Xiang To: linux-erofs@lists.ozlabs.org Subject: [PATCH 1/2] erofs-utils: README: trivial updates Date: Sat, 22 May 2021 13:50:56 +0800 Message-Id: <20210522055057.25004-1-xiang@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gao Xiang Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" - update erofs naming to EROFS; - add some words about compression levels; - add more description about legacy EROFS images. Signed-off-by: Gao Xiang --- README | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/README b/README index b57550b2a09e..bcf30e11aa52 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ erofs-utils =========== -erofs-utils includes user-space tools for erofs filesystem. +erofs-utils includes user-space tools for EROFS filesystem. Currently mkfs.erofs and erofsfuse (experimental) are available. Dependencies & build @@ -50,7 +50,7 @@ as well. mkfs.erofs ---------- -two main kinds of erofs images can be generated: (un)compressed. +two main kinds of EROFS images can be generated: (un)compressed. - For uncompressed images, there will be none of compression files in these images. However, it can decide whether the tail @@ -61,8 +61,8 @@ two main kinds of erofs images can be generated: (un)compressed. saved with compression. If not, fallback to an uncompressed file. -How to generate erofs images -~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +How to generate EROFS images (Linux 5.3+) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Currently lz4 and lz4hc are available for compression, e.g. $ mkfs.erofs -zlz4hc foo.erofs.img foo/ @@ -70,17 +70,24 @@ Currently lz4 and lz4hc are available for compression, e.g. Or leave all files uncompressed as an option: $ mkfs.erofs foo.erofs.img foo/ -How to generate legacy erofs images -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In addition, you could specify a higher compression level to get a +(slightly) better compression ratio than the default level, e.g. + $ mkfs.erofs -zlz4hc,12 foo.erofs.img foo/ + +How to generate legacy EROFS images (Linux 4.19+) +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Decompression inplace and compacted indexes have been introduced in linux-5.3, which are not forward-compatible with older kernels. -In order to generate _legacy_ erofs images for old kernels, +In order to generate _legacy_ EROFS images for old kernels, consider adding "-E legacy-compress" to the command line, e.g. $ mkfs.erofs -E legacy-compress -zlz4hc foo.erofs.img foo/ +For Linux kernel >= 5.3, legacy EROFS images are _NOT recommended_ +due to runtime performance loss compared with non-legacy images. + Obsoleted erofs.mkfs ~~~~~~~~~~~~~~~~~~~~ @@ -94,7 +101,7 @@ PLEASE NOTE: This version is highly _NOT recommended_ now. erofsfuse (experimental, unstable) ---------------------------------- -erofsfuse is introduced to support erofs format for various platforms +erofsfuse is introduced to support EROFS format for various platforms (including older linux kernels) and new on-disk features iteration. It can also be used as an unpacking tool for unprivileged users. @@ -120,7 +127,7 @@ and build it manually: erofsfuse binary will be generated under fuse folder. -How to mount an erofs image with erofsfuse +How to mount an EROFS image with erofsfuse ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ As the other FUSE implementations, it's quite simple to mount with @@ -139,7 +146,7 @@ To unmount an erofsfuse mountpoint as a non-root user: Contribution ------------ -erofs-utils is under GPLv2+ as a part of erofs project, +erofs-utils is under GPLv2+ as a part of EROFS filesystem project, feel free to send patches or feedback to us. To: @@ -155,7 +162,7 @@ Cc: Comments -------- -[1] According to the erofs on-disk format, the tail block of files +[1] According to the EROFS on-disk format, the tail block of files could be inlined aggressively with its metadata in order to reduce the I/O overhead and save the storage space (called tail-packing). -- 2.20.1