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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user