dtfs memsets all allocated block content to 0 immediately, so to

avoid wasting unbelievable amounts of memory, set the blocksize to
something more believable.  Should fix the memset-part to act only
up to the size the file is extended to, though.
This commit is contained in:
pooka 2007-09-27 12:03:31 +00:00
parent b8d6c11ba4
commit 90900b0311
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dtfs.h,v 1.20 2007/07/27 08:29:10 pooka Exp $ */
/* $NetBSD: dtfs.h,v 1.21 2007/09/27 12:03:31 pooka Exp $ */
/*
* Copyright (c) 2006 Antti Kantee. All Rights Reserved.
@ -35,7 +35,7 @@
PUFFSOP_PROTOS(dtfs);
int dtfs_domount(struct puffs_usermount *, const char *);
#define DTFS_BLOCKSHIFT (16)
#define DTFS_BLOCKSHIFT (12)
#define DTFS_BLOCKSIZE (1<<DTFS_BLOCKSHIFT)
#define ROUNDUP(a,b) ((a) & ((b)-1))