[Ocfs2-tools-devel] [PATCH 1/3] fswreck: Build fswreck as an uninstalled program.

Joel Becker joel.becker at oracle.com
Wed Jun 3 15:25:15 PDT 2009


It should be built, but not installed.

Signed-off-by: Joel Becker <joel.becker at oracle.com>
---
 Makefile         |    2 +-
 fswreck/Makefile |    4 +---
 fswreck/main.c   |    2 ++
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 0871849..88106fb 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ CHKCONFIG_DEP = chkconfig
 COMPILE_PY = 1
 endif
 
-SUBDIRS = include libtools-internal libo2dlm libo2cb libocfs2 fsck.ocfs2 mkfs.ocfs2 mounted.ocfs2 tunefs.ocfs2 debugfs.ocfs2 o2cb_ctl ocfs2_hb_ctl mount.ocfs2 ocfs2_controld o2image listuuid sizetest extras patches
+SUBDIRS = include libtools-internal libo2dlm libo2cb libocfs2 fsck.ocfs2 mkfs.ocfs2 mounted.ocfs2 tunefs.ocfs2 debugfs.ocfs2 o2cb_ctl ocfs2_hb_ctl mount.ocfs2 ocfs2_controld o2image listuuid sizetest extras fswreck patches
 
 ifdef BUILD_OCFS2CONSOLE
 SUBDIRS += ocfs2console
diff --git a/fswreck/Makefile b/fswreck/Makefile
index f75d1a5..3848cc2 100644
--- a/fswreck/Makefile
+++ b/fswreck/Makefile
@@ -2,15 +2,13 @@ TOPDIR = ..
 
 include $(TOPDIR)/Preamble.make
 
-SBIN_PROGRAMS = fswreck
-
 DEFINES = -DG_DISABLE_DEPRECATED -DLINUX
 DEFINES += -DVERSION=\"$(VERSION)\"
 
 INCLUDES = -I$(TOPDIR)/include -Iinclude
 INCLUDES += $(GLIB_CFLAGS)
 
-UNINST_PROGRAM = fswreck
+UNINST_PROGRAMS = fswreck
 
 CFILES = main.c corrupt.c chain.c extent.c group.c inode.c local_alloc.c truncate_log.c special.c symlink.c dir.c
 
diff --git a/fswreck/main.c b/fswreck/main.c
index 8e087dc..39502e1 100644
--- a/fswreck/main.c
+++ b/fswreck/main.c
@@ -103,6 +103,8 @@ static void usage (char *progname)
 {
 	int i;
 
+	g_print ("%s is a program to corrupt a filesystem\n", progname);
+        g_print ("THIS WILL DAMAGE YOUR FILESYSTEM.  USE AT YOUR OWN RISK.\n");
 	g_print ("Usage: %s [OPTION]... [DEVICE]\n", progname);
 	g_print ("	-n <node slot number>\n");
 	g_print ("	-c <corrupt code>\n");
-- 
1.6.3.1




More information about the Ocfs2-tools-devel mailing list