public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* gfs2-utils: master - libgfs2: Remove unused code
@ 2009-01-23 11:31 Steven Whitehouse
0 siblings, 0 replies; only message in thread
From: Steven Whitehouse @ 2009-01-23 11:31 UTC (permalink / raw)
To: cluster-cvs-relay
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-23 11:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-23 11:31 gfs2-utils: master - libgfs2: Remove unused code Steven Whitehouse
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).