Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[SSI] openssi/kernel/fs namespace.c,1.2.2.2,1.2.2.3: msg#00219

Subject: [SSI] openssi/kernel/fs namespace.c,1.2.2.2,1.2.2.3
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
ide.eclipse.wtp...    bug-tracking.ro...    xfree86.cvs/200...    lisp.wxcl.devel...    file-systems.ar...    kde.devel.kwrit...    jakarta.jetspee...    qnx.openqnx.dev...    drivers.openib/...    ports.xbox.deve...    gis.gdal.devel/...    netbsd.ports.ma...    ubuntu.marketin...    systemtap/2005-...    web.omniweb/200...    mail.qmail.ldap...    hardware.soekri...    os.netbsd.devel...    audio.madman.ge...    tv.freeguide-tv...    cluster.openmos...    education.ezpro...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation