Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
xen.196
block-nbd
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File block-nbd of Package xen.196
#!/bin/sh # Usage: block-nbd [bind server ctl_port |unbind node] # # The node argument to unbind is the name of the device node we are to # unbind. # # This assumes you're running a correctly configured server at the other end! dir=$(dirname "$0") . "$dir/block-common.sh" #set -x par=`xenstore-read $XENBUS_PATH/params` || true #echo $par case "$command" in add) modprobe nbd for dev in /dev/nbd*; do if nbd-client $par $dev; then xenstore-write $XENBUS_PATH/node $dev write_dev $dev exit 0 fi done exit 1 ;; remove) node=`xenstore-read $XENBUS_PATH/node` || true nbd-client -d $node exit 0 ;; esac
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor