From 25d7e66143078462845a671ff32e26ef0afd894d Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 7 Aug 1997 20:16:15 +0000 Subject: Thu Aug 7 16:01:29 1997 Thomas Bushnell, n/BSG * inode.c (read_disknode): Units of st_blocks are 512 byte chunks, not logical_block_size chunks. --- isofs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'isofs/inode.c') diff --git a/isofs/inode.c b/isofs/inode.c index 48079caf..13777b6d 100644 --- a/isofs/inode.c +++ b/isofs/inode.c @@ -390,7 +390,7 @@ read_disknode (struct node *np, struct dirrect *dr, } st->st_blksize = logical_block_size; - st->st_blocks = (st->st_size - 1) / logical_block_size + 1; + st->st_blocks = (st->st_size - 1) / 512 + 1; st->st_flags = 0; if (S_ISLNK (st->st_mode)) -- cgit v1.2.3