Plan 9 from Bell Labs’s /usr/web/sources/plan9/rc/bin/addaoe

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# addaoe let unit - add an AoE logical unit as sd$let
if (! ~ $#* 2 || ! ~ $1 ? || ! ~ $2 *.*) {
	echo usage: $0 letter aoe-lun >[1=2]
	exit usage
}
if (test -e /dev/aoe/$2 && ! test -e /dev/sd^$1^0)
	echo config switch on spec $1 type aoe//dev/aoe/$2 >/dev/sdctl

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.