Counting I/O errors in /sys/block/<dev>/stat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[Resent without html]

Dear colleagues,

The attached patch keeps a count of block device I/O errors -- any
error event that generates a klog message in blk_update_request -- and
reports the count as a 12th field in /sys/block/<dev>/stat. That
allows, e.g., monitoring systems to detect and count block device
errors without having to scrape syslog.

If the patch is acceptable as is, please consider it submitted for
eventual merging into the mainline kernel. If not, I'd welcome
comments, feedback, etc.

Thanks,

Jim Shankland

Attachment: blockdev-error-counts.patch
Description: Binary data


[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux