Introduction

This page was started to encapsulate the results of reverse-engineering the as-installed /etc/xen/scripts/* scripts

Functions

NameFunctionalityDefined in
_setup_bridge_port xen-network-common.sh
_xenstore_writexenstore-write "$@"xen-hotplug-common.sh
add_to_bridgeIf /sys/class/net/$bridge/brif/$dev does not exist, run
brctl addif $bridge $dev
xen-network-common.sh
canonicalise_mode block-common.sh
create_bridge xen-network-common.sh
device_major_minor block-common.sh
do_or_dieRun args as command.  If it returns non-0 rc, call fatalxen-hotplug-common.sh
do_without_errorRun args as command, discarding stderr.  If it returns non-0 rc, log and continue.xen-hotplug-common.sh
dom0_ipPrint the IP address of the interface in dom0 through which we are routing. This is the IP address on the interface specified as "netdev" as a parameter to these scripts, or eth0 by default.vif-common.sh
ebusy block-common.sh
evalVariablesIf any args contain a character from ">=1", eval itxen-script-common.sh
fatalLog error and exitxen-hotplug-common.sh
findCommandIf any args do not contain "=" set command to it and returnxen-script-common.sh
find_dhcpd_arg_file xen-network-common.sh
find_dhcpd_conf_file xen-network-common.sh
find_dhcpd_init_file xen-network-common.sh
first_file xen-network-common.sh
frob_iptable vif-common.sh
handle_iptableIf iptables working, run frob_iptable function with various argsvif-common.sh
ifdownOnly defined if there is no ifup (sic) command, when it is a dummy and always returns non-zeroxen-network-common.sh
ifupOnly defined if there is no ifup command, when it is a dummy and always returns non-zeroxen-network-common.sh
ip_ofPrint the IP address currently in use at the given interfacevif-common.sh
preiftransferDummy; always returns 0xen-network-common.sh
same_vm block-common.sh
setup_physical_bridge_port_setup_bridge_port $1 0xen-network-common.sh
setup_virtual_bridge_port_setup_bridge_port $1 1xen-network-common.sh
sigerrERR trap handler.  Calls fatalxen-hotplug-common.sh
successTell DevController that backend is "connected"xen-hotplug-common.sh
vtpm_add_and_activate vtpm-common.sh
vtpm_create vtpm-common.sh
vtpm_create_instance vtpm-common.sh
vtpm_delete vtpm-common.sh
vtpm_delete_instance vtpm-common.sh
vtpm_domid_from_name vtpm-common.sh
vtpm_get_create_reason vtpm-common.sh
vtpm_isLocalAddress vtpm-common.sh
vtpm_migrate vtpm-common.sh
vtpm_migrate_local vtpm-common.sh
vtpm_migrate_recover vtpm-common.sh
vtpm_migration_step vtpm-common.sh
vtpm_recover vtpm-common.sh
vtpm_remove_instance vtpm-common.sh
vtpm_resume vtpm-common.sh
vtpm_setup vtpm-common.sh
vtpm_start vtpm-common.sh
vtpm_suspend vtpm-common.sh
vtpm_uuid_by_domid vtpm-common.sh
vtpm_uuid_from_vmname vtpm-common.sh
vtpmdb_add_instance vtpm-common.sh
vtpmdb_find_instance vtpm-common.sh
vtpmdb_get_free_instancenum vtpm-common.sh
vtpmdb_is_free_instancenum vtpm-common.sh
vtpmdb_remove_entry vtpm-common.sh
vtpmdb_validate_entry vtpm-common.sh
write_dev block-common.sh
xenstore_readxenstore-read "$@"xen-hotplug-common.sh
xenstore_read_defaultxenstore-read "$1" || echo "$2"xen-hotplug-common.sh
xenstore_write_xenstore_write "$@" || fatalxen-hotplug-common.sh