Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752674AbbKZPT4 (ORCPT ); Thu, 26 Nov 2015 10:19:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49861 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752565AbbKZPTu (ORCPT ); Thu, 26 Nov 2015 10:19:50 -0500 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20151124081149.GA8840@infradead.org> References: <20151124081149.GA8840@infradead.org> <20151120145422.18930.72662.stgit@warthog.procyon.org.uk> To: Christoph Hellwig Cc: dhowells@redhat.com, arnd@arndb.de, linux-afs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [RFC][PATCH 00/12] Enhanced file stat system call MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7341.1448551183.1@warthog.procyon.org.uk> Date: Thu, 26 Nov 2015 15:19:43 +0000 Message-ID: <7342.1448551183@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1368 Lines: 35 Christoph Hellwig wrote: > from a quick look the statx bits looks fine in general. I think Ted > last time had a problem with the IOC flag allocation, so you might > want to ping him. Yeah - he commented on that. > But fsinfo with the multiplexer and the void pointer is just horrible. > What were you thinking there? I think the fsinfo data struct probably wants splitting up. Now this could be done in a number of ways, including: (1) By adding multiple syscalls (statfsx, fsinfo, netfsinfo, ...) but each one needs a bit in the kernel to handle the basics (path/fd lookup, security check, buffer allocation and freeing, ...) which could all be in common - hence the mux method. (2) Adding an argument to the fsinfo syscall since it has at least one syscall argument spare. (3) Offloading some of the bits to standardised xattr calls. The large string fields (domain name, volume name, ...) would seem to be obvious candidates for this. Given that the core VFS gets to manage the contents of the buffer, it shouldn't be as controversial as pioctl(). David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/