From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: =?UTF-8?q?Ulrich=20=C3=96lmann?= Date: Mon, 30 Sep 2019 09:26:06 +0200 Message-Id: <20190930072613.17956-7-u.oelmann@pengutronix.de> In-Reply-To: <20190930072613.17956-1-u.oelmann@pengutronix.de> References: <20190930072613.17956-1-u.oelmann@pengutronix.de> MIME-Version: 1.0 Subject: [OSS-Tools] [PATCH dt-utils 06/13] state: backend_bucket_circular: mark block as bad if mtd_peb_torture() failed List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: oss-tools-bounces@pengutronix.de Sender: "OSS-Tools" To: Pengutronix Public Open-Source-Development Cc: =?UTF-8?q?Ulrich=20=C3=96lmann?= VGhpcyBwb3J0cyB0aGUgZm9sbG93aW5nIGJhcmVib3ggY29tbWl0OgoKfCBjb21taXQgM2I2OGRi Y2JmY2U4MzBiZGY5MWY1MDk0M2U1ZWU0MTQ2MzcxN2FiZgp8IEF1dGhvcjogU2FzY2hhIEhhdWVy IDxzLmhhdWVyQHBlbmd1dHJvbml4LmRlPgp8IERhdGU6ICAgTW9uIEp1bCAxNSAxNToyODo1NSAy MDE5ICswMjAwCnwKfCAgICAgbXRkOiBwZWI6IERvIG5vdCBtYXJrIGFzIGJhZCBpbiBtdGRfcGVi X3RvcnR1cmUoKQp8CnwgICAgIEJvdGggdGhlIEtlcm5lbCBhbmQgbXRkLXV0aWxzIGhhdmUgcGVi IHRvcnR1cmUgZnVuY3Rpb25zIGFuZCBib3RoCnwgICAgIGRvIG5vdCBtYXJrIHRoZSBibG9jayBh cyBiYWQgYXV0b21hdGljYWxseS4gSW5zdGVhZCwgdGhlIGNhbGxlcgp8ICAgICBtdXN0IG1hcmsg dGhlIGJsb2NrIGFzIGJhZCB3aGVuIC1FSU8gaXMgcmV0dXJuZWQgZnJvbSB0aGUgdG9ydHVyZQp8 ICA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