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
  • Stefan Hajnoczi's avatar
    block: fix BDRV_O_SNAPSHOT protocol detection · 4d70655b
    Stefan Hajnoczi authored Mar 18, 2013
    realpath(3) is used to get an absolute path to the image file when
    creating a -drive snapshot=on temporary qcow2.  This does not work for
    protocols since their filenames ("proto:foo:...") do not correspond to
    file system paths.
    
    Commit 7c96d46e
    
     ("Let snapshot work with
    protocols") skipped realpath(3) for protocols.  Later on the "raw"
    format was introduced and broke the check.
    
    Use path_has_protocol(filename) to decide if this image uses a protocol
    or a filename.
    Reported-by: default avatarRichard Jones <rjones@redhat.com>
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    4d70655b

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.