diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-04-18 14:25:26 +0530 |
---|---|---|
committer | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-04-26 16:23:05 +0530 |
commit | 9bb065b8fe80b329b4321085523dafbeb64b64f9 (patch) | |
tree | b202fff762662b1a4bbf1fa2b29311ce604cb4ce /org | |
parent | 67d50ad6126f278cd76416e32877b3462abc07dd (diff) | |
download | openpower-occ-control-9bb065b8fe80b329b4321085523dafbeb64b64f9.tar.gz openpower-occ-control-9bb065b8fe80b329b4321085523dafbeb64b64f9.zip |
Commit errorlog and exit the application on error scenarios
This application interacts with OCC driver and hence its good to
terminate when there is an error during IO since it would mostly
mean a faulty hardware.
Fixes openbmc/openbmc#1428
Change-Id: I48bc7b2cf19922a7a53dbab78cdd4f2338a7431b
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'org')
-rw-r--r-- | org/open_power/OCC/PassThrough.errors.yaml | 11 | ||||
-rw-r--r-- | org/open_power/OCC/PassThrough.metadata.yaml | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/org/open_power/OCC/PassThrough.errors.yaml b/org/open_power/OCC/PassThrough.errors.yaml new file mode 100644 index 0000000..4be6325 --- /dev/null +++ b/org/open_power/OCC/PassThrough.errors.yaml @@ -0,0 +1,11 @@ +# org.open_power.OCC.PassThrough.OpenFailure +- name: OpenFailure + description: Opening OCC device failed. + +# org.open_power.OCC.PassThrough.ReadFailure +- name: ReadFailure + description: Reading from OCC failed. + +# org.open_power.OCC.PassThrough.WriteFailure +- name: WriteFailure + description: Writing to OCC failed. diff --git a/org/open_power/OCC/PassThrough.metadata.yaml b/org/open_power/OCC/PassThrough.metadata.yaml new file mode 100644 index 0000000..0b1c4f5 --- /dev/null +++ b/org/open_power/OCC/PassThrough.metadata.yaml @@ -0,0 +1,11 @@ +- name: OpenFailure + inherits: + - xyz.openbmc_project.Common.Callout.Device + +- name: ReadFailure + inherits: + - xyz.openbmc_project.Common.Callout.Device + +- name: WriteFailure + inherits: + - xyz.openbmc_project.Common.Callout.Device |