Deprecate cyllinder and head count.
This commit is contained in:
parent
cfa853a931
commit
54be18e8ad
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue