[Ocfs2-tools-commits] jlbec commits r299 - in trunk: debugfs.ocfs2
mkfs.ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Sep 30 14:20:27 CDT 2004
Author: jlbec
Date: 2004-09-30 14:20:25 -0500 (Thu, 30 Sep 2004)
New Revision: 299
Modified:
trunk/debugfs.ocfs2/Makefile
trunk/mkfs.ocfs2/Makefile
trunk/mkfs.ocfs2/mkfs.c
Log:
o Remove asm/bitops.h from mkfs.c
Modified: trunk/debugfs.ocfs2/Makefile
===================================================================
--- trunk/debugfs.ocfs2/Makefile 2004-09-30 15:46:44 UTC (rev 298)
+++ trunk/debugfs.ocfs2/Makefile 2004-09-30 19:20:25 UTC (rev 299)
@@ -16,6 +16,8 @@
OBJS = $(subst .c,.o,$(CFILES))
+LIBOCFS2_LIBS = -L$(TOPDIR)/libocfs2 -locfs2
+
VERSION_FILES = $(CFILES) $(HFILES)
VERSION_SRC = $(CFILES)
VERSION_PREFIX = OCFS2
@@ -30,6 +32,6 @@
$(TOPDIR)/mkinstalldirs $(DIST_DIR)/include
debugfs.ocfs2: $(OBJS)
- $(LINK) $(GLIB_LIBS) -lreadline -lncurses
+ $(LINK) $(GLIB_LIBS) $(LIBOCFS2_LIBS) $(COM_ERR_LIBS) -lreadline -lncurses
include $(TOPDIR)/Postamble.make
Modified: trunk/mkfs.ocfs2/Makefile
===================================================================
--- trunk/mkfs.ocfs2/Makefile 2004-09-30 15:46:44 UTC (rev 298)
+++ trunk/mkfs.ocfs2/Makefile 2004-09-30 19:20:25 UTC (rev 299)
@@ -17,7 +17,7 @@
LIBOCFS2_LIBS = -L$(TOPDIR)/libocfs2 -locfs2
INCLUDES = $(LIBOCFS2_CFLAGS)
-DEFINES = -DLINUX -DUSERSPACE_TOOL -DFORMAT_OCFS -DOCFS2_FLAT_INCLUDES
+DEFINES = -DOCFS2_FLAT_INCLUDES
OPTIMIZE = -O2
Modified: trunk/mkfs.ocfs2/mkfs.c
===================================================================
--- trunk/mkfs.ocfs2/mkfs.c 2004-09-30 15:46:44 UTC (rev 298)
+++ trunk/mkfs.ocfs2/mkfs.c 2004-09-30 19:20:25 UTC (rev 299)
@@ -41,9 +41,8 @@
#include <netinet/in.h>
#include <inttypes.h>
-#include <asm/bitops.h>
-
#include "ocfs2.h"
+#include "bitops.h"
/* jfs_compat.h defines these */
#undef cpu_to_be32
@@ -912,7 +911,7 @@
off = offset;
while ((size - off + count >= num_bits) &&
- (next_zero = find_next_zero_bit(buf, size, off)) != size) {
+ (next_zero = ocfs2_find_next_bit_clear(buf, size, off)) != size) {
if (next_zero >= bitmap->valid_bits)
break;
@@ -982,7 +981,7 @@
bitmap->bm_record->bi.used_bits += num_bits;
while (num_bits--) {
- set_bit(start_bit, bitmap->buf);
+ ocfs2_set_bit(start_bit, bitmap->buf);
start_bit++;
}
More information about the Ocfs2-tools-commits
mailing list