Philipp Reisner 5c4f13d991 drbd: fix effective error returned when refusing an invalidate
Since commit
  drbd: Disallow the peer_disk_state to be D_OUTDATED while connected
trying to invalidate a disconnected Primary returned an error code
that did not really match the situation:
"Refusing to be Outdated while Connected"

Insert two more specific conditions into is_valid_state(),
changing that to "Need access to UpToDate data",
respectively "Need a connection to start verify or resync".

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-03-28 10:10:24 -06:00
..
2013-03-12 20:25:53 -07:00
2013-03-23 15:53:52 -07:00
2013-02-21 15:27:22 -08:00
2013-02-27 19:10:15 -08:00
2013-02-27 19:10:15 -08:00
2013-03-12 10:21:38 -07:00
2013-03-01 13:39:00 -08:00
2013-03-25 19:36:39 -06:00
2013-02-28 20:00:40 -08:00
2013-01-21 14:34:21 -08:00
2013-02-21 15:38:49 -08:00
2013-02-27 19:10:18 -08:00
2013-02-26 09:34:29 -08:00
2013-02-27 19:10:18 -08:00
2013-02-28 09:37:12 +01:00
2013-02-21 15:27:22 -08:00
2013-03-13 15:02:02 -07:00
2013-02-27 19:10:19 -08:00
2013-03-13 15:03:48 -07:00
2013-02-27 19:10:19 -08:00
2013-03-12 20:25:53 -07:00
2013-02-22 23:31:31 -05:00
2013-02-21 13:57:13 -08:00