From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwD8k-0004TH-UU for qemu-devel@nongnu.org; Tue, 21 Apr 2009 06:23:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwD8f-0004T3-JU for qemu-devel@nongnu.org; Tue, 21 Apr 2009 06:23:45 -0400 Received: from [199.232.76.173] (port=36936 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwD8f-0004T0-Ec for qemu-devel@nongnu.org; Tue, 21 Apr 2009 06:23:41 -0400 Received: from smtp3-g21.free.fr ([212.27.42.3]:38376) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LwD8e-0005xj-OD for qemu-devel@nongnu.org; Tue, 21 Apr 2009 06:23:41 -0400 In-Reply-To: <871vrmflva.fsf@lechat.rtp-net.org> Subject: Re: [Qemu-devel] [PATCH] Return EOPNOTSUPP instead of ENOSYS for =?utf-8?q?*xattr*?= syscalls From: "=?utf-8?q?Fran=C3=A7ois?= Revol" Date: Tue, 21 Apr 2009 12:23:41 +0200 CEST Message-Id: <5157338984-BeMail@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Arnaud Patard (Rtp)" Cc: qemu-devel@nongnu.org > > In current code, we're sending ENOSYS to target when a syscall for > the > xattrs is done. This makes applications like ls complain loudly about > that and breaks scripts parsing the output. Moreover, iirc, > implemented > features of filesystems are are sending EOPNOTSUPP (I've not checked > so > I may be a little bit wrong on that...). > So, I'm proposing to return -EOPNOTSUPP and make ls happy. > > As a side not, I'd like to know if there's a reason for not having > implemented the *xattr* syscalls support. If someone has a clue, > please > share it :). Possibly to avoid endianness issues with binary data =3F Fran=C3=A7ois.