* Added an UninitializeMedia() method to KDiskDevice that also resets the

device geometry.
* If SetTo() reports no media, and GetGeometry() fails, the device geometry
  is now reset as well.
* KDiskDeviceManager::_ScanPartition() no longer unmarks the partition busy;
  this is now done by the caller, and done independently from the outcome of
  _ScanPartition(). This also fixes the problem that devices with no media
  were never marked unbusy (and thus were ignored subsequently).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22912 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-11-12 23:20:33 +00:00
parent ef6f42349c
commit 88ef411154
3 changed files with 33 additions and 22 deletions
@@ -55,6 +55,7 @@ public:
bool MediaChanged() const;
void UpdateMediaStatusIfNeeded();
void UninitializeMedia();
status_t SetPath(const char *path);
// TODO: Remove this method or make it private. Once initialized the
@@ -82,6 +83,7 @@ protected:
virtual status_t GetGeometry(device_geometry *geometry);
private:
void _ResetGeometry();
void _InitPartitionData();
disk_device_data fDeviceData;