public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - libgfs2: Remove unused code
@ 2009-01-23 12:05 Fabio M. Di Nitto
0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-01-23 12:05 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=af7f4f51b519e320773bb2c7c9ed962160d9520b
Commit: af7f4f51b519e320773bb2c7c9ed962160d9520b
Parent: d4f5b4fc02368f4a855dda1bd291a92e7b0f0e0b
Author: Steven Whitehouse <swhiteho@redhat.com>
AuthorDate: Fri Jan 23 10:29:21 2009 +0000
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Fri Jan 23 12:51:58 2009 +0100
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 12:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-23 12:05 cluster: STABLE3 - libgfs2: Remove unused code Fabio M. Di Nitto
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).