block.c (ad1db3b341d3d55e6d722ad868bd48ed4425c9fb) | block.c (89c9bc3d147fdaa932db99b0463b4af1d3e7cda1) |
---|---|
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 --- 773 unchanged lines hidden (view full) --- 782 783/* 784 * Opens a disk image (raw, qcow2, vmdk, ...) 785 */ 786int bdrv_open(BlockDriverState *bs, const char *filename, int flags, 787 BlockDriver *drv) 788{ 789 int ret; | 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 --- 773 unchanged lines hidden (view full) --- 782 783/* 784 * Opens a disk image (raw, qcow2, vmdk, ...) 785 */ 786int bdrv_open(BlockDriverState *bs, const char *filename, int flags, 787 BlockDriver *drv) 788{ 789 int ret; |
790 char tmp_filename[PATH_MAX]; | 790 /* TODO: extra byte is a hack to ensure MAX_PATH space on Windows. */ 791 char tmp_filename[PATH_MAX + 1]; |
791 792 if (flags & BDRV_O_SNAPSHOT) { 793 BlockDriverState *bs1; 794 int64_t total_size; 795 int is_protocol = 0; 796 BlockDriver *bdrv_qcow2; 797 QEMUOptionParameter *options; 798 char backing_filename[PATH_MAX]; --- 3758 unchanged lines hidden --- | 792 793 if (flags & BDRV_O_SNAPSHOT) { 794 BlockDriverState *bs1; 795 int64_t total_size; 796 int is_protocol = 0; 797 BlockDriver *bdrv_qcow2; 798 QEMUOptionParameter *options; 799 char backing_filename[PATH_MAX]; --- 3758 unchanged lines hidden --- |