@Override
    public SystemInfoResult getSystemInfo() {

        final Volumes volumes = getCurrentVolumes();

        // Need to wrap with optional as Map.ofEntries does not support null values.
        final var volInfoList = volumes
                .getMap()
                .values()
                .stream()
                .flatMap(List::stream)
                .map(vol -> Map.ofEntries(
                        new SimpleEntry<>("path", Optional.ofNullable(getAbsVolumePath(vol))),
                        new SimpleEntry<>("limit", Optional.ofNullable(vol.getByteLimit())),
                        new SimpleEntry<>("state", Optional.ofNullable(vol.getStatus())),
                        new SimpleEntry<>("free", Optional.ofNullable(NullSafe.get(
                                vol.getVolumeState(),
                                FsVolumeState::getBytesFree))),
                        new SimpleEntry<>("total", Optional.ofNullable(NullSafe.get(
                                vol.getVolumeState(),
                                FsVolumeState::getBytesTotal))),
                        new SimpleEntry<>("used", Optional.ofNullable(NullSafe.get(
                                vol.getVolumeState(),
                                FsVolumeState::getBytesUsed))),
                        new SimpleEntry<>("dbStateUpdateTime", Optional.ofNullable(NullSafe.get(
                                vol.getVolumeState(),
                                FsVolumeState::getUpdateTimeMs,
                                DateUtil::createNormalDateTimeString)))))
                .toList();

        return SystemInfoResult.builder(this)
                .addDetail("volumeSelector", volumeConfigProvider.get().getVolumeSelector())
                .addDetail("volumeListCreateTime", DateUtil.createNormalDateTimeString(volumes.getCreateTime()))
                .addDetail("volumeList", volInfoList)
                .build();
    }
Public for use in tests that tear down volumes
stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/FsVolumeService.java