Skip to content
  • Kevin Wolf's avatar
    6b1a044a
    block: Default .bdrv_child_perm() for format drivers · 6b1a044a
    Kevin Wolf authored
    
    
    Almost all format drivers have the same characteristics as far as
    permissions are concerned: They have one or more children for storing
    their own data and, more importantly, metadata (can be written to and
    grow even without external write requests, must be protected against
    other writers and present consistent data) and optionally a backing file
    (this is just data, so like for a filter, it only depends on what the
    parent nodes need).
    
    This provides a default implementation that can be shared by most of
    our format drivers.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Acked-by: default avatarFam Zheng <famz@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
    6b1a044a
    block: Default .bdrv_child_perm() for format drivers
    Kevin Wolf authored
    
    
    Almost all format drivers have the same characteristics as far as
    permissions are concerned: They have one or more children for storing
    their own data and, more importantly, metadata (can be written to and
    grow even without external write requests, must be protected against
    other writers and present consistent data) and optionally a backing file
    (this is just data, so like for a filter, it only depends on what the
    parent nodes need).
    
    This provides a default implementation that can be shared by most of
    our format drivers.
    
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    Acked-by: default avatarFam Zheng <famz@redhat.com>
    Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
Loading