Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Q qemu
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Xing Lin
  • qemu
  • Repository
Switch branch/tag
  • qemu
  • block.c
Find file BlameHistoryPermalink
  • Jeff Cody's avatar
    block: for HMP commit() operations on 'all', skip non-COW drives · 272d2d8e
    Jeff Cody authored Feb 26, 2013
    
    
    During a commit of 'all' using the HMP non-live commit, the operation
    is aborted and returns error on the first error enountered.  When
    non-COW drives are in use (e.g. ejected floppy, cdrom, or drives without
    a backing parent), that means a commit all will return an error of either
    -ENOMEDIUM or -ENOTSUP.  This is not desirable, so for the 'all' commit
    case, only attempt the commit if both bs->drv and bs->backing_hd are
    present.
    
    More succinctly: 'commit all' now means a commit on all COW drives.
    
    This means an individual commit to a specific non-COW drive will still
    return the appropriate error (-ENOMEDIUM if eject / not present, -ENOTSUP
    if no backing file).
    Reported-by: default avatarJan Kiszka <jan.kiszka@web.de>
    Signed-off-by: default avatarJeff Cody <jcody@redhat.com>
    Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    272d2d8e

Replace block.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.