[Bugs] [Bug 1663247] New: remove static memory allocations from code
bugzilla at redhat.com
bugzilla at redhat.com
Thu Jan 3 14:41:37 UTC 2019
https://bugzilla.redhat.com/show_bug.cgi?id=1663247
Bug ID: 1663247
Summary: remove static memory allocations from code
Product: GlusterFS
Version: mainline
Status: NEW
Component: glusterd
Assignee: bugs at gluster.org
Reporter: srakonde at redhat.com
CC: bugs at gluster.org
Target Milestone: ---
Classification: Community
Description of problem:
In the entire code base, many structures are allocating the memory statically.
Instead we can allocate memory dynamically.
One such structure is:
struct glusterd_brickinfo {
char hostname[NAME_MAX];
char path[VALID_GLUSTERD_PATHMAX];
char real_path[VALID_GLUSTERD_PATHMAX];
char device_path[VALID_GLUSTERD_PATHMAX];
char mount_dir[VALID_GLUSTERD_PATHMAX];
char brick_id[1024]; /*Client xlator name, AFR changelog name*/
char fstype[NAME_MAX]; /* Brick file-system type */
char mnt_opts[1024]; /* Brick mount options */
..
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list