Module Name:    src
Committed By:   pooka
Date:           Thu Nov 19 13:42:29 UTC 2009

Modified Files:
        src/sys/rump/librump/rumpuser: rumpuser.c

Log Message:
.. umm, and use correct device value for previous.
And use 64bit arithmetic.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/rump/librump/rumpuser/rumpuser.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpuser/rumpuser.c
diff -u src/sys/rump/librump/rumpuser/rumpuser.c:1.45 src/sys/rump/librump/rumpuser/rumpuser.c:1.46
--- src/sys/rump/librump/rumpuser/rumpuser.c:1.45	Thu Nov 19 13:25:48 2009
+++ src/sys/rump/librump/rumpuser/rumpuser.c	Thu Nov 19 13:42:29 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: rumpuser.c,v 1.45 2009/11/19 13:25:48 pooka Exp $	*/
+/*	$NetBSD: rumpuser.c,v 1.46 2009/11/19 13:42:29 pooka Exp $	*/
 
 /*
  * Copyright (c) 2007 Antti Kantee.  All Rights Reserved.
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: rumpuser.c,v 1.45 2009/11/19 13:25:48 pooka Exp $");
+__RCSID("$NetBSD: rumpuser.c,v 1.46 2009/11/19 13:42:29 pooka Exp $");
 #endif /* !lint */
 
 /* thank the maker for this */
@@ -153,8 +153,8 @@
 		}
 		close(fd);
 
-		parta = &lab.d_partitions[DISKPART(sb.st_dev)];
-		*size = lab.d_secsize * parta->p_size;
+		parta = &lab.d_partitions[DISKPART(sb.st_rdev)];
+		*size = (uint64_t)lab.d_secsize * parta->p_size;
 #endif /* __NetBSD__ */
 	}
 

Reply via email to