From 42d398033869806fa4592b95e52287de063e4ea5 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 25 Sep 1996 04:37:13 +0000 Subject: [PATCH] Fix PR/2779: statvfs returns incorrect sizes. From Aaron Brown --- sys/compat/svr4/svr4_misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c index b6ba996e8cce..5a8848af3e1b 100644 --- a/sys/compat/svr4/svr4_misc.c +++ b/sys/compat/svr4/svr4_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: svr4_misc.c,v 1.39 1996/09/03 03:12:38 mycroft Exp $ */ +/* $NetBSD: svr4_misc.c,v 1.40 1996/09/25 04:37:13 christos Exp $ */ /* * Copyright (c) 1994 Christos Zoulas @@ -1103,8 +1103,8 @@ bsd_statfs_to_svr4_statvfs(bfs, sfs) const struct statfs *bfs; struct svr4_statvfs *sfs; { - sfs->f_bsize = bfs->f_bsize; - sfs->f_frsize = bfs->f_bsize / 8; /* XXX */ + sfs->f_bsize = bfs->f_iosize; /* XXX */ + sfs->f_frsize = bfs->f_bsize; sfs->f_blocks = bfs->f_blocks; sfs->f_bfree = bfs->f_bfree; sfs->f_bavail = bfs->f_bavail;