threefoldtecharchive / jumpscale9_lib

Apache License 2.0
0 stars 0 forks source link

added call for raw disk.isstandby #270

Closed delandtj closed 5 years ago

delandtj commented 5 years ago

What this PR resolves:

basically we want to have a way to verify if a disk is in standby mode before we use some real disk access for monitoring purposes.

if a disk is disk.spindown with Core-0 we have to verify that the disk is effectively spun down and keep it that way if we run monitor checks on these diks/mountpoints.

That also means that all monitor templates that create/delet files for the sole purpose of verifying availability of a disk should first verify if it's in standby mode. If that is the case, skip the check, whatever that is.

goes together with https://github.com/threefoldtech/0-core/commit/a00c4df490e3364c0c2770ca0bdc5cb1b029fa46