b6100594f5
This will work when device is unmounted. On mounted device backend will be removed (after 3s timeout), but frontend will left in "closing" state - manual 'xl block-detach' will be needed.
9 lines
153 B
Bash
Executable File
9 lines
153 B
Bash
Executable File
#!/bin/sh
|
|
|
|
DEVID=$[ $MAJOR * 256 + $MINOR ]
|
|
|
|
XS_PATH="device/vbd/$DEVID"
|
|
|
|
# Double check that DEVID is not empty
|
|
[ -n "$DEVID" ] && xenstore-rm $XS_PATH
|