Message ID | 3d1ce603baccb709910fa2dd0021db9af4daa2b9.1493654310.git.yann.morin.1998@free.fr |
---|---|
State | Superseded |
Headers | show
Return-Path: <buildroot-bounces@busybox.net> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wGpy670HFz9sD5 for <incoming@patchwork.ozlabs.org>; Tue, 2 May 2017 01:59:10 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="F5WRm5XR"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 25648303DA; Mon, 1 May 2017 15:59:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hl0G9LoLUU+X; Mon, 1 May 2017 15:59:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 94E01303CE; Mon, 1 May 2017 15:59:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 0A9C51CE82D for <buildroot@lists.busybox.net>; Mon, 1 May 2017 15:58:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E65013019E for <buildroot@lists.busybox.net>; Mon, 1 May 2017 15:58:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LiBK9AhxHTYg for <buildroot@lists.busybox.net>; Mon, 1 May 2017 15:58:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by silver.osuosl.org (Postfix) with ESMTPS id 21BC8302DF for <buildroot@buildroot.org>; Mon, 1 May 2017 15:58:51 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id w50so14134298wrc.0 for <buildroot@buildroot.org>; Mon, 01 May 2017 08:58:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=/iY4nwZFBmrSj9I56TrHxRjGd2SRtaahOp+iCN63n+c=; b=F5WRm5XRCEKCeMiV36T2ILKGxyRw/Ag8Qfo0p+fGOTLRSMTEyLg250nIeWg10PCt3a jAOYGZFZJHl8a9osEc5aDcq3QbCGmcOLjc+U4oQh9CJSEHNEVtpvl7manEt85LHT+k7Y GwsZICMUDVb+n4tMexln6KNKGd2Sx7RLTF36ztpoSc4FglmFopMGb95gX+aZGI3ZqkBZ BSwq9nHJsdbPSDv1+etG5PAPJP6emlA/EN364Uh1/UQmHZbhlSkvU5zWi/+jimIChJvF JLjHocJowcgqxXBGp0Yze1QOcBmJZIBnDSSKnW1a76mvsmeC2MIKVqfo8KFW+2aEfSjs w4lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=/iY4nwZFBmrSj9I56TrHxRjGd2SRtaahOp+iCN63n+c=; b=gmScR7ka+DMcVUR8VmXPTXmEcYXw+ylsryPKm8w+KLqT5ZFh2GWfkrR9Ev+GQTsYoa e6qGyMD7BsCrQtceHZQLjrv72qalFbmn18G/Ie8UkIBSUIWDuqYvjf6SBMxrQZtpeB5c +aN3sYop4+c6WkvLyyPNkBgeAYITA/xZu95PmeQs45x50ZWN5n7JmxzKml3P6aFP0g6/ yWTfHjiph2qmn+Ce2xJOExEI0YzQNpT7zOV5R971nszfz0fwPRvwOx8G3U0WDiGak2lU ZU24tWfck8gHGNGWb6y9W+lBkdtFlNbSuVmw/4T5o9whLbL9W3PCsPY21dfzRyEXKcIe 5Xeg== X-Gm-Message-State: AN3rC/6LdqbbD1RV/JSUrKhqHCk6Wf68uh9tEG6z3juN/5kxolvlpD2L va5t83IoDKce3Q== X-Received: by 10.223.163.137 with SMTP id l9mr15662069wrb.128.1493654329532; Mon, 01 May 2017 08:58:49 -0700 (PDT) Received: from localhost.localdomain (2a01cb08861073002d0d2433cff4b51a.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:2d0d:2433:cff4:b51a]) by smtp.gmail.com with ESMTPSA id k22sm15852274wrc.12.2017.05.01.08.58.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 May 2017 08:58:48 -0700 (PDT) From: "Yann E. MORIN" <yann.morin.1998@free.fr> To: buildroot@buildroot.org Date: Mon, 1 May 2017 17:58:38 +0200 Message-Id: <3d1ce603baccb709910fa2dd0021db9af4daa2b9.1493654310.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: <cover.1493654310.git.yann.morin.1998@free.fr> References: <cover.1493654310.git.yann.morin.1998@free.fr> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr> Subject: [Buildroot] [PATCH 3/9] package/mke2img: specifying zero inodes means auto X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot <buildroot.busybox.net> List-Unsubscribe: <http://lists.busybox.net/mailman/options/buildroot>, <mailto:buildroot-request@busybox.net?subject=unsubscribe> List-Archive: <http://lists.busybox.net/pipermail/buildroot/> List-Post: <mailto:buildroot@busybox.net> List-Help: <mailto:buildroot-request@busybox.net?subject=help> List-Subscribe: <http://lists.busybox.net/mailman/listinfo/buildroot>, <mailto:buildroot-request@busybox.net?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" <buildroot-bounces@busybox.net> |
diff --git a/package/mke2img/mke2img b/package/mke2img/mke2img index 758b6dee68..266df483aa 100755 --- a/package/mke2img/mke2img +++ b/package/mke2img/mke2img @@ -59,7 +59,7 @@ main() { esac # calculate needed inodes - if [ -z "${nb_inodes}" ]; then + if [ ${nb_inodes:-0} -eq 0 ]; then nb_inodes=$(find "${root_dir}" | wc -l) nb_inodes=$((nb_inodes+400)) fi
Currently, leaving the number of inodes to be autocalculated requires the user to not specify the -i option at all. Also accept zero as meaning auto; this will help simplify the ext2.mk code a little bit. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> --- package/mke2img/mke2img | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)