• P
    block: add native support for NFS · 6542aa9c
    Peter Lieven 提交于
    This patch adds native support for accessing images on NFS
    shares without the requirement to actually mount the entire
    NFS share on the host.
    
    NFS Images can simply be specified by an url of the form:
    nfs://<host>/<export>/<filename>[?param=value[&param2=value2[&...]]]
    
    For example:
    qemu-img create -f qcow2 nfs://10.0.0.1/qemu-images/test.qcow2
    
    You need LibNFS from Ronnie Sahlberg available at:
       git://github.com/sahlberg/libnfs.git
    for this to work.
    
    During configure it is automatically probed for libnfs and support
    is enabled on-the-fly. You can forbid or enforce libnfs support
    with --disable-libnfs or --enable-libnfs respectively.
    
    Due to NFS restrictions you might need to execute your binaries
    as root, allow them to open priviledged ports (<1024) or specify
    insecure option on the NFS server.
    
    For additional information on ROOT vs. non-ROOT operation and URL
    format + parameters see:
       https://raw.github.com/sahlberg/libnfs/master/README
    
    Supported by qemu are the uid, gid and tcp-syncnt URL parameters.
    
    LibNFS currently support NFS version 3 only.
    Signed-off-by: NPeter Lieven <pl@kamp.de>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    6542aa9c
qapi-schema.json 120.3 KB