* 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:
parent
36ac322c47
commit
e0b38d8aab
@ -21,7 +21,7 @@
|
||||
using std::nothrow;
|
||||
|
||||
|
||||
static const uint32 kDiskSystemFlags =
|
||||
static const uint32 kDiskSystemFlags =
|
||||
0
|
||||
// | B_DISK_SYSTEM_SUPPORTS_CHECKING
|
||||
// | B_DISK_SYSTEM_SUPPORTS_REPAIRING
|
||||
@ -155,6 +155,7 @@ BFSAddOn::Initialize(BMutablePartition* partition, const char* name,
|
||||
uint32 blockSize = parameters.blockSize;
|
||||
partition->SetBlockSize(blockSize);
|
||||
partition->SetContentSize(partition->Size() / blockSize * blockSize);
|
||||
partition->Changed(B_PARTITION_CHANGED_INITIALIZATION);
|
||||
|
||||
*_handle = handleDeleter.Detach();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user