public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: "Fabio M. Di Nitto" <fabbione@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: gfs2-utils: master - gfs2: drop dead test code
Date: Mon, 22 Jun 2009 16:08:00 -0000	[thread overview]
Message-ID: <20090622150009.ADA2A1201D4@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=a7faf4a600ce63ef22e03f2f50bfda5b7db3a7dc
Commit:        a7faf4a600ce63ef22e03f2f50bfda5b7db3a7dc
Parent:        4bda839ccd7ab919a12684e02551e334a41aecad
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Mon Jun 22 16:59:49 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Mon Jun 22 16:59:49 2009 +0200

gfs2: drop dead test code

ACK by Bob and Steven

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 gfs2/fsck/Makefile.am       |    2 -
 gfs2/fsck/test_bitmap.c     |   40 ------------------
 gfs2/fsck/test_block_list.c |   93 -------------------------------------------
 3 files changed, 0 insertions(+), 135 deletions(-)

diff --git a/gfs2/fsck/Makefile.am b/gfs2/fsck/Makefile.am
index d24a2e0..15a5b1d 100644
--- a/gfs2/fsck/Makefile.am
+++ b/gfs2/fsck/Makefile.am
@@ -2,8 +2,6 @@ MAINTAINERCLEANFILES	= Makefile.in
 
 noinst_PROGRAMS		= fsck.gfs2
 
-# noinst_PROGRAMS	= test_bitmap.c test_block_list.c
-
 noinst_HEADERS		= eattr.h fs_bits.h fsck.h fs_recovery.h hash.h \
 			  inode_hash.h link.h lost_n_found.h metawalk.h util.h
 
diff --git a/gfs2/fsck/test_bitmap.c b/gfs2/fsck/test_bitmap.c
deleted file mode 100644
index 21bf961..0000000
--- a/gfs2/fsck/test_bitmap.c
+++ /dev/null
@@ -1,40 +0,0 @@
-#include "clusterautoconfig.h"
-
-#include <stdint.h>
-#include <stdio.h>
-#include "log.h"
-#include "bitmap.h"
-
-int main(int argc, char **argv)
-{
-	struct bmap map;
-	uint8_t val = 0;
-
-	bitmap_create(&map, 1000, 8);
-
-	bitmap_set(&map, 1, 3);
-
-	bitmap_get(&map, 1, &val);
-
-	printf("%d\n", val);
-
-	bitmap_set(&map, 2, 7);
-
-	bitmap_get(&map, 2, &val);
-
-	printf("%d\n", val);
-
-	bitmap_get(&map, 3, &val);
-
-	printf("%d\n", val);
-
-	bitmap_clear(&map, 2);
-
-	bitmap_get(&map, 2, &val);
-
-	printf("%d\n", val);
-
-	bitmap_destroy(&map);
-
-
-}
diff --git a/gfs2/fsck/test_block_list.c b/gfs2/fsck/test_block_list.c
deleted file mode 100644
index 3750837..0000000
--- a/gfs2/fsck/test_block_list.c
+++ /dev/null
@@ -1,93 +0,0 @@
-#include "clusterautoconfig.h"
-
-#include <stdio.h>
-#include <stdint.h>
-#include "block_list.h"
-
-#define BITS 100
-void print_map(struct block_list *il, int count);
-
-int main(int argc, char **argv)
-{
-	int i;
-	struct block_list *il;
-
-	il = block_list_create(BITS, gbmap);
-
-	/*for(i = 0; i < BITS; i++) {
-		block_check(il, i, &k);
-		printf("Block %d is %lu\n", i, k);
-		}*/
-	print_map(il, BITS);
-
-	block_mark(il, 3, meta_free);
-	block_mark(il, 6, inode_lnk);
-	block_mark(il, 6, bad_block);
-	block_mark(il, BITS-2, meta_inval);
-	block_mark(il, BITS-1, meta_free);
-	if(block_mark(il, BITS, meta_free)) {
-		fprintf(stderr, "Block %d out of bounds\n", BITS);
-	}
-
-	/*for(i = 0; i < BITS; i++) {
-		block_check(il, i, &k);
-		printf("Block %d is %lu\n", i, k);
-		}*/
-	print_map(il, BITS);
-
-	for(i = 70; i < 80; i++) {
-		block_mark(il, i, meta_free);
-	}
-
-	block_clear(il, BITS-2, meta_free);
-
-	/*for(i = 0; i < BITS; i++) {
-		block_check(il, i, &k);
-		printf("Block %d is %lu\n", i, k);
-		}*/
-	print_map(il, BITS);
-	return 0;
-
-}
-
-void print_map(struct block_list *il, int count)
-{
-	int i, j;
-	struct block_query q;
-
-	printf("Printing map of blocks - 60 blocks per row\n");
-	j = 0;
-	for(i = 0; i < count; i++) {
-
-		if(j > 59) {
-			printf("\n");
-			j = 0;
-		}
-		else if(!(j %10) && j != 0) {
-			printf(" ");
-		}
-		j++;
-		block_check(il, i, &q);
-		printf("%X", q.block_type);
-
-	}
-	printf("\n");
-
-	printf("Printing map of bad blocks - 60 blocks per row\n");
-	j = 0;
-	for(i = 0; i < count; i++) {
-
-		if(j > 59) {
-			printf("\n");
-			j = 0;
-		}
-		else if(!(j %10) && j != 0) {
-			printf(" ");
-		}
-		j++;
-		block_check(il, i, &q);
-		printf("%X", q.bad_block);
-
-	}
-	printf("\n");
-}


                 reply	other threads:[~2009-06-22 16:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090622150009.ADA2A1201D4@lists.fedorahosted.org \
    --to=fabbione@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).