# HG changeset patch # User Hans-G?nter Theisgen # Date 1650729032 -3600 # Node ID 293d53cefa7b4b3e43b15881c919e1785e894a26 # Parent 50e835d951d82c0402832cdb3bcc6364412ed4d8 updated nbd (3.20 -> 3.24) diff -r 50e835d951d8 -r 293d53cefa7b nbd/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nbd/description.txt Sat Apr 23 16:50:32 2022 +0100 @@ -0,0 +1,21 @@ +With this compiled into your kernel, Linux can use a remote server +as one of its block devices. +Every time the client computer wants to read /dev/nbd0, it will send +a request to the server via TCP, which will reply with the data +requested. +This can be used for stations with low disk space (or even diskless +- if you use an initrd) to borrow disk space from other computers. +Unlike NFS, it is possible to put any file system on it. +But (also unlike NFS), if someone has mounted NBD read and write, +you must assure that no one else will have it mounted. + +Current state: +It currently works. Network block device is pretty stable. +It was originaly thought that it is impossible to swap over TCP; +this turned out not to be true. +However, to avoid deadlocks, you will need at least Linux 3.6. + +It is possible to use NBD as the block device counterpart of FUSE, +to implement the block device's reads and writes in user space. +To make this easer, recent versions of NBD (3.10 and above) +implement NBD over a Unix Domain Socket, too. diff -r 50e835d951d8 -r 293d53cefa7b nbd/receipt --- a/nbd/receipt Sat Apr 23 15:41:59 2022 +0000 +++ b/nbd/receipt Sat Apr 23 16:50:32 2022 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="nbd" -VERSION="3.20" +VERSION="3.24" CATEGORY="network" SHORT_DESC="Remote block devices over a TCP/IP network." MAINTAINER="pascal.bellard@slitaz.org" @@ -33,17 +33,16 @@ --prefix=/usr \ $CONFIGURE_ARGS && make && - make DESTDIR=$DESTDIR install + make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr mkdir -p $fs/etc/nbd-server - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/sbin $fs/usr + cook_copy_folders bin + cook_copy_folders sbin touch $fs/etc/nbd-server/config }