| commit | b6ce07aa83bdee3cfd2610f270a0ce304e78df95 | [log] [tgz] |
|---|---|---|
| author | Kevin Wolf <kwolf@redhat.com> | Mon Apr 12 16:37:13 2010 +0200 |
| committer | Kevin Wolf <kwolf@redhat.com> | Mon May 03 10:07:30 2010 +0200 |
| tree | 193fb240fd386041990b77e5e15cb0e88227619a | |
| parent | 84a12e6648444f517055138a7d7f25a22d7e1029 [diff] |
block: Split bdrv_open bdrv_open contains quite some code that is only useful for opening images (as opposed to opening files by a protocol), for example snapshots. This patch splits the code so that we have bdrv_open_file() for files (uses protocols), bdrv_open() for images (uses format drivers) and bdrv_open_common() for the code common for opening both images and files. Signed-off-by: Kevin Wolf <kwolf@redhat.com>