Check if hdist exist when creating file-sizes log file and try to open it when it is available
Fix volume size checking
Add test for volume size enforcement.