Bug in error code for lvm_vg_open()
If a volume group is clustered and the cluster is not running, lvm_vg_open() fails and prints a message about skipping the group. However, lvm_errno() and lvm_errmsg() are not updated. It would be really useful (to me) if the error number was set to something specific to the clustering issue rather than a generic error.
Also, where are the errors defined or are only the standard system ones being used?
Thank you and keep up the good work.
Quoted 6 lines · ben
If a volume group is clustered and the cluster is not running,
lvm_vg_open()fails and prints a message about skipping the group. However,lvm_errno()andlvm_errmsg()are not updated. It would be really useful (to me) if the error number was set to something specific to the clustering issue rather than a generic error.
Thanks for reporting. I see the code in question and will work on updating the error codes and messages.
Quoted 3 lines
Also, where are the errors defined or are only the standard system ones being used?
We are using errno codes and trying not to define LVM-specific codes. The idea was to divide up lvm operations into small enough pieces and re-use errno codes.
Quoted 3 lines
Thank you and keep up the good work.
thank you for the feedback.