]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: OSD device smart data include additional nvme data 25672/head
authorhsiang41 <rick.chen@prophetstor.com>
Fri, 28 Dec 2018 09:07:32 +0000 (17:07 +0800)
committerSage Weil <sage@redhat.com>
Fri, 4 Jan 2019 00:10:26 +0000 (18:10 -0600)
commit2da890117c130d5d6b288cefea98f06c35f6ad76
tree86d0387bfbbc48e09904ad291633bec1d72b5121
parent9f3dff2012803646baa9631b7272c64ebc16d9c6
osd: OSD device smart data include additional nvme data

Add nvme addition data into the deveh health data. That use nvme tool
and command syntax "nvme <vendor> smart-log-add <dev> -json". The nvme
json output append in the dev smart "nvme_smart_health_information_add_log".

- made run_smartctl static/private
- changed get_metrics to take a const string, not c str

Signed-off-by: Rick Chen <rick.chen@prophetstor.com>
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/blkdev.cc
src/common/blkdev.h
src/mon/Monitor.cc
src/osd/OSD.cc
sudoers.d/ceph-osd-smartctl