Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp891772pxt; Fri, 6 Aug 2021 17:09:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza0npDPOqFQqIVazfVH/6e2+l615Mybl0PenaCkhMGWKtg3nhizqfSOtaelpCiLK5LAGap X-Received: by 2002:a05:6e02:1543:: with SMTP id j3mr210289ilu.308.1628294996309; Fri, 06 Aug 2021 17:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628294996; cv=none; d=google.com; s=arc-20160816; b=RUvmHyrqTPJHDrBDlP0qRHTpQuYuj34xBr7wHtEiJmMzv+NxhAU5nwbQVTGm9zp/OT xeC1HWqNDHcfi/eAKFFjgyqPEhA2+oc64mcdptf88l6dGgiM7KkkpR2WaBCJOGh3OEH8 0QHqXmxCXEd6zIvotM9MhItI9czdaJSlsHX3MpBtmcAGzmL/qB+WW6LJjKq2+xZ6um1+ tnbGwoWkBCLyl6Dmbf6ceJbpHjmEzh9/RZ3HzHv4+0IzForg4e2ze3XbWvb8+H7Vs7ez sPTdT3YnoienRf0bMT1p3P9Z4iQOZoKbs8R723yfAvxPvC0qUrS92XogLZSmAKVfi2Up uqWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ObBKXPEWmpmAfaa1MKGMZFC9Hjzf8MlfgiLEFYpYRrQ=; b=zaMaIXKI0ZpT30AD+fwsvELDJFmR49JXw29pvbaYkSFjaeQtcv4EHQ+fc6qF8ON9kZ aYCi+yqP9J4DahidNt/FFoolhFXKfASSBDWLv9ZWz4bdvD6jLScMdjE50pLrCST1UeYG pEIfk0UOPkFtPk++zKAuNWKF4aSYSAqH8cUVH2xUJ3h/xdtaAv9OhNEAJekiFW/G6jnp /spd3ya9Jps4E37Ga0jbqVQrb1J0oAYOBJDpmZV1p1j+Lzk7sKe8dyXl1/o/jC1DR67X qgFj8S+dekfInkt7MJC4qyjd/TpEpTbRCvx9pfi5w/+pV5Z5+ldokUDrTj+ej6C2g8Js 5lEg== 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 c126si3556033iof.49.2021.08.06.17.09.45; Fri, 06 Aug 2021 17:09:56 -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 S230339AbhHFUF4 (ORCPT + 99 others); Fri, 6 Aug 2021 16:05:56 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:35907 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229851AbhHFUF4 (ORCPT ); Fri, 6 Aug 2021 16:05:56 -0400 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 4804AC0005; Fri, 6 Aug 2021 20:05:38 +0000 (UTC) From: Miquel Raynal To: Ezequiel Garcia , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Richard Weinberger Cc: Miquel Raynal , Vignesh Raghavendra Subject: Re: [PATCH 3/3] mtdblock: Warn if the added for a NAND device Date: Fri, 6 Aug 2021 22:05:37 +0200 Message-Id: <20210806200537.394260-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210801234509.18774-8-ezequiel@collabora.com> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'b4675c64f9326a8caff211ec02599d5d64eb4f81' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2021-08-01 at 23:45:09 UTC, Ezequiel Garcia wrote: > There is a surprisingly large number of tutorials > that suggest using mtdblock to mount SquashFS filesystems > on flash devices, including NAND devices. > > This approach is suboptimal than using UBI. If the flash device > is NAND, this is specially true, due to wear leveling, bit-flips and > badblocks. In this case UBI is strongly preferred, so be nice to users > and print a warning suggesting to consider UBI block, if mtdblock > is added for a NAND device. > > Signed-off-by: Ezequiel Garcia Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel