Re: poudriere bulk -a fails on UFS: "Too many links" under logs/bulk/latest-per-pkg/ and then "Failed: starting"

From: Konstantin Belousov <kostikbel_at_gmail.com>
Date: Tue, 07 Nov 2023 10:49:49 UTC
On Mon, Nov 06, 2023 at 11:27:32AM -0800, Kirk McKusick wrote:
> Copying Kostik for his feedback.
> 
> One option might be to change the inode link count from int16_t
> to uint16_t to double the number of link counts. Alternatively
> in UFS2 filesystems, we could move the link count to one of the
> 32-bit spares to eliminate the problem entirely.

I think that conditional increasing the link count size to 4 bytes would
be better for overall usability. Then e.g. the -1 value in existing
int16_t nlink field would indicate the use of the extended field.

Although having such populated directory could be considered as local
DoS.