* Fixed a possible dead lock between the kernel daemon and the DDM; the media
status checker now only tries to lock the manager, it won't wait anymore. * Added MediaChanged() and UpdateMediaStatusIfNeeded() methods to KDiskDevice. * KDiskDeviceManager::_CheckMediaStatus() now uses these new methods; it should no longer detect removed media more than once :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22621 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -51,8 +51,9 @@ public:
|
||||
bool IsWriteOnce() const;
|
||||
bool IsRemovable() const;
|
||||
bool HasMedia() const;
|
||||
bool MediaChanged() const;
|
||||
|
||||
virtual status_t GetMediaStatus(status_t *mediaStatus);
|
||||
void UpdateMediaStatusIfNeeded();
|
||||
|
||||
status_t SetPath(const char *path);
|
||||
// TODO: Remove this method or make it private. Once initialized the
|
||||
@@ -81,6 +82,7 @@ public:
|
||||
virtual void Dump(bool deep = true, int32 level = 0);
|
||||
|
||||
protected:
|
||||
virtual status_t GetMediaStatus(status_t *mediaStatus);
|
||||
virtual status_t GetGeometry(device_geometry *geometry);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user