[Ocfs2-tools-commits] jlbec commits r952 - trunk/mkfs.ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Jun 16 11:24:54 CDT 2005
Author: jlbec
Date: 2005-06-16 11:24:51 -0500 (Thu, 16 Jun 2005)
New Revision: 952
Modified:
trunk/mkfs.ocfs2/mkfs.c
Log:
o Warn a user if they have created a heartbeat device on a
larger-than-needed partition.
Modified: trunk/mkfs.ocfs2/mkfs.c
===================================================================
--- trunk/mkfs.ocfs2/mkfs.c 2005-06-16 16:07:23 UTC (rev 951)
+++ trunk/mkfs.ocfs2/mkfs.c 2005-06-16 16:24:51 UTC (rev 952)
@@ -864,6 +864,12 @@
if (s->hb_dev) {
uint64_t dev_size = 0;
+ if ((ret * blocksize) > (2 * 1024 * 1024)) {
+ fprintf(stderr,
+ "%s: Warning: Volume larger than required for a heartbeat device\n",
+ s->progname);
+ }
+
/* Blocks for system dir, root dir,
* global allocator*/
dev_size = 4;
More information about the Ocfs2-tools-commits
mailing list