Deprecate cyllinder and head count.

This commit is contained in:
Andrius Štikonas 2018-04-02 14:12:30 +01:00
parent cfa853a931
commit 54be18e8ad
2 changed files with 4 additions and 2 deletions

View File

@ -131,10 +131,10 @@ qint64 DiskDevice::logicalSectorSize() const
qint64 DiskDevice::totalSectors() const
{
return static_cast<qint64>(heads()) * cylinders() * sectorsPerTrack();
return static_cast<qint64>(d->m_Heads) * d->m_Cylinders * d->m_SectorsPerTrack;
}
qint64 DiskDevice::cylinderSize() const
{
return static_cast<qint64>(heads()) * sectorsPerTrack();
return static_cast<qint64>(d->m_Heads) * d->m_SectorsPerTrack;
}

View File

@ -58,11 +58,13 @@ public:
/**
* @return the number of heads on the Device in CHS notation
*/
[[deprecated]]
qint32 heads() const;
/**
* @return the number of cylinders on the Device in CHS notation
*/
[[deprecated]]
qint32 cylinders() const;
/**