Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3312105pxb; Tue, 19 Jan 2021 21:06:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2Xi6crn1iWH0hJ4PKjS6SVnJWGUftLQbhGM38CV5uRs+1MkRwtkPjVHXIDe35sBiBKGXd X-Received: by 2002:a50:e008:: with SMTP id e8mr5795372edl.339.1611119213310; Tue, 19 Jan 2021 21:06:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611119213; cv=none; d=google.com; s=arc-20160816; b=f08gHyJ8Nd8VC2f3ivl7XUXZpCtaoa9LpvZmxbHwHicT2p5MdLrJeHgLODQkgvy4GY G5HUR1NL/qPawXa8RJ4kzgsfGWYng9JCk3CRTOaBT8vbciZq15wfMZcuShAcDZ3jEaAp DwydeckaAERVwPpSSX4Sl2RKxnRkAZQ7wGRpRbyeWC3htu3KnNHmrXGtpJE9ljJtP9U/ IJ9vIp9A7HSdJhX5HKugIciKMLUd5UlztNxc+QNB7oKZfmDL2WXbNUcI25myI8wz3RBz ehCKO1YLyUBVqONbnZKfEAkRN2NagcCIA7RBrfQkpr3YYHQB0ZaQWFp4Y2rTYOV+I8b+ WZPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=shH7NlqswKTbdgkTZZktY7tldnkwI3PYWkVujy1mQHg=; b=kPrGLshWJJoDIn2G1lUXdTs9xdcH8TVgnkCuKsjdl/+tdkEGdDedlXVFS8EAdMud11 vllIWpQbxRw9KbOEsINfYlfwqlQJwCXndjHkHZoi0cfbnqUA2ih2xBYdMgWhr8WJn/ZS q0W1ZVCspaLfKLZKjSeeiTWPbne06UF7Dp3Sh9UYdXzu2AWxJE5NjDOBzzScrOqSxC7i 0X5Np6HbeABQ9teoDMHeRwHAkmvaN9TuYGfFLRbVMlGk/oD0EeE/6HmDhs1ze2XOlaOK cbIor3uMxb+6VbiYuxV6ABPl0XqM/rHTnOdIXj26UJgqUF0JcFojxWzHJaDgd1ndrff9 3Ukw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 dn9si397234edb.68.2021.01.19.21.06.29; Tue, 19 Jan 2021 21:06:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728494AbhATE7H (ORCPT + 99 others); Tue, 19 Jan 2021 23:59:07 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:41216 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729027AbhATE4P (ORCPT ); Tue, 19 Jan 2021 23:56:15 -0500 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 10K4tQ6S021661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Jan 2021 23:55:27 -0500 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 77B3915C35F5; Tue, 19 Jan 2021 23:55:26 -0500 (EST) Date: Tue, 19 Jan 2021 23:55:26 -0500 From: "Theodore Ts'o" To: Romain Naour Cc: linux-ext4@vger.kernel.org Subject: Re: [PATCH] libext2fs: add gnu.translator support Message-ID: References: <20201102130319.1434330-1-romain.naour@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201102130319.1434330-1-romain.naour@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Nov 02, 2020 at 02:03:19PM +0100, Romain Naour wrote: > The support of setting (and reading) of passive translators from > GNU/Linux has been added to the Linux kernel by the commit [1]. > The name index '10' has been reserved for GNU/Hurd. > > Hurd passive translators are stored as a xattr value with name > "gnu.translator" [2]. > > If "gnu.translator" xattr value has been set before calling > mkfs.ext2, it will segfault since "gnu." is not present in > ea_names[]. > > $ setfattr -n gnu.translator -v "/hurd/exec\0" ${TARGET_DIR}/servers/exec > $ mkfs.ext2 -d ${TARGET_DIR} -o hurd -O ext_attr rootfs.ext2 "1G" > > Adding "gnu." to ea_names[], allow to create ext2 filesystem > for GNU/Hurd with passive translator already set. > > [1] https://git.savannah.gnu.org/cgit/hurd/hurd.git/commit/?id=a04c7bf83172faa7cb080fbe3b6c04a8415ca645 > [2] https://lists.gnu.org/archive/html/bug-hurd/2016-08/msg00075.html > > Signed-off-by: Romain Naour > Cc: Theodore Ts'o Applied, thanks. - Ted