Open ssmuch opened 1 year ago
Hi Team, could someone help to take a look? Could we enhance the DEV_USER_VERSION check logic for better supporting older release device handler?
thanks, Kyle
Hi Team, could someone help to take a look? Could we enhance the DEV_USER_VERSION check logic for better supporting older release device handler?
thanks, Kyle
Hi Team,
When upgrading the SCST version(to 3.7), we discover that the device handler(which compiled with scst 3.6 user space) is not compatible.
In the scst_user spect file and source file, the current logic, before dev_user_register_dev registering a device, it will check the protocol version: DEV_USER_VERSION, https://scst.sourceforge.net/scst_user_spec.pdf https://github.com/SCST-project/scst/blob/master/scst/src/dev_handlers/scst_user.c#L3265
And the DEV_USER_VERSION is defined by retrieving sha1sum value of $(SCST_INC_DIR)/scst_user.h, this hash value is different, even the changes of scst_user.h is very limited. https://github.com/SCST-project/scst/blob/master/scst/src/Makefile#L79
Could we enhance the DEV_USER_VERSION check logic for supporting older release device handler?
Here's the diff of scst_user.h/c file: bash-3.2$ diff scst-3.6/scst/include/scst_user.h scst-3.7/scst/include/scst_user.h 357c357 < struct scst_user_get_cmd cmds[0]; / out /