Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 24 Feb 2002 12:18:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 24 Feb 2002 12:18:32 -0500 Received: from gate.perex.cz ([194.212.165.105]:45584 "EHLO gate.perex.cz") by vger.kernel.org with ESMTP id ; Sun, 24 Feb 2002 12:18:21 -0500 Date: Sun, 24 Feb 2002 18:18:15 +0100 (CET) From: Jaroslav Kysela X-X-Sender: To: Alan Cox cc: LKML , Linus Torvalds Subject: Re: KMOD error messages - proposal and patch In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 24 Feb 2002, Alan Cox wrote: > > + /* Don't allow request_module() when ramfs based rootfs is mounted! */ > > + if ( ! strcmp("rootfs", current->fs->pwdmnt->mnt_sb->s_type->name) ) { > > + printk(KERN_ERR "request_module[%s]: Real root fs not mounted\n", > > + module_name); > > + return -EPERM; > > + } > > The ramfs based root file system once the load ramfs from tar stuff is > working may have a completely valid modprobe on it. > > Perhaps request_module() needs a 'quiet' flag Well, I though about this, but we can suppress with this way important informative error messages as well. I think that the condition in kmod might be exteded in future when the ramfs initialization will be implemented. Jaroslav ----- Jaroslav Kysela Linux Kernel Sound Maintainer ALSA Project http://www.alsa-project.org SuSE Linux http://www.suse.com - 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/