Module Name: src Committed By: pooka Date: Thu Feb 18 12:32:30 UTC 2010
Modified Files: src/sys/rump/librump/rumpuser: rumpuser.c Log Message: Also, don't try to figure out the size of devices if size matters not. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 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.48 src/sys/rump/librump/rumpuser/rumpuser.c:1.49 --- src/sys/rump/librump/rumpuser/rumpuser.c:1.48 Thu Feb 18 12:21:28 2010 +++ src/sys/rump/librump/rumpuser/rumpuser.c Thu Feb 18 12:32:30 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: rumpuser.c,v 1.48 2010/02/18 12:21:28 pooka Exp $ */ +/* $NetBSD: rumpuser.c,v 1.49 2010/02/18 12:32:30 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.48 2010/02/18 12:21:28 pooka Exp $"); +__RCSID("$NetBSD: rumpuser.c,v 1.49 2010/02/18 12:32:30 pooka Exp $"); #endif /* !lint */ /* thank the maker for this */ @@ -102,7 +102,7 @@ if (!needsdev) { size = sb.st_size; - } else { + } else if (sizep) { /* * Welcome to the jungle. Of course querying the kernel * for a device partition size is supposed to be far from