[Ocfs2-tools-commits] manish commits r775 - trunk/mount.ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Mar 30 20:06:37 CST 2005


Author: manish
Date: 2005-03-30 20:06:35 -0600 (Wed, 30 Mar 2005)
New Revision: 775

Modified:
   trunk/mount.ocfs2/mount.ocfs2.c
Log:
symlinks *do* work


Modified: trunk/mount.ocfs2/mount.ocfs2.c
===================================================================
--- trunk/mount.ocfs2/mount.ocfs2.c	2005-03-31 01:23:45 UTC (rev 774)
+++ trunk/mount.ocfs2/mount.ocfs2.c	2005-03-31 02:06:35 UTC (rev 775)
@@ -180,19 +180,13 @@
 static int check_for_hb_ctl(const char *hb_ctl_path)
 {
 	int ret;
-	struct stat hb_stats;
 
-	ret = lstat(hb_ctl_path, &hb_stats);
+	ret = access(hb_ctl_path, X_OK);
 	if (ret < 0) {
 		ret = errno;
 		return ret;
 	}
 
-	/* The kernel can't follow a symbolic link for this so lets
-	 * not get stuck in the 1st place. */
-	if (S_ISLNK(hb_stats.st_mode))
-		ret = ELOOP;
-
 	return ret;
 }
 



More information about the Ocfs2-tools-commits mailing list