This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
gfs2-utils: master - mkfs: Remove unused code
- From: Steven Whitehouse <swhiteho at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Fri, 23 Jan 2009 11:23:30 +0000 (UTC)
- Subject: gfs2-utils: master - mkfs: Remove unused code
Gitweb: http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=9c43766eee30cc04dc3ecf7605de6341b466987e
Commit: 9c43766eee30cc04dc3ecf7605de6341b466987e
Parent: 94797fb53fae795d4b5461257091b9ab8f6a77e7
Author: Steven Whitehouse <swhiteho@redhat.com>
AuthorDate: Fri Jan 23 10:23:08 2009 +0000
Committer: Steven Whitehouse <swhiteho@redhat.com>
CommitterDate: Fri Jan 23 10:23:08 2009 +0000
mkfs: Remove unused code
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
---
gfs2/mkfs/main_jadd.c | 33 ---------------------------------
1 files changed, 0 insertions(+), 33 deletions(-)
diff --git a/gfs2/mkfs/main_jadd.c b/gfs2/mkfs/main_jadd.c
index f0255d0..3197fe5 100644
--- a/gfs2/mkfs/main_jadd.c
+++ b/gfs2/mkfs/main_jadd.c
@@ -10,7 +10,6 @@
#include <sys/file.h>
#include <sys/vfs.h>
#include <sys/mount.h>
-//#include <linux/fs.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
@@ -323,37 +322,6 @@ add_qc(struct gfs2_sbd *sdp)
new_name, error, strerror(errno));
}
-#if 0 /* FIXME: When we have a mountpoint in sysfs for gfs2meta, enable this
- * to get the lock_table name and block size from the ondisk superblock
- */
-void
-read_superblock(struct gfs2_sbd *sdp)
-{
- int fd;
- char buf[PATH_MAX];
-
- fd = open(sdp->device_name, O_RDONLY);
- if (fd < 0) {
- die("Could not open the block device %s: %s\n",
- sdp->device_name, strerror(errno));
- }
- do_lseek(fd, 0x10 * 4096);
- do_read(fd, buf, PATH_MAX);
- gfs2_sb_in(&(sdp->sd_sb), buf);
- sdp->bsize = sdp->sd_sb.sb_bsize;
- strcpy(lock_table,sdp->sd_sb.sb_locktable);
- sprintf(sdp->meta_mount, "%s%s%s", "/sys/fs/gfs2/", lock_table,
- "/meta");
-
- close(fd);
-}
-
-void
-gather_info(struct gfs2_sbd *sdp)
-{
- read_superblock(sdp);
-}
-#else
void
gather_info(struct gfs2_sbd *sdp)
{
@@ -364,7 +332,6 @@ gather_info(struct gfs2_sbd *sdp)
}
sdp->bsize = statbuf.f_bsize;
}
-#endif
void
find_current_journals(struct gfs2_sbd *sdp)