nfs.c (aaffb853359829a37daaf883c773e8320b55c723) | nfs.c (b92902dfeaafbceaf744ab7473f2d070284f6172) |
---|---|
1/* 2 * QEMU Block driver for native access to files on NFS shares 3 * 4 * Copyright (c) 2014-2017 Peter Lieven <pl@kamp.de> 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 --- 648 unchanged lines hidden (view full) --- 657 ret = nfs_ftruncate(client->context, client->fh, opts->size); 658 nfs_client_close(client); 659 660out: 661 g_free(client); 662 return ret; 663} 664 | 1/* 2 * QEMU Block driver for native access to files on NFS shares 3 * 4 * Copyright (c) 2014-2017 Peter Lieven <pl@kamp.de> 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 --- 648 unchanged lines hidden (view full) --- 657 ret = nfs_ftruncate(client->context, client->fh, opts->size); 658 nfs_client_close(client); 659 660out: 661 g_free(client); 662 return ret; 663} 664 |
665static int coroutine_fn nfs_file_co_create_opts(const char *url, QemuOpts *opts, | 665static int coroutine_fn nfs_file_co_create_opts(BlockDriver *drv, 666 const char *url, 667 QemuOpts *opts, |
666 Error **errp) 667{ 668 BlockdevCreateOptions *create_options; 669 BlockdevCreateOptionsNfs *nfs_opts; 670 QDict *options; 671 int ret; 672 673 create_options = g_new0(BlockdevCreateOptions, 1); --- 231 unchanged lines hidden --- | 668 Error **errp) 669{ 670 BlockdevCreateOptions *create_options; 671 BlockdevCreateOptionsNfs *nfs_opts; 672 QDict *options; 673 int ret; 674 675 create_options = g_new0(BlockdevCreateOptions, 1); --- 231 unchanged lines hidden --- |