#compdef lspv

_arguments -C -s \
  '(-p -M)-l[list logical volumes on physical volume]' \
  '(-l -M)-p[list partitions on physical volume]' \
  '(-l -p)-M[list mapping of physical and logical partition numbers]' \
  '-n[specify physical volume to access variable descriptor from]:physical volume:_physical_volumes' \
  '-v[specify volume group id to access info based on]:volume group id' \
  '1:physical volume:_physical_volumes'
