Page MenuHomeFreeBSD

blkback: add support for hotplug scripts
AbandonedPublic

Authored by royger on May 22 2015, 9:47 AM.
Tags
None
Referenced Files
F153983425: D2617.id5548.diff
Sat, Apr 25, 6:22 AM
Unknown Object (File)
Thu, Apr 23, 10:38 AM
Unknown Object (File)
Tue, Apr 21, 2:09 AM
Unknown Object (File)
Wed, Apr 15, 11:46 AM
Unknown Object (File)
Tue, Apr 14, 8:09 PM
Unknown Object (File)
Mon, Apr 13, 5:46 AM
Unknown Object (File)
Tue, Apr 7, 7:41 AM
Unknown Object (File)
Mon, Mar 30, 4:06 AM
Subscribers

Details

Reviewers
gibbs
Summary

Hotplug scripts are needed in order to use fancy disk configurations in xl,
like iSCSI disks. The job of hotplug scripts is to locally attach the disk
and present it to blkback as a block device or a regular file.

This change introduces a new xenstore node in the blkback hierarchy, called
"path". This is a straigh replacement for the "params" node, which was used
before.

Hotplug scripts will need to read the "params" node, perform whatever
actions are necessary and then write the "path" node. The hotplug script is
also in charge of detaching the disk once the domain has been shutdown.

Sponsored by: Citrix Systems R&D

This is paired with the Xen series at:

https://people.freebsd.org/~royger/xen-hotplug/

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

royger retitled this revision from to blkback: add support for hotplug scripts.
royger updated this object.
royger edited the test plan for this revision. (Show Details)
royger added a reviewer: gibbs.