lkml.org 
[lkml]   [1997]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectproc filesystem question



Coda used to have nice files in /proc/net displaying statistics and cache
contents. I wanted to move it to /proc/coda or better /proc/fs/coda.

The routine proc_register_dynamic has disappeared or something (it doesn't
load) and perhaps because of that, I can't get it going anymore in 2.1.73.
I see /proc/coda but not the file. In fact poking around in /proc/coda
provokes messages:

[braam@sonata linux2.1]$ cd /proc/coda
[braam@sonata coda]$ ls
ls: .: Not a directory
[braam@sonata coda]$ pwd
/proc/coda

NOTE: I have not "registered" my proc entries in proc_fs.h. It would be
great to have a whole tree for filesystems with subdirs for NFS, ext2,
Coda etc. Would this be easy and acceptable to do?

Who can help?

Thanks a lot. Details below.

-- Peter --

(see fs/coda/psdev.c)

struct proc_dir_entry proc_coda = {
0, 4, "coda",
S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR, 2, 0, 0,
0, &proc_net_inode_operations,

};

struct proc_dir_entry proc_coda_ncstats = {
0 , 12, "coda-ncstats",
S_IFREG | S_IRUGO, 1, 0, 0,
0, &proc_net_inode_operations,
cfsnc_nc_info
};

int init_coda_psdev(void)
{
..... irrelevant stuff ....

#ifdef CONFIG_PROC_FS
proc_register(&proc_root,&proc_coda);
proc_register(&proc_coda, &proc_coda_ncstats);
coda_sysctl_init();
#endif
return 0;
}




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