From: Rich Felker Subject: Re: [PATCH] locks: rename file-private locks to file-description locks Date: Mon, 21 Apr 2014 14:48:29 -0400 Message-ID: <20140421184829.GE26358@brightrain.aerifal.cx> References: <1398087935-14001-1-git-send-email-jlayton@redhat.com> <20140421140246.GB26358@brightrain.aerifal.cx> <535529FA.8070709@gmail.com> <20140421161004.GC26358@brightrain.aerifal.cx> <20140421124508.4f2c9ca7@tlielax.poochiereds.net> <5355610A.6090606@gmail.com> <20140421143238.668c818d@tlielax.poochiereds.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Michael Kerrisk (man-pages)" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, samba-technical@lists.samba.org, Ganesha NFS List , Carlos O'Donell , libc-alpha , "Stefan (metze) Metzmacher" , Christoph Hellwig To: Jeff Layton Return-path: Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:41835 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753328AbaDUSsh (ORCPT ); Mon, 21 Apr 2014 14:48:37 -0400 Content-Disposition: inline In-Reply-To: <20140421143238.668c818d@tlielax.poochiereds.net> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Apr 21, 2014 at 02:32:38PM -0400, Jeff Layton wrote: > > > Fair enough. Assuming we kept "file-description locks" as a name, what > > > would you propose as new macro names? > > > > I assume you meant, "assume we kept the term 'file-private locks'..." > > In that case, at least make the constants something like > > > > F_FP_SETLK > > F_FP_SETLKW > > F_FP_GETLK > > > > so that they are not confused with the traditional constants. > > > > Cheer, > > > > Actually no, I was asking how Rich would name the constants if we use > the name "file-description locks" (as per the patch I posted this > morning), since his objection was the use if *_FD_* names. > > I would assume that if we stick with "file-private locks" as the name, > then we'll still change the constants to a form like *_FP_*. > > Also, to be clear...Frank is correct that the name "file-private" came > from allowing the locks to be "private" to a particular open file > description. Though I agree that it's a crappy name at best... As I mentioned in a reply to Michael just now, I think FP is bad because the whole problem is that legacy fcntl locks are associated with the underlying file rather than the open file description (open instance). So open-private (OP) might be a better choice than file-private. Rich