block_cleanup 153 B

12345678
  1. #!/bin/sh
  2. DEVID=$[ $MAJOR * 256 + $MINOR ]
  3. XS_PATH="device/vbd/$DEVID"
  4. # Double check that DEVID is not empty
  5. [ -n "$DEVID" ] && xenstore-rm $XS_PATH