id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 922,-l devstat does not work if gp devstat log is 256 sectors,oddbondboris,Christian Franke,"smartctl does not use the 9 bit value from the directory properly and instead reads the value 256 as zero Steps to reproduce: smartctl -l devstat /dev/sdX on any drive that has a directory such as this {{{ 0x04 GPL R/O 256 Device Statistics log }}} Expected behavior: print device statistics patched version shown {{{ #smartctl -l devstat /dev/sdd smartctl 6.7 2017-11-06 r4602 [x86_64-linux-4.9.16-gentoo] (local build) Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org Device Statistics (GP Log 0x04) Page Offset Size Value Flags Description 0x01 ===== = = === == General Statistics (rev 1) == 0x01 0x008 4 6 --- Lifetime Power-On Resets 0x01 0x010 4 913 --- Power-on Hours .... }}} Actual Behavior {{{ #smartctl -l devstat /dev/sdd smartctl 6.7 2017-11-06 r4602 [x86_64-linux-4.9.16-gentoo] (local build) Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org Device Statistics (GP/SMART Log 0x04) not supported }}} fix: included patch, enable already existing code to parse >8bit values in GetNumLogSectors when reading gplog devstat logs. ",patch,closed,minor,Release 7.0,smartctl,,fixed,ata,