{"push_id":770705471,"size":1,"distinct_size":1,"ref":"refs/heads/c_api","head":"5a3e279f8861ecbeff3bc42ecd5e7185bd442c45","before":"758784a414905e63192c6f05211ebd253aa9a3ea","commits":[{"sha":"5a3e279f8861ecbeff3bc42ecd5e7185bd442c45","author":{"email":"e24f3acbe39bf94f92e8af3c48f8852106ad5ad7@redhat.com","name":"Gris Ge"},"message":"Demo: New C API <libmultipath/libmultipath.h>\n\n * Check test/libmultipath_test.c for detail usage.\n * Features:\n    * Using existing codes in libmultipath folder.\n    * Support multipath querying including basic path group and path\n      information.\n * Tested by 'make check' using 'scsi_debug'\n\n * Memory leak not check yet.\n\nTry out commands;\n=====\nsudo modprobe scsi_debug \\\n    dev_size_mb=100 num_tgts=1 vpd_use_hostno=0 \\\n    add_host=4 delay=20 max_luns=2 no_lun_0=1\nmake -j5\nsudo make install \\\n    bindir=/usr/sbin/ \\\n    syslibdir=/usr/lib64/ \\\n    libdir=/usr/lib64/multipath \\\n    rcdir=/etc/rc.d/init.d \\\n    unitdir=/usr/lib/systemd/system \\\n    includedir=/usr/include\n\ncat <<END | sudo tee /etc/multipath.conf\n\ndefaults {\nuser_friendly_names     yes\n}\nblacklist {\n    device {\n        vendor .*\n        product .*\n    }\n}\nblacklist_exceptions {\n    device {\n        vendor Linux\n        product scsi_debug\n    }\n}\nEND\n\nsudo /usr/sbin/multipathd\nsudo multipath -l\nmake check\n====\n\nSigned-off-by: Gris Ge <fge@redhat.com>","distinct":true,"url":"https://api.github.com/repos/cathay4t/multipath-tools/commits/5a3e279f8861ecbeff3bc42ecd5e7185bd442c45"}]}