|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
Re: [Xen-devel] block-nbd script and example config
 
On 10/20/05, Anthony Liguori <aliguori@xxxxxxxxxx> wrote:
> >disks = [ 'export=phy:/dev/sda1, target=/dev/sda1, options=rw',
> >          'export=phy:/dev/vg/my_usr, target=/dev/sdb1, options=ro' ]
> The only thing to think about is how do handle file devices with spaces
> in the filename.  This is going to be common I think.
Since it's a python variable can't you just run a validator on config
import and throw an exception if the devive block doesn't exist. 
Noting that device paths including special characters need to be
enclosured in "...".
ie. export=phy:"/dev/vgname/bob your uncle; mate! device", ...
--
Nicholas Lee
http://stateless.geek.nz
gpg 8072 4F86 EDCD 4FC1 18EF  5BDD 07B0 9597 6D58 D70C
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 |   
 
 | 
    | 
  
  
    |   | 
    |