21214: Include project/collection singletons in customfs MemorySize.
authorTom Clegg <tom@curii.com>
Mon, 18 Dec 2023 20:03:04 +0000 (15:03 -0500)
committerTom Clegg <tom@curii.com>
Mon, 18 Dec 2023 20:03:04 +0000 (15:03 -0500)
commiteabce45fdc050e9b322cf5e21f788f4641821d20
treeb20461a7d75ea659829d266b73f0be76bd71c241
parent98cfc0a3924a16654150899afbb7fd255439cec3
21214: Include project/collection singletons in customfs MemorySize.

Previously, a hardlink returned its target's MemorySize, which
overreported the size of a tree in which a collection or project was
reachable by multiple paths.

Since 3d5a798ef6f4bd3b1a771bacdf0acf70edf6c1f5 a hardlink returns a
MemorySize reflecting only the hardlink itself, so the MemorySize of
the hardlink targets (project/collection singletons) needs to be added
explicitly by customFilesystem.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
sdk/go/arvados/fs_site.go
services/keep-web/server_test.go