diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2013-09-04 16:04:58 +0530 |
---|---|---|
committer | Krutika Dhananjay <kdhananj@redhat.com> | 2013-09-06 14:57:08 +0530 |
commit | b045090e57ab53ffad3d51c298ad61262d91f7b9 (patch) | |
tree | 3cc534a2df9f2a3d13f0c03e44e2cc6c05f3b221 /xlators/mgmt | |
parent | 5aeeda7d7727769f60965305c1974a2c84bc6177 (diff) |
volgen: use volname instead of volume-id
As part of volume-quota-list command implementation, the gluster cli
process makes an RPC to quotad, querying for quota related information
of a gfid in a volume. Prior to this patch, we used the volume-id for
quotad to uniquely identify a volume.
Since cli doesn't have a way (today) to fetch the volume-id for a given
volname, we had to use a (nearly) unique key to identify a volume"
Original-author: Krishnan Parthasarathi <kparthas@redhat.com>
Change-Id: I49b66f46fc7bb8dc4075cc855a1d854166d0e89c
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 72e87c10..4cc9a63b 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -1611,7 +1611,7 @@ server_graph_builder (volgen_graph_t *graph, glusterd_volinfo_t *volinfo, xl = volgen_graph_add (graph, "features/quota", volname); if (!xl) return -1; - ret = xlator_set_option (xl, "volume-uuid", volume_id); + ret = xlator_set_option (xl, "volume-uuid", volname); if (ret) return -1; @@ -3186,7 +3186,7 @@ build_quotad_graph (volgen_graph_t *graph, dict_t *mod_dict) gf_log("", GF_LOG_ERROR, "Out of memory"); goto out; } - ret = xlator_set_option(quotad_xl, skey, uuid_utoa(voliter->volume_id)); + ret = xlator_set_option(quotad_xl, skey, voliter->volname); GF_FREE(skey); if (ret) goto out; |