Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • Q qemu
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • PureOS
  • Packages
  • qemu
  • Repository
Switch branch/tag
  • qemu
  • blockdev.c
Find file BlameHistoryPermalink
  • Jeff Cody's avatar
    block: after creating a live snapshot, make old image read-only · 870f5681
    Jeff Cody authored Sep 25, 2012
    
    
    Currently, after a live snapshot of a drive, the image that has
    been 'demoted' to be below the new active layer remains r/w.
    This patch reopens it read-only.
    
    Note that we do not check for error on the reopen(), because we
    will not abort the snapshots if the reopen fails.
    
    This patch depends on the bdrv_reopen() series.
    Signed-off-by: default avatarJeff Cody <jcody@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    870f5681