Skip to content
  • Fam Zheng's avatar
    block: Use BdrvChild to discard · 0b9fd3f4
    Fam Zheng authored
    
    
    Other I/O functions are already using a BdrvChild pointer in the API, so
    make discard do the same. It makes it possible to initiate the same
    permission checks before doing I/O, and much easier to share the
    helper functions for this, which will be added and used by write,
    truncate and copy range paths.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    0b9fd3f4