[SSI] openssi/util-linux/mount mount.c,1.1.15.2,1.1.15.2.2.1

Roger Tsang <[email protected]> Sun, 15 Aug 2010 03:42:45 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/util-linux/mount
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv14969/mount

Modified Files:
      Tag: OPENSSI-CENTOS
	mount.c 
Log Message:
OpenSSI changes for util-linux-2.12a-24.el4_8.1


Index: mount.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/util-linux/mount/Attic/mount.c,v
retrieving revision 1.1.15.2
retrieving revision 1.1.15.2.2.1
diff -u -d -r1.1.15.2 -r1.1.15.2.2.1
--- mount.c	15 Aug 2010 03:36:56 -0000	1.1.15.2
+++ mount.c	15 Aug 2010 03:42:43 -0000	1.1.15.2.2.1
@@ -37,6 +37,8 @@
  * 2000-05-11 Mark A. Peloquin <[email protected]>
  * - check_special_mountprog now returns correct status
  * 2000-11-08 aeb: accept nonnumeric uid=, gid= options
+ * Aug 31 2002 Aneesh Kumar K.V ([email protected])
+ * Support for SSI cluster 
  * 2001-07-13 Michael K. Johnson <[email protected]>
  * - implemented -a -O
  */
@@ -58,6 +60,12 @@
 #include <sys/mount.h>
 #include <sys/param.h>
[...1041 lines suppressed...]
+		}
+#endif
 		result = mount_one (xstrdup (mc->m.mnt_fsname),
 				    xstrdup (mc->m.mnt_dir),
 				    xstrdup (mc->m.mnt_type),
@@ -1834,6 +2594,14 @@
 			spec = argv[0];
 			node = argv[1];
 		}
+
+#ifdef NOTYET
+		if (mounted(spec, node)) {
+			error (_("mount: %s is already mounted "), spec);
+			result = EX_FAIL;
+			break;
+		}
+#endif
 		result = mount_one (spec, node, types, NULL, options, 0, 0);
 		break;
       


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev