Skip to content

1.7.2

Choose a tag to compare

@steeb-k steeb-k released this 14 Aug 17:35
· 4 commits to main since this release

Diskoria 1.7.2 is a bug-fix release. Its subject is USB drives, which the app
had been describing wrongly in three separate places.

A USB disk is a disk, not "Flash" (KI-57)

Every external disk not caught by a model-string rule was labelled Flash,
including 4 TB hard drives. The media test checked for "removable or external"
before it checked for a hard disk, and Windows reports "External hard disk
media" for an enclosure -- a string that satisfies both. Nothing downstream
corrected it, because Windows reports the media type as Unspecified for
anything behind a USB bridge.

Diskoria now asks the drive itself, over the same pass-through the health
commands use, and reads the rotation rate it reports. Media classification is a
ladder that only issues a device command when the cheaper signals leave the
answer open, so a drive Windows already describes costs nothing extra. Flash is
now reserved for a genuinely removable medium: thumb drives and card readers.

Linux had the same fault in mirror image. The kernel marks anything on USB as
rotating unless the bridge says otherwise, so hard drives were right by
accident and SSDs in enclosures were simply wrong.

S.M.A.R.T. now works over USB (KI-57, KI-60)

Diskoria used to refuse outright, reporting "SMART is not available over USB
connections" for every external drive. That is not true of most enclosures:
they forward the health commands to the drive unchanged. Drive Health now shows
the full attribute table for a disk in an enclosure -- the same table it would
show plugged in directly.

The Sector and Benchmark pages read their verdict from a different source than
Drive Health does, and that source lists only drives on the storage driver. They
kept saying Unavailable for a drive whose health was visible one click away.
They now fall back to the drive's own report.

Three cases still cannot report, and say so specifically: plain flash drives,
which mostly implement no S.M.A.R.T. at all; older bridge chips that do not
carry the commands; and USB enclosures holding an NVMe drive, which use a
manufacturer-specific protocol.

Sleeping drives are no longer woken to be measured (KI-58)

Background monitoring read each drive's health on a timer, which spins a
stopped disk back up -- at three-minute intervals, often enough that an
external drive would never stay spun down. Diskoria now asks whether the drive
is in standby first, using a command answered without touching the medium, and
skips one that is. The temperature history shows a gap for that period, which is
the honest record.

USB drives in the tray, on request

A new setting, Settings > Monitoring > Show USB drives in the tray, off by
default. It adds external drives to the notification area and to the background
poll together, since an icon with no reading behind it would be no use. It is
off by default because external drives come and go, and an icon appearing every
time something is plugged in is not a favour.

Also fixed

  • KI-59 -- on Linux, no monitoring setting was ever saved. The poll
    interval, the alert thresholds and the on/off switch all reverted a frame
    after being changed. Windows was unaffected.
  • The collapsed sidebar's hover panel no longer closes when you pick a page. It
    stays until the pointer leaves, like every other hover-opened panel.