Vitaliy Filippov
842ba8b831
Use (uint64_t)1 instead of 1l / 1ul
10 months ago
Vitaliy Filippov
cd18ef7323
Disconnect NBD proxy correctly without leaving a zombie [vitastor-nbd] process in D state
10 months ago
Vitaliy Filippov
c373425562
Fix nbd log
10 months ago
Vitaliy Filippov
9c30df83e3
Fix a HUGE :) bug in NBD proxy
...
The bug could result in corrupted data on large writes
10 months ago
Vitaliy Filippov
4100d829c7
Allow to override log file for daemonized NBD proxy
10 months ago
Vitaliy Filippov
318cc463c2
Fix warnings
1 year ago
Vitaliy Filippov
140309620a
Free recv_buf in nbd_proxy
1 year ago
Vitaliy Filippov
218e294e9c
> 0, of course
1 year ago
Vitaliy Filippov
cc6b24e03a
Allow to configure NBD timeout, max devices and partitions
...
Also set default NBD devices/partitions to 64/3, Linux default is 16/16 which is way too low
1 year ago
Vitaliy Filippov
0757ba630a
Do not happily NBD "map" non-existing images, do not try to benchmark them too
1 year ago
Vitaliy Filippov
77cc18420a
Fix leaks detected by clang scan-build (only 1 of 4 may be important though)
1 year ago
Vitaliy Filippov
7bdd92ca4f
Fix build under clang and some warnings
...
Build problems fixed:
- void* pointer arithmetic which is a GNU extension (works as byte*)
- "variable size object may not be initialized" which is OK under GCC
- nullptr_t related error in json11 (it lacks 'operator <' in clang)
Warnings fixed:
- empty nested struct initializer { 0 } replaced by {}
- removed several unused lambda captures
1 year ago
Vitaliy Filippov
42479b4590
Fix vitastor-nbd list, add ls alias
1 year ago
Vitaliy Filippov
57be1923d3
Daemonize NBD_DO_IT process, correctly cleanup unmounted NBD clients
2 years ago
Vitaliy Filippov
bf591ba3ee
Fix nbd module load check
2 years ago
Vitaliy Filippov
f6f35f4127
Pass options correctly to not override /etc/vitastor/vitastor.conf
2 years ago
Vitaliy Filippov
82e6aff17b
Support mapping NBD by the image name
2 years ago
Vitaliy Filippov
bf9a175efc
Move C/C++ sources to src subdirectory
2 years ago
Vitaliy Filippov
4a2dcf7b6b
Update the license to VNPL 1.1
...
VNPL 1.1 is slightly reworded to make it clear that proprietary software
interacting with Vitastor and providing some kind of service to end users isn't
a "Proxy Program" if it's not specially designed to be used with Vitastor.
For example, Windows OS running in a virtual machine stored in a Vitastor
cluster clearly isn't.
2 years ago
Vitaliy Filippov
3be7bc29d8
Make it build with QEMU 2.0, too
...
Also begin to work on rpms
2 years ago
Vitaliy Filippov
15dba96375
Implement inode removal tool. Removes multiple objects from multiple OSDs in parallel
2 years ago
Vitaliy Filippov
2fdd8a1b38
More correct failure model (I hope so)
2 years ago
Vitaliy Filippov
526983f7a9
Add usable CLI commands for NBD proxy (map/unmap/list)
2 years ago
Vitaliy Filippov
7619a789c0
Set request size in NBD
2 years ago
Vitaliy Filippov
e65a28e27e
Implement a simple NBD proxy (does not daemonize yet)
2 years ago