[meta-virtualization] [m-c-s][PATCH] tgt: specify -f option in order to load backing store device when tgtd is restarted

Bruce Ashfield bruce.ashfield at gmail.com
Sun Jun 3 20:28:29 PDT 2018


merged

Bruce

On Thu, May 31, 2018 at 6:31 AM, Jagadeesh Krishnanjanappa <
jkrishnanjanappa at mvista.com> wrote:

> Specifying force option (-f) to tgt-admin, makes sure iscsi
> backing devices mentioned under /etc/tgt/*.conf are listed, loaded and
> activated when /etc/init.d/tgtd is restarted.
>
> Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa at mvista.com>
> ---
>  meta-openstack/recipes-support/tgt/files/tgtd.init | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta-openstack/recipes-support/tgt/files/tgtd.init
> b/meta-openstack/recipes-support/tgt/files/tgtd.init
> index 52d98c3..350fd0c 100644
> --- a/meta-openstack/recipes-support/tgt/files/tgtd.init
> +++ b/meta-openstack/recipes-support/tgt/files/tgtd.init
> @@ -39,7 +39,7 @@ start ()
>      # if it's not ready.
>      tgtadm --op update --mode sys --name State -v offline
>      # Configure the targets.
> -    tgt-admin -e -c $TGTD_CONFIG
> +    tgt-admin -f -e -c $TGTD_CONFIG
>      # Put tgtd into "ready" state.
>      tgtadm --op update --mode sys --name State -v ready
>
> --
> 2.7.4
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20180603/451a81ea/attachment.html>


More information about the meta-virtualization mailing list