diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-12-06 17:39:41 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-12-06 17:44:24 +0200 |
commit | 3d7d32d46a9b663bbbb13e79105edde8b86ecb12 (patch) | |
tree | 70cbe5f7b1e3ffef787b6b927e75d550e1e34f6d /etc | |
parent | f60e86f34565f203a778be82e2ed34bba4a10776 (diff) | |
download | eclat-3d7d32d46a9b663bbbb13e79105edde8b86ecb12.tar.gz eclat-3d7d32d46a9b663bbbb13e79105edde8b86ecb12.tar.bz2 |
Implement create-volume and delete-volume commands.
* doc/eclat-create-volume.1: New file.
* doc/eclat-delete-volume.1: New file.
* doc/Makefile.am: Add new files.
* doc/eclat.1: Mention new commands.
* etc/create-volume.fln: New file.
* etc/delete-volume.fln: New file.
* etc/Makefile.am: Add new files.
* src/crevol-cl.opt: New file.
* src/crevol.c: New file.
* src/delvol.c: New file.
* src/Makefile.am: Add new files.
* src/eclat.c: Register new commands.
* src/eclat.h (eclat_create_volume)
(eclat_delete_volume): New protos.
* TODO: Update.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/Makefile.am | 2 | ||||
-rw-r--r-- | etc/create-volume.fln | 20 | ||||
-rw-r--r-- | etc/delete-volume.fln | 22 |
3 files changed, 44 insertions, 0 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am index ebbfd7e..236b43d 100644 --- a/etc/Makefile.am +++ b/etc/Makefile.am @@ -21,8 +21,10 @@ FLNFILES=\ associate-address.fln\ create-snapshot.fln\ create-tags.fln\ + create-volume.fln\ delete-snapshot.fln\ delete-tags.fln\ + delete-volume.fln\ describe-addresses.fln\ describe-availability-zones.fln\ describe-instance-attribute.fln\ diff --git a/etc/create-volume.fln b/etc/create-volume.fln new file mode 100644 index 0000000..d8c9da1 --- /dev/null +++ b/etc/create-volume.fln @@ -0,0 +1,20 @@ +/* This file is part of Eclat. + Copyright (C) 2012 Sergey Poznyakoff. + + Eclat is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + Eclat is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ + +if (.CreateVolumeResponse) { + print(.CreateVolumeResponse.volumeId,"\t", + .CreateVolumeResponse.status,"\n"); +} diff --git a/etc/delete-volume.fln b/etc/delete-volume.fln new file mode 100644 index 0000000..18e9870 --- /dev/null +++ b/etc/delete-volume.fln @@ -0,0 +1,22 @@ +/* This file is part of Eclat. + Copyright (C) 2012 Sergey Poznyakoff. + + Eclat is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + Eclat is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Eclat. If not, see <http://www.gnu.org/licenses/>. */ + +if (.DeleteVolumeResponse.return) { + if (!.DeleteVolumeResponse.return[true]) { + error("Return: ",.DeleteVolumeResponse.return,"\n"); + exit(1); + } +} |