public static FsVolume create(final String path,
                                  final FsVolumeState volumeState,
                                  final Long byteLimit) {
        final FsVolume volume = new FsVolume();
        volume.setPath(path);
        volume.setVolumeState(volumeState);
        if (byteLimit != null) {
            volumeState.setBytesFree(byteLimit - volumeState.getBytesUsed());
        }
        volume.setByteLimit(byteLimit);
        return volume;
    }
Utility to create a volume.

@param path to use
@return volume
stroom-core-shared/src/main/java/stroom/data/store/impl/fs/shared/FsVolume.java