mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RE: [PATCH] Trying to improve /proc/filesystems
@ 2003-06-30  7:55 Frederick, Fabian
  2003-06-30  8:16 ` viro
  0 siblings, 1 reply; 4+ messages in thread
From: Frederick, Fabian @ 2003-06-30  7:55 UTC (permalink / raw)
  To: 'viro@parcelfarce.linux.theplanet.co.uk'
  Cc: 'linux-kernel@vger.kernel.org'

Alexander,

	Why don't we have centralized /proc/filesystems access ? 2 fields
file for fs can't be a standard
Take a look at slab outputs evolution for instance....

Regards,
Fabian

-----Message d'origine-----
De : viro@parcelfarce.linux.theplanet.co.uk
[mailto:viro@parcelfarce.linux.theplanet.co.uk]
Envoyé : lundi 30 juin 2003 09:53
À : Frederick, Fabian
Cc : 'linux-kernel@vger.kernel.org'
Objet : Re: [PATCH] Trying to improve /proc/filesystems


On Mon, Jun 30, 2003 at 09:21:00AM +0200, Frederick, Fabian wrote:
> 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 ?

Yes.  Layout of files in procfs should be treated as a part of ABI.
IOW, you make incompatible change - things break.

Folks, file in /proc is not different from a syscall in that respect -
changing layout has the same effect as changes of layout in syscall
arguments.

IOW, don't do that.

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH] Trying to improve /proc/filesystems
@ 2003-06-30  7:21 Frederick, Fabian
  2003-06-30  7:52 ` viro
  0 siblings, 1 reply; 4+ messages in thread
From: Frederick, Fabian @ 2003-06-30  7:21 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'

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);


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-30  8:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-30  7:55 [PATCH] Trying to improve /proc/filesystems Frederick, Fabian
2003-06-30  8:16 ` viro
  -- strict thread matches above, loose matches on Subject: below --
2003-06-30  7:21 Frederick, Fabian
2003-06-30  7:52 ` viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®