lkml.org 
[lkml]   [2003]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Trying to improve /proc/filesystems
Date
Hi,
I'm trying to do

nodev xxx 0
yyy 2
(or replace nodev by 0->x)

with the following but Linux complains : VFS : unable to mount
root....Someone could help ?

--- linux-2.5.72/fs/filesystems.c 2003-06-22 20:33:07.000000000 +0200
+++ linux-2.5.72FF/fs/filesystems.c 2003-06-29 18:53:08.000000000 +0200
@@ -194,15 +194,25 @@

int get_filesystem_list(char * buf)
{
- int len = 0;
+ int len = 0, dev = 0;
struct file_system_type * tmp;
+ struct list_head *p;
+ char buf2[6];

read_lock(&file_systems_lock);
tmp = file_systems;
while (tmp && len < PAGE_SIZE - 80) {
- len += sprintf(buf+len, "%s\t%s\n",
+ dev=0;
+ list_for_each(p,&tmp->fs_supers){
+ dev++;
+ }
+ len += sprintf(buf+len, "%s\t%s\t%d\n",
(tmp->fs_flags & FS_REQUIRES_DEV) ? "" : "nodev",
- tmp->name);
+ tmp->name,
+ dev);
tmp = tmp->next;
}
read_unlock(&file_systems_lock);
-
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/

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