mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-17 21:30:51 +00:00
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…
x
Reference in New Issue
Block a user