fix bug when adding new file (apfm put)

git-svn-id: https://profuse.googlecode.com/svn/branches/v2@402 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
ksherlock 2012-01-29 05:33:16 +00:00
parent 9ad93a51a7
commit 818ab5f602
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ FileEntryPointer VolumeEntry::create(const char *name, unsigned blocks)
{
FileEntryPointer e = *iter;
unsigned freeSpace = e->_firstBlock - _lastBlock;
unsigned freeSpace = e->_firstBlock - lastBlock;
// this could do something stupid like selecting a slot with only 1 free block but too bad.
if (freeSpace < blocks)