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:
parent
9ad93a51a7
commit
818ab5f602
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue