From patchwork Sun Jan 13 09:08:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Liu X-Patchwork-Id: 211604 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id A079B2C00F7 for ; Sun, 13 Jan 2013 19:54:57 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752113Ab3AMIy5 (ORCPT ); Sun, 13 Jan 2013 03:54:57 -0500 Received: from mail-da0-f45.google.com ([209.85.210.45]:40061 "EHLO mail-da0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751772Ab3AMIy4 (ORCPT ); Sun, 13 Jan 2013 03:54:56 -0500 Received: by mail-da0-f45.google.com with SMTP id w4so1382444dam.32 for ; Sun, 13 Jan 2013 00:54:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=mf7EmtShTPqen1p8+lHoKa1caVs7VbRH8gWjfUfU+a8=; b=n8ce9qFj+bds5tbltbdgowmHK5dRbTqu0SQX/StxIX+Aydgb1ePnxLGJI3MaaEtW4X fajGq8NhDSMwtUpSpDvxfwcOxUd9rD7Idk6RlimjFHFzA2ibWLBaShM+OZzmALvKJ2vV PFw2Q6SYqnVPV5v9LVCN1zgg5lqOxfVIZ5qG0IClxduHyXlzqGYURG0WrzibZbUAjBRH 6Eoxkq++LlRlYfyHtfQCBm4KxlGAvCWRHm0oHFEmF7xysc2YMu+Q9zY8zpWfmXKlMAzZ gb4Q/8eO4xcsSDyXtQeNGW2uxp+NPDVYQ+sXodmTANGxHNpR3Qxx/SFrdd/ZzZsyEr2b LV8Q== X-Received: by 10.68.228.2 with SMTP id se2mr247005151pbc.93.1358067296410; Sun, 13 Jan 2013 00:54:56 -0800 (PST) Received: from lz-desktop.taobao.ali.com ([182.92.247.2]) by mx.google.com with ESMTPS id qf7sm6027872pbb.49.2013.01.13.00.54.52 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 13 Jan 2013 00:54:55 -0800 (PST) From: Zheng Liu To: linux-ext4@vger.kernel.org Cc: Zheng Liu Subject: [PATCH 3/3] mke2fs: document bigalloc and cluster-size Date: Sun, 13 Jan 2013 17:08:15 +0800 Message-Id: <1358068095-9034-3-git-send-email-wenqing.lz@taobao.com> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <1358068095-9034-1-git-send-email-wenqing.lz@taobao.com> References: <1358068095-9034-1-git-send-email-wenqing.lz@taobao.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Zheng Liu Bigalloc feature has been used for a long time, but the documentation in mke2fs is still missing. So add it. Signed-off-by: Zheng Liu --- misc/mke2fs.8.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/misc/mke2fs.8.in b/misc/mke2fs.8.in index d4fbe00..ca3083d 100644 --- a/misc/mke2fs.8.in +++ b/misc/mke2fs.8.in @@ -187,6 +187,11 @@ Check the device for bad blocks before creating the file system. If this option is specified twice, then a slower read-write test is used instead of a fast read-only test. .TP +.B \-C " cluster-size" +Specify the size of cluster in bytes. Valid cluster-size values are from +2048 to 256M bytes per cluster. If omiited, cluster-size is 64KB by +default. +.TP .B \-D Use direct I/O when writing to the disk. This avoids mke2fs dirtying a lot of buffer cache memory, which may impact other applications running @@ -516,6 +521,12 @@ prefix the feature name with a caret ('^') character. The pseudo-filesystem feature "none" will clear all filesystem features. .RS 1.2i .TP +.B bigalloc +Allow to allocate block-size beyond the 4096 bytes. That can decrease the time +spent on doing block allocation and brings smaller fragmentation, especially +for large files. The size can be specified using the +.B \-C option. +.TP .B dir_index Use hashed b-trees to speed up lookups in large directories. .TP