Opened 5 months ago

Closed 4 months ago

#1217 closed patch (fixed)

Buffer length for message is not enough on macOS

Reported by: mahori Owned by:
Priority: minor Milestone: Release 7.1
Component: smartd Version:
Keywords: Cc:

Description

DEVICESCAN is specified on macOS, devices are recognized as follows:

IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@17/AppleIntelPchSeriesAHCI/PRT1@1/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice

Because the device name is too long, buffer length for message is not enough.

Example:

The following warning/error was logged by the smartd daemon:

Device: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP21@1B,4/IOPP/PXSX@0/IOPP/pci-bridge@4/IOPP/pci-bridge@0/IOPP/pci-bridge@0/IOPP/pci1b21,625@0/AppleAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice, ATA error count inc

Device info:
ST8000DM004-2CX188, S/N:WCT1NET7, WWN:5-000c50-0c00c0c0a, FW:0001, 8.00 TB

Attachments (1)

smartd.cpp.diff (430 bytes) - added by mahori 5 months ago.

Download all attachments as: .zip

Change History (3)

Changed 5 months ago by mahori

Attachment: smartd.cpp.diff added

comment:1 Changed 5 months ago by Christian Franke

Milestone: Release 7.1

Thanks!

comment:2 Changed 4 months ago by Christian Franke

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.