Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757015Ab2BWVBJ (ORCPT ); Thu, 23 Feb 2012 16:01:09 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44437 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756917Ab2BWVBI (ORCPT ); Thu, 23 Feb 2012 16:01:08 -0500 Date: Thu, 23 Feb 2012 13:01:06 -0800 From: Andrew Morton To: ebiederm@xmission.com (Eric W. Biederman) Cc: dave@gnu.org, "J. Bruce Fields" , Matthew Wilcox , lkml , linux-fsdevel Subject: Re: [PATCH] locks: new procfs lockinfo Message-Id: <20120223130106.8d976093.akpm@linux-foundation.org> In-Reply-To: References: <1329737454.3058.3.camel@offbook> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1366 Lines: 30 On Wed, 22 Feb 2012 16:38:27 -0800 ebiederm@xmission.com (Eric W. Biederman) wrote: > Davidlohr Bueso writes: > > > From: Davidlohr Bueso > > > > Based on our previous discussion https://lkml.org/lkml/2012/2/10/462 we came to > > agree on deprecating the current /proc/locks in favor of a more extensible interface. > > The new /proc/lockinfo file exports similar information - except instead of maj:min the > > device name is shown - and entries are formated like those in /proc/cpuinfo, allowing us > > to add new entries without breaking userspace. > > You can't know the device name, attempt to say what you don't know seems > very dangerous. It may be reasonable to simply give the deivce number > and not split the device number into major/minor any more and I am > concerned about reality. I don't think we've ever been told any *reason* for switching from major:minor to device-name. This is a problem. And yes, major:minor reliably and uniquely identifies the device. I'm not sure that the human-readable string which is largely a convenience thing is as reliable as this. -- 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/