Subject: re: kern/35253
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Elad Efrat <elad@NetBSD.org>
List: netbsd-bugs
Date: 12/26/2006 07:40:02
The following reply was made to PR kern/35253; it has been noted by GNATS.
From: Elad Efrat <elad@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Subject: re: kern/35253
Date: Tue, 26 Dec 2006 09:36:15 +0200
we can do something like this:
fileassoc_table_size(struct mount *mp);
return number of slots table for 'mp' was optimized for.
fileassoc_table_optimize(struct mount *mp, size_t nentries);
optimize the hash-table for 'mp' for 'nentries' slots.
notes:
- there should be locking implications to fileassoc_table_optimize(),
- the wording avoids exposing internal implementation details of
fileassoc(9).
-e.