Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6028379pxv; Thu, 29 Jul 2021 04:50:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNrPZFUi8kZ8UMKWujBNy87X7P2hne1D/QwT++W+geTELu7efKcJttfXG9WnjdATcADxaN X-Received: by 2002:a50:cf8c:: with SMTP id h12mr2381719edk.360.1627559408069; Thu, 29 Jul 2021 04:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627559408; cv=none; d=google.com; s=arc-20160816; b=uaECuL/rkE4jXuXSBRO7/nqnw++9CF2LnBECvrFOmo6Oyoyvmu0AuDHbpZPjRZd9Pa whdThy6m0I4A2i1s0FYmfpPoFDd39xqyJdK8RqOxxLyZ2pz9/jXm6Ajk0JRBgQ6RVJuq zYUiIT8pfR5qm4WbOdtlz7YxSdmA1FqzmtS1DG6Li6H3E6I9Rfj0o4aDiAPDyhulrzkP hytKrYkzWgUMAeyWIh5JX78WV4rV9JwK9EgKQDT2Yeu+S4btmibVZjUOABfTwBi2o82k 1UKpz2JJ974qf+ORV6/1mejg8sRQ8eVPg3zQq2qAbmgsb1pmawe8VjX+sier0uB2HPwU JJrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=aS4fJFxD15zwuRiBeWlGhMU1xuetghAk9/26Hvz9+w0=; b=tFEO8dwU9kbA102uRJwRbRWlT/wuJW/2IJKWwl2xTMyfAcZTKZcVb4bwRSZ/hYkxJm 2SrshzmWhYq/ltEfTqjPmxBYg3qFB9OwDIxill2NMaYE2azt/PAtgf4GCqyQBRzlYNFm FVH19Er/vbeGduLrggX/oVxYqkbAqUuPHcY1w6y+pod+L1XsBBBTlaYaxZIroAo5Tfj3 vZS+tPUFHQJE1v+Rz/K9lYSUQcIlD9wY3KTN6SLv5D0puVuOPeq071E62xGePkJe72Xk qje8Xp3o2Od5m9VNTtUh1IDh77NyYvh4D78iqW75AUyVoQdqTgneI1Dfnqq3ytYV8Soy QdWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a18si2626534ejj.147.2021.07.29.04.49.44; Thu, 29 Jul 2021 04:50:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235067AbhG2Lpu convert rfc822-to-8bit (ORCPT + 99 others); Thu, 29 Jul 2021 07:45:50 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:46474 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234098AbhG2Lpu (ORCPT ); Thu, 29 Jul 2021 07:45:50 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 93E5D60A59E0; Thu, 29 Jul 2021 13:45:45 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id aO_TuqCBAGxP; Thu, 29 Jul 2021 13:45:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 3EEFA60A59E2; Thu, 29 Jul 2021 13:45:45 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ubc79fz-8zcI; Thu, 29 Jul 2021 13:45:45 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 15DB260A59E0; Thu, 29 Jul 2021 13:45:45 +0200 (CEST) Date: Thu, 29 Jul 2021 13:45:44 +0200 (CEST) From: Richard Weinberger To: Ezequiel Garcia Cc: Pintu Agarwal , Kernelnewbies , Greg KH , linux-kernel , linux-mtd , Sean Nyekjaer , linux-fsdevel , Phillip Lougher Message-ID: <1668790824.35266.1627559144878.JavaMail.zimbra@nod.at> In-Reply-To: References: <1556211076.48404.1626763215205.JavaMail.zimbra@nod.at> <2132615832.4458.1626900868118.JavaMail.zimbra@nod.at> Subject: Re: MTD: How to get actual image size from MTD partition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF90 (Linux)/8.8.12_GA_3809) Thread-Topic: How to get actual image size from MTD partition Thread-Index: o5rhXDaMb949oL+oV/E2gN2BDVZpgg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ezequiel, ----- Ursprüngliche Mail ----- > [snip] > > Ouch, so surprised that after all these years someone is doing squashfs/mtdblock > instead of using ubiblock :-) > > Can we patch either Kconfig or add some warn_once on mtdblock > usage, suggesting to use ubiblock instead? a hint in Kconfig makes IMHO sense. Do you want to send a patch? A warning is too much since on some tiny embedded system with NOR flash mtdblock is still a good choice. ubiblock is mostly useful for NAND flash. > I remember there was still some use case(s) for mtdblock but I can't remember > now what was it, perhaps we should document the expectations? > (Is that for JFFS2 to mount?) a long time ago mount didn't accept character devices, so you had to pass mtdblockX to mount JFFS2. This limitation is gone. Thanks, //richard