From 182bad8bfd099da5e742da28c4820936eb1f3867 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Mon, 25 Nov 2013 15:16:23 +0530 Subject: cli, glusterd: More quota fixes ... ... which may be grouped under the following categories: 1. Fix incorrect cli exit status for 'quota list' cmd 2. Print appropriate error message on quota parse errors in cli Authored by: Anuradha Talur 3. glusterd: Improve quota validation during stage-op 4. Fix peer probe issues resulting from quota conf checksum mismatches 5. Enhancements to CLI output in the event of quota command failures Authored by: Kaushal Madappa 7. Move aux mount location from /tmp to /var/run/gluster Authored by: Krishnan Parthasarathi 8. Fix performance issues in quota limit-usage Authored by: Krutika Dhananjay Note: Some functions that were used in earlier version of quota, that aren't called anymore have been removed. Change-Id: I9d874f839ae5fdcfbe6d4f2d727eac091f27ac57 BUG: 969461 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/6366 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- cli/src/cli.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/src/cli.h') diff --git a/cli/src/cli.h b/cli/src/cli.h index b71140a810b..1fe8ffff7fb 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -47,6 +47,10 @@ enum argp_option_keys { #define GLUSTER_MODE_XML (1 << 2) +#define GLUSTERD_GET_QUOTA_AUX_MOUNT_PATH(abspath, volname, path) \ + snprintf (abspath, sizeof (abspath)-1, \ + DEFAULT_VAR_RUN_DIRECTORY"/%s%s", volname, path); + #define GLUSTERFS_GET_AUX_MOUNT_PIDFILE(pidfile,volname) { \ snprintf (pidfile, PATH_MAX-1, \ DEFAULT_VAR_RUN_DIRECTORY"/%s.pid", volname); \ -- cgit