block.c (a107170537abdfec7221c1e0d424c82f5faf2ebe) block.c (eae041fe6f4314962e873615134eefb32cf8ba61)
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 3308 unchanged lines hidden (view full) ---

3317 if (!drv)
3318 return -ENOMEDIUM;
3319 if (!drv->bdrv_get_info)
3320 return -ENOTSUP;
3321 memset(bdi, 0, sizeof(*bdi));
3322 return drv->bdrv_get_info(bs, bdi);
3323}
3324
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 3308 unchanged lines hidden (view full) ---

3317 if (!drv)
3318 return -ENOMEDIUM;
3319 if (!drv->bdrv_get_info)
3320 return -ENOTSUP;
3321 memset(bdi, 0, sizeof(*bdi));
3322 return drv->bdrv_get_info(bs, bdi);
3323}
3324
3325ImageInfoSpecific *bdrv_get_specific_info(BlockDriverState *bs)
3326{
3327 BlockDriver *drv = bs->drv;
3328 if (drv && drv->bdrv_get_specific_info) {
3329 return drv->bdrv_get_specific_info(bs);
3330 }
3331 return NULL;
3332}
3333
3325int bdrv_save_vmstate(BlockDriverState *bs, const uint8_t *buf,
3326 int64_t pos, int size)
3327{
3328 QEMUIOVector qiov;
3329 struct iovec iov = {
3330 .iov_base = (void *) buf,
3331 .iov_len = size,
3332 };

--- 1302 unchanged lines hidden ---
3334int bdrv_save_vmstate(BlockDriverState *bs, const uint8_t *buf,
3335 int64_t pos, int size)
3336{
3337 QEMUIOVector qiov;
3338 struct iovec iov = {
3339 .iov_base = (void *) buf,
3340 .iov_len = size,
3341 };

--- 1302 unchanged lines hidden ---