[Ocfs2-tools-commits] zab commits r334 - trunk/fsck.ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Sat Oct 16 16:33:11 CDT 2004


Author: zab
Date: 2004-10-16 16:33:09 -0500 (Sat, 16 Oct 2004)
New Revision: 334

Modified:
   trunk/fsck.ocfs2/fsck.c
Log:
o comment out irritating question about fscking regular files


Modified: trunk/fsck.ocfs2/fsck.c
===================================================================
--- trunk/fsck.ocfs2/fsck.c	2004-10-15 21:53:00 UTC (rev 333)
+++ trunk/fsck.ocfs2/fsck.c	2004-10-16 21:33:09 UTC (rev 334)
@@ -150,7 +150,6 @@
 	int64_t blkno, blksize;
 	o2fsck_state _ost, *ost = &_ost;
 	int c, ret, rw = OCFS2_FLAG_RW;
-	struct stat st;
 
 	memset(ost, 0, sizeof(o2fsck_state));
 	ost->ost_ask = 1;
@@ -229,11 +228,14 @@
 
 	filename = argv[optind];
 
+#if 0 /* irritating, and e2fsck doesn't do it.  what do others think? */
+	struct stat st;
 	if (stat(filename, &st) == 0 && !S_ISBLK(st.st_mode) &&
 	    !prompt(ost, PY, "%s isn't a special block device.  Proceed "
 		    "anyway?", filename)) {
 		exit(FSCK_ERROR);
 	}
+#endif
 
 	/* XXX we'll decide on a policy for using o_direct in the future.
 	 * for now we want to test against loopback files in ext3, say. */



More information about the Ocfs2-tools-commits mailing list