 8d855aa958
			
		
	
	
		8d855aa958
		
	
	
	
	
		
			
			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 líneas
		
	
	
		
			153 B
		
	
	
	
		
			Bash
		
	
	
		
			Archivo Ejecutable
		
	
	
	
	
			
		
		
	
	
			9 líneas
		
	
	
		
			153 B
		
	
	
	
		
			Bash
		
	
	
		
			Archivo Ejecutable
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| DEVID=$[ $MAJOR * 256 + $MINOR ]
 | |
| 
 | |
| XS_PATH="device/vbd/$DEVID"
 | |
| 
 | |
| # Double check that DEVID is not empty
 | |
| [ -n "$DEVID" ] && xenstore-rm $XS_PATH
 |