* Initialize() should also cause initializing the partition which would

only happen if BPartition::SetContentType() set it (which set it 
  only if the original type differed).
* This fixes a part of bug #1928, but of course, it still won't work
  (now the partition reports to be busy).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24419 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-03-17 12:53:17 +00:00
parent 36ac322c47
commit e0b38d8aab

View File

@ -21,7 +21,7 @@
using std::nothrow; using std::nothrow;
static const uint32 kDiskSystemFlags = static const uint32 kDiskSystemFlags =
0 0
// | B_DISK_SYSTEM_SUPPORTS_CHECKING // | B_DISK_SYSTEM_SUPPORTS_CHECKING
// | B_DISK_SYSTEM_SUPPORTS_REPAIRING // | B_DISK_SYSTEM_SUPPORTS_REPAIRING
@ -155,6 +155,7 @@ BFSAddOn::Initialize(BMutablePartition* partition, const char* name,
uint32 blockSize = parameters.blockSize; uint32 blockSize = parameters.blockSize;
partition->SetBlockSize(blockSize); partition->SetBlockSize(blockSize);
partition->SetContentSize(partition->Size() / blockSize * blockSize); partition->SetContentSize(partition->Size() / blockSize * blockSize);
partition->Changed(B_PARTITION_CHANGED_INITIALIZATION);
*_handle = handleDeleter.Detach(); *_handle = handleDeleter.Detach();