Coda File System

Re: Partition sizes

From: Jan Harkes <jaharkes_at_cs.cmu.edu>
Date: Mon, 1 May 2000 17:39:04 -0400
On Sun, Apr 30, 2000 at 11:16:23PM +0000, m9111_at_abc.se wrote:
> 
> What are the "blocks" that Coda shows in "cfs lv"?  If they are 1K
> blocks, then the count is wrong, since Coda forgets to take into
> account that block sizes on partitions can vary.
> 
> Anyway, makeftree gives the partition size as if the blocks were
> always 1K.
> 
> If this is a bug, then the following patch fixes it if
> HAVE_SYS_STATVFS, and the other case has to be modified in a similar
> way.

Well, Venus bases it's calculations on 1k blocks pretty much everywhere,
so I would expect the server to do the same.

> +    bsiz = vfsbuf.f_bsize/1024;

Ouch, what about those poor people with 512 byte blocks in their
filesystem? But it's a good idea, I'll work on it a bit.

Jan
Received on 2000-05-01 18:33:52