[stgt] [PATCH] fix three bugs in startstopunit
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Tue Jul 17 03:46:44 CEST 2012
On Tue, 17 Jul 2012 10:26:11 +1000
ronnie sahlberg <ronniesahlberg at gmail.com> wrote:
> From 32105d5a1cd0ab940be54f1e16560dd4ccfa5e10 Mon Sep 17 00:00:00 2001
> From: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> Date: Tue, 17 Jul 2012 10:23:21 +1000
> Subject: [PATCH] STARTSTOPUNIT bugfixes
>
> If power condition != 0 then we should ignore LOEJ and START bits
> and not do any online/offline operations.
>
> Fix the check for LOEJ and make sure this flag is set to 0 or 1, not 0 or 2.
>
> Check that the removable attribute is set. We should not call
> online/offline for non-removable luns
>
> Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> ---
> usr/spc.c | 14 +++++++++-----
> 1 files changed, 9 insertions(+), 5 deletions(-)
Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list