From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wy0-f177.google.com ([74.125.82.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RIRhO-0006Ap-Bn for linux-mtd@lists.infradead.org; Mon, 24 Oct 2011 21:04:46 +0000 Received: by wyg8 with SMTP id 8so8181635wyg.36 for ; Mon, 24 Oct 2011 14:04:41 -0700 (PDT) Subject: Re: [BUG] Re: mtd_stresstest module bricked my dockstar From: Artem Bityutskiy To: Wolfram Sang , Roland Kletzing Date: Tue, 25 Oct 2011 00:04:15 +0300 In-Reply-To: <20111024195313.GA6326@pengutronix.de> References: <69501156.1798237.1319395066798.JavaMail.fmail@mwmweb003> <20111024055705.GA4020@1wt.eu> <20111024195313.GA6326@pengutronix.de> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Mt6x6GP4VKd/k7yBkYj5" Message-ID: <1319490276.12314.9.camel@golum> Mime-Version: 1.0 Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, adrian.hunter@intel.com, Willy Tarreau Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=-Mt6x6GP4VKd/k7yBkYj5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Anyway - what would people think if linux had a kernel module which wi= pes > > /dev/sda1 when loaded ? :) Yeah, the tests are destructive and they start erasing and torturing your MTD device without preserving your data. And the bad thing is - if you do not pass any parameter, they will torture your mtd0. I am sorry that you bricked your device and I hope you will be able to resurrect it. This was an oversight. The tests were written for validating new drivers and making sure they are robust. So we always assumed people run them on a development HW, not on a production HW. That was a false implicit assumption. Yes, we should use -1 as the default value, and print a scary warning message when the module is inserted without a parameter. We should probably also put word "destructive" or something like this to the module description. --=20 Best Regards, Artem Bityutskiy --=-Mt6x6GP4VKd/k7yBkYj5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAABAgAGBQJOpdLPAAoJEJtuLFy+q7fenwkIAJr+sLsgJcJCbNdqagPJTJsY pU/6ZnKO3MGsypdvrpmHrVXkMxPieubQJm+jq/VIT8kbDeUAvd9wVRZf4DZi4EHO a6xKhyGYfPDiZoWsh0QnQYKaloOWqsenCI5DlqGMsTb5/fU/8EEMgrgkEsBBdhHo kF4LJgrHxwvWsqeWobf37FmbwgO74ssiHc9GPNFU1aOu5GjRaGyaAqKWJ06CEm9U walMr3/cSlhWZCMY5b94+fIwr8gdJ6DIoGSShsG8HxzRj2/w9deG/nJrVQKOL7d1 DB+oqiqebhQFFBaoFhWAtKgS+H6zvs8i+dU6q6aQNDMNtbUjERuDCYxse2NL7s4= =Bo34 -----END PGP SIGNATURE----- --=-Mt6x6GP4VKd/k7yBkYj5--