nbd.h (09704e6ded83fa0bec14baf32f800f6512156ca0) | nbd.h (cd7fca952ce8456955f7f4e11df9ced14204c2f1) |
---|---|
1/* 2 * Copyright (C) 2005 Anthony Liguori <anthony@codemonkey.ws> 3 * 4 * Network Block Device 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; under version 2 of the License. --- 89 unchanged lines hidden (view full) --- 98ssize_t nbd_send_request(QIOChannel *ioc, struct nbd_request *request); 99ssize_t nbd_receive_reply(QIOChannel *ioc, struct nbd_reply *reply); 100int nbd_client(int fd); 101int nbd_disconnect(int fd); 102 103typedef struct NBDExport NBDExport; 104typedef struct NBDClient NBDClient; 105 | 1/* 2 * Copyright (C) 2005 Anthony Liguori <anthony@codemonkey.ws> 3 * 4 * Network Block Device 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; under version 2 of the License. --- 89 unchanged lines hidden (view full) --- 98ssize_t nbd_send_request(QIOChannel *ioc, struct nbd_request *request); 99ssize_t nbd_receive_reply(QIOChannel *ioc, struct nbd_reply *reply); 100int nbd_client(int fd); 101int nbd_disconnect(int fd); 102 103typedef struct NBDExport NBDExport; 104typedef struct NBDClient NBDClient; 105 |
106NBDExport *nbd_export_new(BlockBackend *blk, off_t dev_offset, off_t size, | 106NBDExport *nbd_export_new(BlockDriverState *bs, off_t dev_offset, off_t size, |
107 uint16_t nbdflags, void (*close)(NBDExport *), | 107 uint16_t nbdflags, void (*close)(NBDExport *), |
108 bool writethrough, BlockBackend *on_eject_blk, |
|
108 Error **errp); 109void nbd_export_close(NBDExport *exp); 110void nbd_export_get(NBDExport *exp); 111void nbd_export_put(NBDExport *exp); 112 113BlockBackend *nbd_export_get_blockdev(NBDExport *exp); 114 115NBDExport *nbd_export_find(const char *name); --- 12 unchanged lines hidden --- | 109 Error **errp); 110void nbd_export_close(NBDExport *exp); 111void nbd_export_get(NBDExport *exp); 112void nbd_export_put(NBDExport *exp); 113 114BlockBackend *nbd_export_get_blockdev(NBDExport *exp); 115 116NBDExport *nbd_export_find(const char *name); --- 12 unchanged lines hidden --- |