49416c65ab
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/libnbd.git#26b60ce381dca173d32befad52fd159942b68eb2
16 lines
295 B
Bash
Executable File
16 lines
295 B
Bash
Executable File
#!/bin/bash -
|
|
set -e
|
|
set -x
|
|
|
|
# Enable libnbd debugging.
|
|
export LIBNBD_DEBUG=1
|
|
|
|
# Connect to nbdkit.
|
|
nbdsh -c - <<EOF
|
|
h.connect_command (["nbdkit", "-s", "--exit-with-parent",
|
|
"memory", "size=1G"])
|
|
size = h.get_size ()
|
|
print ("size = %s" % size)
|
|
assert size == 1073741824
|
|
EOF
|