wok-current rev 24958

updated nbd (3.20 -> 3.24)
author Hans-G?nter Theisgen
date Sat Apr 23 16:50:32 2022 +0100 (2022-04-23)
parents 50e835d951d8
children b10dd0339358
files nbd/description.txt nbd/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nbd/description.txt	Sat Apr 23 16:50:32 2022 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +With this compiled into your kernel, Linux can use a remote server
     1.5 +as one of its block devices.
     1.6 +Every time the client computer wants to read /dev/nbd0, it will send
     1.7 +a request to the server via TCP, which will reply with the data
     1.8 +requested.
     1.9 +This can be used for stations with low disk space (or even diskless
    1.10 +- if you use an initrd) to borrow disk space from other computers.
    1.11 +Unlike NFS, it is possible to put any file system on it.
    1.12 +But (also unlike NFS), if someone has mounted NBD read and write,
    1.13 +you must assure that no one else will have it mounted.
    1.14 +
    1.15 +Current state:
    1.16 +It currently works. Network block device is pretty stable.
    1.17 +It was originaly thought that it is impossible to swap over TCP;
    1.18 +this turned out not to be true.
    1.19 +However, to avoid deadlocks, you will need at least Linux 3.6.
    1.20 +
    1.21 +It is possible to use NBD as the block device counterpart of FUSE,
    1.22 +to implement the block device's reads and writes in user space.
    1.23 +To make this easer, recent versions of NBD (3.10 and above)
    1.24 +implement NBD over a Unix Domain Socket, too.
     2.1 --- a/nbd/receipt	Sat Apr 23 15:41:59 2022 +0000
     2.2 +++ b/nbd/receipt	Sat Apr 23 16:50:32 2022 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="nbd"
     2.7 -VERSION="3.20"
     2.8 +VERSION="3.24"
     2.9  CATEGORY="network"
    2.10  SHORT_DESC="Remote block devices over a TCP/IP network."
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
    2.12 @@ -33,17 +33,16 @@
    2.13  		--prefix=/usr		\
    2.14  		$CONFIGURE_ARGS &&
    2.15  	make &&
    2.16 -	make DESTDIR=$DESTDIR install
    2.17 +	make install DESTDIR=$DESTDIR
    2.18  }
    2.19  
    2.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.21  genpkg_rules()
    2.22  {
    2.23 -	mkdir -p $fs/usr
    2.24  	mkdir -p $fs/etc/nbd-server
    2.25  
    2.26 -	cp -a $install/usr/bin	$fs/usr
    2.27 -	cp -a $install/usr/sbin	$fs/usr
    2.28 +	cook_copy_folders	bin
    2.29 +	cook_copy_folders	sbin
    2.30  
    2.31  	touch			$fs/etc/nbd-server/config
    2.32  }