This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gfs2-utils: master - libgfs2: Remove unused code


Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=fb573d2adb00d893a3abc122106aadd146f89900
Commit:        fb573d2adb00d893a3abc122106aadd146f89900
Parent:        bf3470a1983a8940ff1640d98f5dcdef5215617a
Author:        Steven Whitehouse <swhiteho@redhat.com>
AuthorDate:    Fri Jan 23 10:29:21 2009 +0000
Committer:     Steven Whitehouse <swhiteho@redhat.com>
CommitterDate: Fri Jan 23 10:29:21 2009 +0000

libgfs2: Remove unused code

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
---
 gfs2/libgfs2/size.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/gfs2/libgfs2/size.c b/gfs2/libgfs2/size.c
index 8fc0da6..e96f4bc 100644
--- a/gfs2/libgfs2/size.c
+++ b/gfs2/libgfs2/size.c
@@ -27,20 +27,7 @@ static int
 do_device_size(int fd, uint64_t *bytes)
 {
 	off_t off;
-#if 0
-	int error;
-	unsigned long size;
-
-	error = ioctl(fd, BLKGETSIZE64, bytes);	/* Size in bytes */
-	if (!error)
-		return 0;
 
-	error = ioctl(fd, BLKGETSIZE, &size);	/* Size in 512-byte blocks */
-	if (!error) {
-		*bytes = ((uint64_t) size) << 9;
-		return 0;
-	}
-#endif
 	off = lseek(fd, 0, SEEK_END);
 	if (off >= 0) {
 		*bytes = off;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]