On a media change, the KDiskDevice must do a bit more than it did:

* it now updates the partition data,
* the flags,
* and the disk geometry - and that now allows the session add-on to actually
  detect a newly inserted CD.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22918 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-11-13 12:18:06 +00:00
parent bab57370a4
commit 7333992516
3 changed files with 36 additions and 8 deletions
@@ -57,6 +57,8 @@ public:
void UpdateMediaStatusIfNeeded();
void UninitializeMedia();
void UpdateGeometry();
status_t SetPath(const char *path);
// TODO: Remove this method or make it private. Once initialized the
// path must not be changed.
@@ -85,6 +87,7 @@ protected:
private:
void _ResetGeometry();
void _InitPartitionData();
void _UpdateDeviceFlags();
disk_device_data fDeviceData;
RWLocker fLocker;