Page MenuHomeFreeBSD

blkback: add support for hotplug scripts
AbandonedPublic

Authored by royger on May 22 2015, 9:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 26 2025, 3:38 AM
Unknown Object (File)
Nov 23 2025, 1:24 PM
Unknown Object (File)
Nov 21 2025, 3:59 AM
Unknown Object (File)
Nov 21 2025, 3:57 AM
Unknown Object (File)
Nov 21 2025, 3:56 AM
Unknown Object (File)
Sep 2 2025, 4:31 AM
Unknown Object (File)
Aug 2 2025, 6:40 PM
Unknown Object (File)
Jul 28 2025, 5:23 PM
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.