nfs.c (98c10b810a83a0f52b4b5a14a8a36ce0622cb01f) | nfs.c (c282e1fdf7ec9659c7f320123be397477a359d01) |
---|---|
1/* 2 * QEMU Block driver for native access to files on NFS shares 3 * 4 * Copyright (c) 2014 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 --- 443 unchanged lines hidden (view full) --- 452 .instance_size = sizeof(NFSClient), 453 .bdrv_needs_filename = true, 454 .bdrv_has_zero_init = nfs_has_zero_init, 455 .bdrv_get_allocated_file_size = nfs_get_allocated_file_size, 456 .bdrv_truncate = nfs_file_truncate, 457 458 .bdrv_file_open = nfs_file_open, 459 .bdrv_close = nfs_file_close, | 1/* 2 * QEMU Block driver for native access to files on NFS shares 3 * 4 * Copyright (c) 2014 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 --- 443 unchanged lines hidden (view full) --- 452 .instance_size = sizeof(NFSClient), 453 .bdrv_needs_filename = true, 454 .bdrv_has_zero_init = nfs_has_zero_init, 455 .bdrv_get_allocated_file_size = nfs_get_allocated_file_size, 456 .bdrv_truncate = nfs_file_truncate, 457 458 .bdrv_file_open = nfs_file_open, 459 .bdrv_close = nfs_file_close, |
460 .bdrv_create2 = nfs_file_create, | 460 .bdrv_create = nfs_file_create, |
461 462 .bdrv_co_readv = nfs_co_readv, 463 .bdrv_co_writev = nfs_co_writev, 464 .bdrv_co_flush_to_disk = nfs_co_flush, 465 466 .bdrv_detach_aio_context = nfs_detach_aio_context, 467 .bdrv_attach_aio_context = nfs_attach_aio_context, 468}; 469 470static void nfs_block_init(void) 471{ 472 bdrv_register(&bdrv_nfs); 473} 474 475block_init(nfs_block_init); | 461 462 .bdrv_co_readv = nfs_co_readv, 463 .bdrv_co_writev = nfs_co_writev, 464 .bdrv_co_flush_to_disk = nfs_co_flush, 465 466 .bdrv_detach_aio_context = nfs_detach_aio_context, 467 .bdrv_attach_aio_context = nfs_attach_aio_context, 468}; 469 470static void nfs_block_init(void) 471{ 472 bdrv_register(&bdrv_nfs); 473} 474 475block_init(nfs_block_init); |