glusterfs: capable to test with one single glfs instance
authorZhang Huan <zhanghuan@open-fs.com>
Wed, 6 Jun 2018 03:52:14 +0000 (11:52 +0800)
committerZhang Huan <zhanghuan@open-fs.com>
Wed, 20 Jun 2018 10:13:54 +0000 (18:13 +0800)
commit53c508dd3f4013ed85d623f58a356c3937ddcfc6
tree25353c8c7254adcd5ce5523870c14ec21950e296
parent5de1d4ba1e6ae82bb4ad559463801cb6b7096ac3
glusterfs: capable to test with one single glfs instance

Current multi-thread test creates one glfs instance per job. However,
there is requirement to run all jobs on one single instance, and that
all jobs would share the same set of underlying working threads.

Add a new option "single-instance" to control whether to create one
global instance or one instance per job. For testing with mutilple
gluster volumes, use host name and volume name to filter out same
volume, one specific volume will have one instance.

Signed-off-by: Zhang Huan <zhanghuan@open-fs.com>
engines/gfapi.h
engines/glusterfs.c