From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Tue, 23 Jan 2001 02:52:13 +0000 Subject: Re: modutils 2.4.2, please test asap Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > From: Keith Owens > Sent: Monday, January 22, 2001 3:42 PM > > On Mon, 22 Jan 2001 15:21:33 -0800, > David Brownell wrote: > >Ah, but the hotplug utilities use it. > > > >A pure 2.2 system (kernel + modutils) has no "modules.*map" files. > >A pure 2.4 system (ditto) does have them. > > > >But 2.2.18 kernel + 2.4 modutils will generate "modules.*map" files, > >which is not compatible with the previous behavior of 2.2 modutils > >with such kernels. > > Tricky. Something has to know whether to use modules.usbmap or not on > 2.2. This is one occasion when _not_ creating a file might be the > correct approach. It'd certainly be more convenient for 2.2 based systems. > If I change modutils 2.4.2 to unlink existing map > files and only create a new map file if at least one module contains > that map, will that fix the 2.2 problem? Yes. Though given what you say below, I wonderif a better fix would be to never create "modules.usbmap" if there are 2.2 style /lib/modules/ directories. (That is, make the backwards compatibility mode cover all the features that changed.) > What, if anything, will break if maps files are not always created? Likely nothing will break, but the 2.4 systems might get a bit confused (falling back to usb.distmap)which _might_ cause something to break. I'll have to think about it. - Dave > >I forget (haven't used 2.2 in a long time) -- does 2.4 modutils > >keep to the 2.2 style module tree on 2.2 kernels, or does it change > >that around too? > > Modutils 2.4 handles both directory styles under /lib/modules/, > for backwards compatibility. It is the kernel Makefile which sets the > directory style for /lib/modules and there are no plans to backport the > 2.4 style to 2.2. AC will not take a 2.2 kernel patch that forces > users to upgrade their user space utilities. > _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel