Skip to contentSkip to conversation

Bug in error code for lvm_vg_open()

linux-lvm ben 2 participants 2 messages Nov 22, 2010 – Nov 23, 2010

lore
Share & tools
lore

ben

author
#0 lore raw

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.

#1 lore raw
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() 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.

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.