From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: What to do about the 2TB limit on HDIO_GETGEO ? Date: Tue, 25 Mar 2008 14:20:32 -0700 Message-ID: <20080325212032.GA24495@suse.de> References: <47E875AD.1000901@rtr.ca> <47E87942.2020409@rtr.ca> <47E88A13.70808@zytor.com> <47E90019.3050006@rtr.ca> <47E90458.7030801@zytor.com> <47E9383F.3050908@rtr.ca> <20080325192515.GA24234@suse.de> <20080325123454.4eba7644.randy.dunlap@oracle.com> <47E96263.9000808@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mx1.suse.de ([195.135.220.2]:40928 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750737AbYCYVWv (ORCPT ); Tue, 25 Mar 2008 17:22:51 -0400 Content-Disposition: inline In-Reply-To: <47E96263.9000808@zytor.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: "H. Peter Anvin" Cc: Randy Dunlap , Mark Lord , Jens Axboe , Jeff Garzik , Tejun Heo , Linus Torvalds , Andrew Morton , Linux Kernel , IDE/ATA development list , linux-scsi On Tue, Mar 25, 2008 at 01:36:51PM -0700, H. Peter Anvin wrote: > Randy Dunlap wrote: >>> >>> Come on people, adding symlinks for device major:minor numbers in sysfs >>> to save a few 10s of lines of userspace code? Can things get sillier? >>> >>> You can add a single udev rule to probably build these in a tree in /dev >>> if you really need such a thing... >>> >>> And what's wrong with your new ioctl recomendation? >> Ah, there's some sanity. :) > > It's not so much an issue of a few tens of lines of user space code, but > rather the fact that something that should be O(1) is currently O(n). "should"? why? Is this some new requirement that everyone needs? I've _never_ seen anyone ask for the ability to find sysfs devices by major:minor number in O(1) time. Is this somehow a place where such optimization is warranted? thanks, greg k-h