search for: connb

Displaying 2 results from an estimated 2 matches for "connb".

Did you mean: conn
2020 May 20
0
[PATCH nbdkit] tests/test-truncate4.sh: Rewrite to use nbdsh.
....NBD () +connA.set_handle_name ("A") +connA.connect_unix (sock) +print ("Check the size.", flush=True) +assert connA.get_size () == 1024 + +print ("Truncate %s to 512 bytes." % data, flush=True) +os.truncate (data, 512) + +print ("Connection B.", flush=True) +connB = nbd.NBD () +connB.set_handle_name ("B") +connB.connect_unix (sock) +print ("Check the size.", flush=True) +assert connB.get_size () == 1024 # because of the round-up parameter +print ("Read data from connection B.", flush=True) +buf = connB.pread (1024, 0) +assert bu...
2020 May 20
2
[PATCH nbdkit] tests/test-truncate4.sh: Rewrite to use nbdsh.
This commit works for me, but TBH I'm not clear on what the actual purpose of this test is supposed to be. Rich.