From e0b38d8aab652b4d0407f1bb02977479215ac67c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 17 Mar 2008 12:53:17 +0000 Subject: [PATCH] * 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 --- src/add-ons/disk_systems/bfs/BFSAddOn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add-ons/disk_systems/bfs/BFSAddOn.cpp b/src/add-ons/disk_systems/bfs/BFSAddOn.cpp index b66ec2a47d..9d05c41695 100644 --- a/src/add-ons/disk_systems/bfs/BFSAddOn.cpp +++ b/src/add-ons/disk_systems/bfs/BFSAddOn.cpp @@ -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();