From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKQNZ-0006FK-N2 for barebox@lists.infradead.org; Wed, 07 Nov 2018 16:08:31 +0000 Message-ID: <1541606897.2508.55.camel@pengutronix.de> From: Lucas Stach Date: Wed, 07 Nov 2018 17:08:17 +0100 In-Reply-To: <20181107134522.y7awdhz2uowjnqh7@localhost.localdomain> References: <20181106161407.20974-1-l.stach@pengutronix.de> <20181107134522.y7awdhz2uowjnqh7@localhost.localdomain> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] commands: mem: truncate mem device size to fit the loff_t file size To: Peter Mamonov Cc: barebox@lists.infradead.org QW0gTWl0dHdvY2gsIGRlbiAwNy4xMS4yMDE4LCAxNjo0NSArMDMwMCBzY2hyaWViIFBldGVyIE1h bW9ub3Y6Cj4gSGksIEx1Y2FzLAo+IAo+IE9uIFR1ZSwgTm92IDA2LCAyMDE4IGF0IDA1OjE0OjA3 UE0gKzAxMDAsIEx1Y2FzIFN0YWNoIHdyb3RlOgo+ID4gT24gNjRiaXQgYXJjaGVzIHRoZSBmaWxl IGNvdmVyaW5nIHRoZSB3aG9sZSBhZGRyZXNzIHNwYWNlIGlzIGxhcmdlciB0aGFuCj4gPiB3aGF0 IGNhbiBiZSByZXByZXNlbnRlZCBpbiB0aGUgbG9mZl90IHR5cGUgKHM2NCkgdXNlZCBmb3IgdGhl IGZpbGUgc2l6ZS4KPiA+IFRodXMgdGhlIHNpemUgb2YgdGhpcyBkZXZpY2UgaXMgaW50ZXJwcmV0 ZWQgYXMgbmVnYXRpdmUgaW4gYSBsb3Qgb2YK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