gluster / nbd-runner

Network Block Device for Distributed Storages, such as Gluster, Ceph, Azure, etc.
GNU General Public License v2.0
11 stars 4 forks source link

list: fix g_hash_table_lookup: assertion 'hash_table != NULL' failed #33

Closed lxbsz closed 5 years ago

lxbsz commented 5 years ago

Signed-off-by: Xiubo Li xiubli@redhat.com

lxbsz commented 5 years ago

Test in RHEL7 and Fedora27:

[root@fedora27 nbd-runner]# ./cli/nbd-cli gluster list all
Module 'nbd' is already loaded
DEVICES     STATUS      TIME            BACKSTORE
-------     ------      ----            ---------
/dev/nbd0   Mapped      Unkown          Unkown
/dev/nbd1   Mapped      Unkown          Unkown
/dev/nbd2   Mapped      Unkown          Unkown
/dev/nbd3   Mapped      Unkown          Unkown
/dev/nbd4   Mapped      Unkown          Unkown
/dev/nbd5   Mapped      Unkown          Unkown
/dev/nbd6   Mapped      Unkown          Unkown
/dev/nbd7   Mapped      Unkown          Unkown
/dev/nbd8   Mapped      Unkown          Unkown
/dev/nbd9   Mapped      Unkown          Unkown
/dev/nbd10  Unmapped
/dev/nbd11  Unmapped
/dev/nbd12  Unmapped
/dev/nbd13  Unmapped
/dev/nbd14  Unmapped
/dev/nbd15  Unmapped
[root@fedora27 nbd-runner]# ./cli/nbd-cli gluster list all host 10.70.39.241
Module 'nbd' is already loaded
DEVICES     STATUS      TIME            BACKSTORE
-------     ------      ----            ---------
/dev/nbd0   Mapped      2019-03-10 09:43:54     repvol@10.70.39.241:/file31
/dev/nbd1   Mapped      Unkown          Unkown
/dev/nbd2   Mapped      Unkown          Unkown
/dev/nbd3   Mapped      Unkown          Unkown
/dev/nbd4   Mapped      Unkown          Unkown
/dev/nbd5   Mapped      Unkown          Unkown
/dev/nbd6   Mapped      Unkown          Unkown
/dev/nbd7   Mapped      Unkown          Unkown
/dev/nbd8   Mapped      Unkown          Unkown
/dev/nbd9   Mapped      Unkown          Unkown
/dev/nbd10  Unmapped
/dev/nbd11  Unmapped
/dev/nbd12  Unmapped
/dev/nbd13  Unmapped
/dev/nbd14  Unmapped
/dev/nbd15  Unmapped
[root@fedora27 nbd-runner]#