host: add "readonly" state to override device "alive" state
commitb7aff323aab521fb22f2e341c6c8fc0f2cdf3b7e
authorEric Wong <normalperson@yhbt.net>
Tue, 25 Sep 2012 20:23:38 +0000 (25 20:23 +0000)
committerdormando <dormando@rydia.net>
Tue, 16 Dec 2014 06:45:40 +0000 (15 22:45 -0800)
tree3a9b3308396073a774516cf00b081d8800c58161
parent202bbef42b78711784f09ae76d8956fad3761834
host: add "readonly" state to override device "alive" state

Marking an entire host as "readonly" before a host maintenance
window can useful and easier than marking each device "readonly"
and reduces the likelyhood a device will be incorrectly marked
as "alive" again when it is intended to stay down.
lib/MogileFS/Device.pm
lib/MogileFS/Host.pm
lib/MogileFS/Store.pm
lib/MogileFS/Store/MySQL.pm
lib/MogileFS/Store/Postgres.pm
lib/MogileFS/Store/SQLite.pm
t/02-host-device.t