Update of /cvsroot/ssic-linux/openssi/kernel/fs
In directory sc8-pr-cvs1:/tmp/cvs-serv16020
Modified Files:
Tag: OPENSSI-RH
namespace.c
Log Message:
M openssi/kernel/fs/namespace.c
Removed bogus devfs check in do_mounts() that was preventing
mounts on directories in /dev. (/dev/shm) Checked in Dave's
debugging printing routines for vfsmounts.
Index: namespace.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/fs/namespace.c,v
retrieving revision 1.2.2.2
retrieving revision 1.2.2.3
diff -C2 -d -r1.2.2.2 -r1.2.2.3
*** namespace.c 3 Jul 2003 21:21:20 -0000 1.2.2.2
--- namespace.c 25 Jul 2003 01:45:38 -0000 1.2.2.3
***************
*** 146,149 ****
--- 146,196 ----
}
}
+
+ extern void print_dentry(struct dentry *);
+
+ void print_vfsmount(struct vfsmount *p)
+ {
+ printk("vfsmount 0x%p\n", p);
+ printk("\tparent 0x%p\n", p->mnt_parent);
+ printk("\tmountpoint 0x%p\n", p->mnt_mountpoint);
+ print_dentry(p->mnt_mountpoint);
+ printk("\troot 0x%p\n", p->mnt_root);
+ print_dentry(p->mnt_root);
+ printk("\tsb 0x%p\n", p->mnt_sb);
+ #ifdef SKIP
+ struct list_head mnt_mounts; /* list of children, anchored here */
+ struct list_head mnt_child; /* and going through their mnt_child */
+ #endif
+ printk("\tcount %d\n", atomic_read(&p->mnt_count));
+ printk("\tflags %x\n", p->mnt_flags);
+ printk("\tdevname %s\n", p->mnt_devname? p->mnt_devname: "(null)");
+ #ifdef SKIP
+ struct list_head mnt_list;
+ #endif
+ #ifdef CONFIG_SSI
+ printk("\tuniqueid %ld\n", p->mnt_uniqueid);
+ printk("\tops 0x%p\n", p->mnt_ops);
+ #endif
+ }
+
+ void print_all_vfsmounts(void)
+ {
+ struct vfsmount *p = NULL;
+ int i;
+ unsigned int nr_hash = 1UL << hash_bits;
+
+ for (i = 0; i < nr_hash ; i++) {
+ struct list_head * head = &mount_hashtable[i];
+ struct list_head * tmp = head;
+ for (;;) {
+ tmp = tmp->next;
+ p = NULL;
+ if (tmp == head)
+ break;
+ p = list_entry(tmp, struct vfsmount, mnt_hash);
+ print_vfsmount(p);
+ }
+ }
+ }
#endif /* CONFIG_SSI */
***************
*** 997,1008 ****
return retval;
- #ifdef CONFIG_SSI
- /* Allow devfs manipulation only from kernel. */
- if ((nd.mnt->mnt_sb->s_flags & MS_DEVFS) && !(flags & MS_DEVFS)) {
- retval = -EBUSY;
- goto out;
- }
- #endif /* CONFIG_SSI */
-
/* SSI_XXX: no support yet for loopback (MS_BIND) or move (MS_MOVE) */
if (flags & MS_REMOUNT)
--- 1044,1047 ----
***************
*** 1017,1021 ****
retval = do_add_mount(&nd, type_page, flags, mnt_flags,
dev_name, data_page, dir_name);
- out:
#else
retval = do_add_mount(&nd, type_page, flags, mnt_flags,
--- 1056,1059 ----
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
|