From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-sn1nam01on0720.outbound.protection.outlook.com ([2a01:111:f400:fe40::720] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZFL1-0004e6-UB for barebox@lists.infradead.org; Tue, 18 Dec 2018 13:23:09 +0000 From: "Baeuerle, Florian" Date: Tue, 18 Dec 2018 13:22:52 +0000 Message-ID: <20181218132233.23669-2-florian.baeuerle@allegion.com> References: <20181217105343.kkfo4ihynrcv7dis@pengutronix.de> <20181218132233.23669-1-florian.baeuerle@allegion.com> In-Reply-To: <20181218132233.23669-1-florian.baeuerle@allegion.com> Content-Language: en-US Content-ID: 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: [PATCH 2/2] envfs: new flag for sorting env before saving To: "barebox@lists.infradead.org" VGhlIHJlc3VsdGluZyBlbnZpcm9ubWVudCB3YXMgZGVwZW5kZW5kIG9mIHRoZSBidWlsZCBtYWNo aW5lcycNCmZpbGVzeXN0ZW0sIGkuZS4gdGhlIG9yZGVyIGluIHdoaWNoIHJlYWRkaXIgcmV0dXJu cyBkaXJlbnRzIGRlcGVuZHMgb24NCnRoZSBmaWxlc3lzdGVtIGltcGxlbWVudGF0aW9uLg0KDQpV c2UgdGhlIG5ldyBmbGFnIGluIHNjcmlwdHMvYmFyZWJveGVudi5jIGZvciBnZW5lcmF0aW5nIGEg cmVwcm9kdWNpYmxlDQpidWlsdC1pbiBlbnZpcm9ubWVudC4NCg0KU2lnbmVkLW9mZi1ieTogRmxv cmlhbiBCw6R1ZXJsZSA8Zmxvcmlhbi5iYWV1ZXJsZUBhbGxlZ2lvbi5jb20+DQotLS0NCiBjb21t b24vZW52aXJvbm1lbn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