diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-01-27 13:56:01 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-01-30 19:31:50 +0530 |
commit | aa861a01de2f89aec61dddeba13b929222143a52 (patch) | |
tree | 01019844bc4fd093eacc07e720ad392e364eb8ae /glfs-operations.c | |
parent | cd0957ca623eb048ed3c77e1b37b7316c1b238f5 (diff) |
gluster-block: clean block_exec procedure
This was a hack to implement list and info commands,
now that both list and info reads the metadata from the volume,
we don't need block_exec anymore.
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'glfs-operations.c')
-rw-r--r-- | glfs-operations.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glfs-operations.c b/glfs-operations.c index 5b99045..d567605 100644 --- a/glfs-operations.c +++ b/glfs-operations.c @@ -91,18 +91,18 @@ glusterBlockCreateEntry(blockCreateCli *blk, char *gbid) int -glusterBlockDeleteEntry(blockCreate *blk) +glusterBlockDeleteEntry(char *volume, char *gbid) { struct glfs *glfs; int ret = -1; - glfs = glusterBlockVolumeInit(blk->volume, blk->volfileserver); + glfs = glusterBlockVolumeInit(volume, "localhost"); if (!glfs) { ERROR("%s", "glusterBlockVolumeInit: failed"); goto out; } - ret = glfs_unlink(glfs, blk->gbid); + ret = glfs_unlink(glfs, gbid); if (ret) { ERROR("%s", "glfs_unlink: failed"); goto out; |