diff options
author | Junaid <junaid@gluster.com> | 2011-08-04 10:57:03 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-08-03 23:32:50 -0700 |
commit | dbee83598ad9a09484783d72aabab1ce9c4630f1 (patch) | |
tree | 3a3c426442d71c32e7c39ce1ebe117bbe7299201 | |
parent | 9261c453de2e95daaae3238479fc60179eeeb3d2 (diff) |
features/marker-quota: Remove unused variable volname.
Change-Id: Id0ad3b9c00ab86baec7311998194b777948a5869
Reviewed-on: http://review.gluster.com/153
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
-rw-r--r-- | xlators/features/marker/src/marker-quota.c | 2 | ||||
-rw-r--r-- | xlators/features/marker/src/marker-quota.h | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index d7ae239ebda..9adf52b063a 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 34e8dfd81bd..a5dbf6bdf30 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); |