qemu-nbd.c (09704e6ded83fa0bec14baf32f800f6512156ca0) qemu-nbd.c (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.

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

905 ret = find_partition(blk, partition, &dev_offset, &fd_size);
906 if (ret < 0) {
907 error_report("Could not find partition %d: %s", partition,
908 strerror(-ret));
909 exit(EXIT_FAILURE);
910 }
911 }
912
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.

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

905 ret = find_partition(blk, partition, &dev_offset, &fd_size);
906 if (ret < 0) {
907 error_report("Could not find partition %d: %s", partition,
908 strerror(-ret));
909 exit(EXIT_FAILURE);
910 }
911 }
912
913 exp = nbd_export_new(blk, dev_offset, fd_size, nbdflags, nbd_export_closed,
914 &local_err);
913 exp = nbd_export_new(bs, dev_offset, fd_size, nbdflags, nbd_export_closed,
914 writethrough, NULL, &local_err);
915 if (!exp) {
916 error_report_err(local_err);
917 exit(EXIT_FAILURE);
918 }
919 if (export_name) {
920 nbd_export_set_name(exp, export_name);
921 newproto = true;
922 }

--- 57 unchanged lines hidden ---
915 if (!exp) {
916 error_report_err(local_err);
917 exit(EXIT_FAILURE);
918 }
919 if (export_name) {
920 nbd_export_set_name(exp, export_name);
921 newproto = true;
922 }

--- 57 unchanged lines hidden ---