Subject: pkg/25327: kdebase3
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <john@johnrshannon.com>
List: pkgsrc-bugs
Date: 04/25/2004 16:10:49
>Number:         25327
>Category:       pkg
>Synopsis:       statfs -> statvfs change
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 25 22:11:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     John R. Shannon
>Release:        NetBSD 2.0E
>Organization:
	johnrshannon.com
>Environment:
System: NetBSD colleen.internal.johnrshannon.com 2.0E NetBSD 2.0E (KERNEL) #0: Sun Apr 25 07:44:57 MDT 2004 root@colleen.internal.johnrshannon.com:/usr/obj/usr/src/sys/arch/i386/compile/KERNEL i386
Architecture: i386
Machine: i386
>Description:
	Recent change requires variable type change from statfs to statvfs
>How-To-Repeat:
	
>Fix:

$NetBSD$

--- kcontrol/info/info_netbsd.cpp.orig	2003-01-20 06:17:16.000000000 -0700
+++ kcontrol/info/info_netbsd.cpp
@@ -272,7 +272,7 @@ bool GetInfo_Partitions (QListView *lbox
 	FILE *pipe = popen("/sbin/mount", "r");
 	QTextStream *t;
 	u_int64_t tsz, fsz;
-	struct statfs sfs;
+	struct statvfs sfs;
 	int ok;
 
 	if (!pipe) {
@@ -312,7 +312,7 @@ bool GetInfo_Partitions (QListView *lbox
 			flags = "";
 		}
 
-		if (statfs(mountpoint, &sfs) == 0) {
+		if (statvfs(mountpoint, &sfs) == 0) {
 			tsz = ((1LL * sfs.f_blocks * sfs.f_bsize / 1024) + 513)
 					/ 1024;
 			fsz = ((1LL * sfs.f_bfree * sfs.f_bsize / 1024) + 513)
>Release-Note:
>Audit-Trail:
>Unformatted: