plugin_test.py: Add test for IS_MASKED

    Ensure we get an IS_MASKED error if we try to delete a volume
    that is masked against an access group.

    Tested against sim & simc

Signed-off-by: Tony Asleson <tasleson@redhat.com>
Utils: New script to compare constants in Python and C library

Sorry for hurting your eyes again with perl voodoo regex.

Generally this script compare constants in Python and C library using known
name conversion(please check py_name_2_c_name()):
    1. Convert CaMel to CA_MEL
    2. Convert System to SYSTEM
    3. Convert Capabilities to CAP and etc using %PY_CLASS_NAME_CONV;

The report will be like:
=====
PASS      lsm.Volume.REPLICATE_SNAPSHOT                     1(1)
          LSM_VOLUME_REPLICATE_SNAPSHOT                     1(1)
PY_MISS   ACCESS_GROUP_MASKED                               502(502)
C_MISS    lsm.Disk.STATUS_REMOVED                           1 << 5(32)
FAIL      lsm.Fake.FAKE_NAME                                1 << 5(32)
          LSM_FAKE_FAKE_NAME                                0x000010(16)
=====

It found many missing, no failure in current code tree.
We will discuss and patch them later.

Signed-off-by: Gris Ge <fge@redhat.com>
Rename Disk.DISK_TYPE_XXX to Disk.DISK

 * Just to match C library name:
    LSM_DISK_TYPE_XXX

Signed-off-by: Gris Ge <fge@redhat.com>
C Library: Rename LSM_CAPABILITY_XXX to LSM_CAP_XXX

 * Rename LSM_CAPABILITY_SUPPORTED to LSM_CAP_SUPPORTED
 * Rename LSM_CAPABILITY_UNSUPPORTED to LSM_CAP_UNSUPPORTED
 * Just matching with other LSM_CAP_XXX constants naming scheme.

Signed-off-by: Gris Ge <fge@redhat.com>
Python Library: Trivial change: Allow script to easily check constants

 * No API changes.
 * Just make the life of constant checker script easier.

Signed-off-by: Gris Ge <fge@redhat.com>
PY & C: Fix up constants

Using Gris's check_const.pl script I re-worked the code base
so that the constants match as expected.  I also removed a couple
of fields from the C error structure that we weren't really
leveraging: error level and error domain.  Some other constants
were removed as well.  The check_const.pl script has been
incorporated into the `make check` process and will fail the
build if the script detects any inconsistencies.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
C & PY: Introduce unsupported_actions to pool

Some arrays don't support all features for all pools.  Add propery
so that we can convey this information.

Signed-off-by: Tony Asleson <tasleson@redhat.com>