From aa861a01de2f89aec61dddeba13b929222143a52 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Fri, 27 Jan 2017 13:56:01 +0530 Subject: 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 --- glfs-operations.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'glfs-operations.c') 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; -- cgit