Revision 1:
  Use the format_dev_t function for target status functions.

Revision 2:
  When multiple load ioctls are issued the reference count on older
  'new_tables' wasn't being dropped.  [Christophe Saout]

Revision 3:
  Move retrieve_status up so dev_wait() can use it.

Revision 4:
  dev_wait was meant to return table status not dev status.  [Alasdair Kergon]

Revision 5:
  Fix error message when linear targets gets handed more than 2 arguments.
  [Alasdair Kergon]

Revision 6:
  Support an arbitrary number of target parameters.  [Alasdair Kergon]

