lkml.org 
[lkml]   [1996]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 1.3.71: VFS panic; Unable to mount root filesystem
: But: Couldn't some kind soul add a better explanation instead of 
: "cannot mount". Why did the mount fail? Is the device unknown, or is
: the filesystem type unknown, or what? Some better message would be
: great for 2.0.

Try the following.
[This allows you to distinguish a failed blkdev_open() from an
unrecognized filesystem.]

--- super.c~ Mon Mar 4 20:56:36 1996
+++ super.c Sat Mar 9 00:11:47 1996
@@ -878,10 +878,11 @@
filp.f_mode = 1;
retval = blkdev_open(&d_inode, &filp);
}
-
+ if (retval)
+ printk("VFS: Cannot open root device %s\n",
+ kdevname(ROOT_DEV));
+ else
for (fs_type = file_systems ; fs_type ; fs_type = fs_type->next) {
- if(retval)
- break;
if (!fs_type->requires_dev)
continue;
sb = read_super(ROOT_DEV,fs_type->name,root_mountflags,NULL,1);


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:1.882 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site