mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Harald Hoyer <harald.hoyer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Wim Muskee <wimmuskee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] provide name based nbd connects
Date: Wed, 21 Mar 2012 13:07:20 +0100	[thread overview]
Message-ID: <4F69C478.6090301@gmail.com> (raw)
In-Reply-To: <CAKzfqkf5Vn_RijjJ0Vames6zAsypTbNUJ+tqxD4A8S3XA-qbqw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Am 17.03.2012 12:33, schrieb Wim Muskee:
> Because nbd-server also provides name-based exports instead of
> port-based ones, make it possible to connect to those.
> 
> --- modules.d/95nbd/nbdroot.sh.orig     2012-03-17 12:23:52.988936315 +0100
> +++ modules.d/95nbd/nbdroot.sh  2012-03-17 12:26:12.048798184 +0100
> @@ -30,6 +30,11 @@
>  nbdflags=${root%%:*}
>  nbdopts=${root#*:}
> 
> +# If nbdport not an integer, then assume name based import
> +if [[ $nbdport != [0-9]* ]]; then
> +    nbdport="-N $nbdport"
> +fi
> +
>  if [ "$nbdopts" = "$nbdflags" ]; then
>      unset nbdopts
>  fi
> --
> To unsubscribe from this list: send the line "unsubscribe initramfs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

pushed

      parent reply	other threads:[~2012-03-21 12:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-17 11:33 [PATCH] provide name based nbd connects Wim Muskee
     [not found] ` <CAKzfqkf5Vn_RijjJ0Vames6zAsypTbNUJ+tqxD4A8S3XA-qbqw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-03-21 12:07   ` Harald Hoyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F69C478.6090301@gmail.com \
    --to=harald.hoyer-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=wimmuskee-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox