file-win32.c (aaffb853359829a37daaf883c773e8320b55c723) file-win32.c (b92902dfeaafbceaf744ab7473f2d070284f6172)
1/*
2 * Block driver for RAW files (win32)
3 *
4 * Copyright (c) 2006 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

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

583 }
584 set_sparse(fd);
585 ftruncate(fd, file_opts->size);
586 qemu_close(fd);
587
588 return 0;
589}
590
1/*
2 * Block driver for RAW files (win32)
3 *
4 * Copyright (c) 2006 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

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

583 }
584 set_sparse(fd);
585 ftruncate(fd, file_opts->size);
586 qemu_close(fd);
587
588 return 0;
589}
590
591static int coroutine_fn raw_co_create_opts(const char *filename, QemuOpts *opts,
591static int coroutine_fn raw_co_create_opts(BlockDriver *drv,
592 const char *filename,
593 QemuOpts *opts,
592 Error **errp)
593{
594 BlockdevCreateOptions options;
595 int64_t total_size = 0;
596
597 strstart(filename, "file:", &filename);
598
599 /* Read out options */

--- 231 unchanged lines hidden ---
594 Error **errp)
595{
596 BlockdevCreateOptions options;
597 int64_t total_size = 0;
598
599 strstart(filename, "file:", &filename);
600
601 /* Read out options */

--- 231 unchanged lines hidden ---