wok-current view nbd/description.txt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents
children
line source
1 With this compiled into your kernel, Linux can use a remote server
2 as one of its block devices.
3 Every time the client computer wants to read /dev/nbd0, it will send
4 a request to the server via TCP, which will reply with the data
5 requested.
6 This can be used for stations with low disk space (or even diskless
7 - if you use an initrd) to borrow disk space from other computers.
8 Unlike NFS, it is possible to put any file system on it.
9 But (also unlike NFS), if someone has mounted NBD read and write,
10 you must assure that no one else will have it mounted.
12 Current state:
13 It currently works. Network block device is pretty stable.
14 It was originaly thought that it is impossible to swap over TCP;
15 this turned out not to be true.
16 However, to avoid deadlocks, you will need at least Linux 3.6.
18 It is possible to use NBD as the block device counterpart of FUSE,
19 to implement the block device's reads and writes in user space.
20 To make this easer, recent versions of NBD (3.10 and above)
21 implement NBD over a Unix Domain Socket, too.