HomePhabricator

call CheckDiskSpace() before pre-allocating space
fa45c26a0e5dUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

call CheckDiskSpace() before pre-allocating space

  • even if we are allowed to fail pre-allocating, it's better to check for sufficient space before calling AllocateFileRange() and if we are out of disk space return with error()
  • the above change allows us to remove the CheckDiskSpace() check in CBlock::AcceptBlock()

Details

Provenance
Philip Kaufmann <phil.kaufmann@t-online.de>Authored on Dec 4 2012, 06:48
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING85887020dc60: Merge pull request #2055 from redshark1802/master
Branches
Unknown
Tags
Unknown

Event Timeline

Philip Kaufmann <phil.kaufmann@t-online.de> committed rSTAGINGfa45c26a0e5d: call CheckDiskSpace() before pre-allocating space (authored by Philip Kaufmann <phil.kaufmann@t-online.de>).Dec 5 2012, 13:39