package/nbd: bump to version 3.21

- Drop patch (already in version)
- Update indentation in hash file (two spaces)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2021-07-21 19:13:54 +02:00 committed by Thomas Petazzoni
parent c7fd40c7d8
commit 2016df2ed2
3 changed files with 6 additions and 31 deletions

View File

@ -1,25 +0,0 @@
From d2480de925e83c8bf60faa96141f4198bdf7f619 Mon Sep 17 00:00:00 2001
From: Wouter Verhelst <w@uter.be>
Date: Fri, 2 Aug 2019 10:33:00 +0200
Subject: [PATCH] Also close the file descriptor before returning
Coverity CID#1162721
[Retrieved from:
https://github.com/NetworkBlockDevice/nbd/commit/d2480de925e83c8bf60faa96141f4198bdf7f619]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
nbd-client.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/nbd-client.c b/nbd-client.c
index e9ec0a86..94035886 100644
--- a/nbd-client.c
+++ b/nbd-client.c
@@ -930,6 +930,7 @@ void disconnect(char* device) {
if (ioctl(nbd, NBD_CLEAR_SOCK)<0)
err("Ioctl failed: %m\n");
printf("done\n");
+ close(nbd);
}
#if HAVE_NETLINK

View File

@ -1,7 +1,7 @@
# From http://sourceforge.net/projects/nbd/files/nbd/3.20/
md5 910fe6c152f8c30ad8608388e6a4ce89 nbd-3.20.tar.xz
sha1 9240430266ff4bfb2316ef6d880056a9974a59fd nbd-3.20.tar.xz
# From http://sourceforge.net/projects/nbd/files/nbd/3.21/
md5 c51c4c500fe1ed84c3d5d5dd2ca71d23 nbd-3.21.tar.xz
sha1 88c3296d43d20d7bda97e0f1bab0243a4f6fa880 nbd-3.21.tar.xz
# Locally calculated
sha256 e0e1b3538ab7ae5accf56180afd1a9887d415b98d21223b8ad42592b4af7d6cd nbd-3.20.tar.xz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
sha256 e7688af39d91733bbcd2db08062c44fe503d004e51528740139c44aff6a6bef9 nbd-3.21.tar.xz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING

View File

@ -4,7 +4,7 @@
#
################################################################################
NBD_VERSION = 3.20
NBD_VERSION = 3.21
NBD_SOURCE = nbd-$(NBD_VERSION).tar.xz
NBD_SITE = http://downloads.sourceforge.net/project/nbd/nbd/$(NBD_VERSION)
NBD_CONF_OPTS = --enable-lfs