diff options
Diffstat (limited to 'block/raw_bsd.c')
-rw-r--r-- | block/raw_bsd.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/block/raw_bsd.c b/block/raw_bsd.c index 5bcbe71c00..b1d7209b7c 100644 --- a/block/raw_bsd.c +++ b/block/raw_bsd.c @@ -112,3 +112,26 @@ static TYPE raw_create(void) { return bdrv_create_file(); } + +static const char *raw_format_name(void) +{ + return "raw"; +} + +static int raw_open(BlockDriverState *bs) +{ + bs->sg = bs->file->sg; + return 0; +} + +static void raw_close(void) +{ +} + +static int raw_probe(void) +{ + /* smallest possible positive score so that raw is used if and only if no + * other block driver works + */ + return 1; +} |