• K
    vvfat: Use opened node as backing file · a8a4d15c
    Kevin Wolf 提交于
    We should not try to assign a not yet opened node as the backing file,
    because as soon as the permission system is added it will fail.  The
    just added bdrv_new_open_driver() function is the right tool to open a
    file with an internal driver, use it.
    
    In case anyone wonders whether that magic fake backing file to trigger a
    special action on 'commit' actually works today: No, not for me. One
    reason is that we've been adding a raw format driver on top for several
    years now and raw doesn't support commit. Other reasons include that the
    backing file isn't writable and the driver doesn't support reopen, and
    it's also size 0 and the driver doesn't support bdrv_truncate. All of
    these are easily fixable, but then 'commit' ended up in an infinite loop
    deep in the vvfat code for me, so I thought I'd best leave it alone. I'm
    not really sure what it was supposed to do anyway.
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    Reviewed-by: NMax Reitz <mreitz@redhat.com>
    a8a4d15c
vvfat.c 87.6 KB