• M
    block/nfs: Add create_opts · fd752801
    Max Reitz 提交于
    The nfs protocol driver is capable of creating images, but did not
    specify any creation options. Fix it.
    
    A way to test this issue is the following:
    
    $ qemu-img create -f nfs nfs://127.0.0.1/foo.qcow2 64M
    
    Without this patch, it segfaults. With this patch, it does not. However,
    this is not something that should really work; qemu-img should check
    whether the parameter for the -f option (and -O for convert) is indeed a
    format, and error out if it is not. Therefore, I am not making it an
    iotest.
    
    Cc: qemu-stable@nongnu.org
    Signed-off-by: NMax Reitz <mreitz@redhat.com>
    Reviewed-by: NKevin Wolf <kwolf@redhat.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    fd752801
nfs.c 13.7 KB