update to 2.9.25 OBS-URL: https://build.opensuse.org/request/show/99354 OBS-URL: https://build.opensuse.org/package/show/network:utilities/nbd?expand=0&rev=15
21 lines
616 B
Diff
21 lines
616 B
Diff
--- nbd-2.9.25/nbd-server.c.orig 2012-01-06 17:15:20.229280050 -0500
|
|
+++ nbd-2.9.25/nbd-server.c 2012-01-06 17:47:08.447424041 -0500
|
|
@@ -83,7 +83,7 @@
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <fcntl.h>
|
|
-#ifdef HAVE_FALLOC_PH
|
|
+#if HAVE_FALLOC_PH
|
|
#include <linux/falloc.h>
|
|
#endif
|
|
#include <arpa/inet.h>
|
|
@@ -1461,7 +1461,7 @@
|
|
* file to resparsify stuff that isn't needed anymore (see NBD_CMD_TRIM)
|
|
*/
|
|
int exptrim(struct nbd_request* req, CLIENT* client) {
|
|
-#ifdef HAVE_FALLOC_PH
|
|
+#if HAVE_FALLOC_PH
|
|
FILE_INFO prev = g_array_index(client->export, FILE_INFO, 0);
|
|
FILE_INFO cur = prev;
|
|
int i = 1;
|