Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265546AbUAGTTT (ORCPT ); Wed, 7 Jan 2004 14:19:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265611AbUAGTTT (ORCPT ); Wed, 7 Jan 2004 14:19:19 -0500 Received: from notes.hallinto.turkuamk.fi ([195.148.215.149]:20999 "EHLO notes.hallinto.turkuamk.fi") by vger.kernel.org with ESMTP id S265546AbUAGTTO (ORCPT ); Wed, 7 Jan 2004 14:19:14 -0500 Message-ID: <3FFC5CBB.5050507@kolumbus.fi> Date: Wed, 07 Jan 2004 21:23:39 +0200 From: =?ISO-8859-1?Q?Mika_Penttil=E4?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg KH CC: Linus Torvalds , Andrey Borzenkov , linux-hotplug-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: removable media revalidation - udev vs. devfs or static /dev References: <200401012333.04930.arvidjaar@mail.ru> <20040103055847.GC5306@kroah.com> <20040107185656.GB31827@kroah.com> In-Reply-To: <20040107185656.GB31827@kroah.com> X-MIMETrack: Itemize by SMTP Server on marconi.hallinto.turkuamk.fi/TAMK(Release 5.0.8 |June 18, 2001) at 07.01.2004 21:21:19, Serialize by Router on notes.hallinto.turkuamk.fi/TAMK(Release 5.0.10 |March 22, 2002) at 07.01.2004 21:20:28, Serialize complete at 07.01.2004 21:20:28 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1385 Lines: 53 Greg KH wrote: >On Wed, Jan 07, 2004 at 10:38:31AM -0800, Linus Torvalds wrote: > > >>On Fri, 2 Jan 2004, Greg KH wrote: >> >> >>>Doesn't the kernel always create the main block device for this device? >>>If so, udev will catch that. >>> >>> >>But udev should probably also create all the sub-nodes if it doesn't >>already. >> >> > >It doesn't, as I thought we could rely on the kernel partition support. > > > >>And it really has to create _all_ of them, exactly because there's no way >>to know ahead-of-time which of them will be available. >> >>Then, user space can just access "/dev/sda1" or whatever, and the act of >>accessing it will force the re-scan. >> >> > >Hm, that would work, but what about a user program that just polls on >the device, as the rest of this thread discusses? As removable devices >are not the "norm" it would seem a bit of overkill to create 16 >partitions for every block device, if they need them or not. > >thanks, > >greg k-h > > > Accessing the partition would not cause the rescan (accessing the whole disk causes.) I think devfs does/did this rescan on access. --Mika - 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/