logo       


[SSI] openssi/util-linux/mount mount.c,1.1.5.1.2.5,1.1.5.1.2.6: msg#00325

Subject: [SSI] openssi/util-linux/mount mount.c,1.1.5.1.2.5,1.1.5.1.2.6
Update of /cvsroot/ssic-linux/openssi/util-linux/mount
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19271

Modified Files:
      Tag: OPENSSI-DEBIAN
        mount.c 
Log Message:
merge with redhat



Index: mount.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/util-linux/mount/Attic/mount.c,v
retrieving revision 1.1.5.1.2.5
retrieving revision 1.1.5.1.2.6
diff -u -d -r1.1.5.1.2.5 -r1.1.5.1.2.6
--- mount.c     30 Mar 2004 00:05:51 -0000      1.1.5.1.2.5
+++ mount.c     28 May 2004 03:32:23 -0000      1.1.5.1.2.6
@@ -634,6 +634,8 @@
                             _("mount: %s duplicate - not mounted"),
                             mc->m.mnt_fsname, _PATH_FSTAB);
                }
+       } else if (strstr(spec, "/nbd/") != NULL) {
+               spec = strdup(mc->m.mnt_fsname);
        } else
                spec = 0;               /* just for gcc */
 
@@ -1305,9 +1307,10 @@
 
   /* If chard specified, then device must be UUID= or LABEL= */
   /* OK, if /dev/root, since that is how the linuxrc does initial root mount */
+  /* DRBD uses /dev/nbd/* so allow that as well */
   if (opts && has_chard_opt(opts)) {
       if (strncmp(spec, "UUID=", 5) && strncmp(spec, "LABEL=", 6) != 0 &&
-       strcmp(spec, "/dev/root") != 0)
+       strcmp(spec, "/dev/root") != 0 && strstr(spec, "/nbd/") == NULL)
          die (EX_FAIL,
               _("mount: %s: only devices specified as UUID= or LABEL= "
                 "can be mounted chard\n"), spec);
@@ -1852,8 +1855,10 @@
                for (i = 0; i < node_count; i++) {
                        clusternode_info_t info;
 
-                       if (clusternode_info(nodes[i], sizeof(info), &info) == 
-1)
+                       if (clusternode_info(nodes[i], sizeof(info), &info) == 
-1) {
                                perror("clusternode_info");
+                               continue;
+                       }
                        if (info.node_state == CLUSTERNODE_UP ||
                            info.node_state == CLUSTERNODE_COMINGUP)
                                break;



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
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