usr.sbin/makefs/hammer2: Introduce XOP fifo realloc
authorTomohiro Kusumi <tkusumi@netbsd.org>
Tue, 27 Jun 2023 07:30:19 +0000 (00:30 -0700)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Fri, 30 Jun 2023 13:32:32 +0000 (06:32 -0700)
commit9d036237cbc59969257aaea138ddec5dbd8e181b
tree4757956bc78c95fb39dfbe126e6329c585852d0d
parent39a6156b715c99112e4d3bd00e776254c643c24a
usr.sbin/makefs/hammer2: Introduce XOP fifo realloc

Since makefs HAMMER2 used a serialized single threaded xops,
it was not possible to have more than HAMMER2_XOPFIFO fifo entries.

Change this to realloc XOP fifo whenever it hits current limit.
This is also what Free|Net|OpenBSD HAMMER2 currently do until they
support multi-threaded xops.

This makes possible to support VOP_READDIR, and that makes possible
to support recursive read for "-o R" option.
usr.sbin/makefs/hammer2/hammer2.h
usr.sbin/makefs/hammer2/hammer2_admin.c
usr.sbin/makefs/hammer2/hammer2_compat.h