From dbee83598ad9a09484783d72aabab1ce9c4630f1 Mon Sep 17 00:00:00 2001 From: Junaid Date: Thu, 4 Aug 2011 10:57:03 +0530 Subject: features/marker-quota: Remove unused variable volname. Change-Id: Id0ad3b9c00ab86baec7311998194b777948a5869 Reviewed-on: http://review.gluster.com/153 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/features/marker/src/marker-quota.c | 2 -- xlators/features/marker/src/marker-quota.h | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index d7ae239eb..9adf52b06 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -2180,8 +2180,6 @@ out: int32_t init_quota_priv (xlator_t *this) { - strcpy (volname, "quota"); - return 0; } diff --git a/xlators/features/marker/src/marker-quota.h b/xlators/features/marker/src/marker-quota.h index 34e8dfd81..a5dbf6bdf 100644 --- a/xlators/features/marker/src/marker-quota.h +++ b/xlators/features/marker/src/marker-quota.h @@ -32,12 +32,9 @@ #define QUOTA_DIRTY_KEY "trusted.glusterfs.quota.dirty" #define CONTRIBUTION "contri" -#define VOL_NAME volname #define CONTRI_KEY_MAX 512 #define READDIR_BUF 4096 -char volname [40]; - #define QUOTA_STACK_DESTROY(_frame, _this) \ do { \ quota_local_t *_local = NULL; \ @@ -79,7 +76,7 @@ char volname [40]; char _gfid_unparsed[40]; \ uuid_unparse (_gfid, _gfid_unparsed); \ _ret = snprintf (var, CONTRI_KEY_MAX, QUOTA_XATTR_PREFIX \ - ".%s.%s." CONTRIBUTION, VOL_NAME, \ + ".%s.%s." CONTRIBUTION, "quota", \ _gfid_unparsed); \ } while (0); -- cgit