Re: [PATCH] provide name based nbd connects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

pushed
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux