aboutsummaryrefslogtreecommitdiff
path: root/src/eclat.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-01-22 23:57:57 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-01-23 00:31:11 +0200
commit01151a67eb86c9068612b7f893e586f04f634aee (patch)
treef055071e3fe17393412aaf699fcf8ea07172dc4e /src/eclat.c
parent78911bb500c8fc104de45564543b56f317a42938 (diff)
downloadeclat-01151a67eb86c9068612b7f893e586f04f634aee.tar.gz
eclat-01151a67eb86c9068612b7f893e586f04f634aee.tar.bz2
Implement snapshot attribute commands.
* TODO: Update. * etc/describe-snapshot-attribute.fln: New file. * etc/modify-snapshot-attribute.fln: New file. * etc/reset-snapshot-attribute.fln: New file. * etc/Makefile.am: Add new files. * src/dscrsnapattr.c: New file. * src/Makefile.am: Add new files. * src/dscrinstattr.c (list_attrs): Remove. (eclat_describe_instance_attribute): Assign available_attrs. * src/eclat.c (cmdtab): New commands: describe-snapshot-attribute, modify-snapshot-attribute, and reset-snapshot-attribute. * src/eclat.h (eclat_describe_snapshot_attribute) (eclat_modify_snapshot_attribute) (eclat_reset_snapshot_attribute): New protos. (available_attrs): New extern. (list_attrs): New function. * src/modinstattr.c (list_attrs): Rename to list_mod_attrs. * src/util.c (available_attrs): New global. (list_attrs): New function.
Diffstat (limited to 'src/eclat.c')
-rw-r--r--src/eclat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eclat.c b/src/eclat.c
index 03f8fbb..49691e7 100644
--- a/src/eclat.c
+++ b/src/eclat.c
@@ -250,6 +250,12 @@ struct command cmdtab[] = {
eclat_create_snapshot },
{ "describe-snapshots", "DescribeSnapshots",
eclat_describe_snapshots },
+ { "describe-snapshot-attribute", "DescribeSnapshotAttribute",
+ eclat_describe_snapshot_attribute },
+ { "modify-snapshot-attribute", "ModifySnapshotAttribute",
+ eclat_modify_snapshot_attribute, CMD_MOD },
+ { "reset-snapshot-attribute", "ResetSnapshotAttribute",
+ eclat_reset_snapshot_attribute, CMD_MOD|CMD_DESTR },
{ "delete-snapshot", "DeleteSnapshot",
eclat_delete_snapshot, CMD_MOD|CMD_DESTR },
{ "describe-avaialbility-zones", "DescribeAvaialbilityZones",

Return to:

Send suggestions and report system problems to the System administrator.