[Bugs] [Bug 1221025] Glusterd crashes after enabling quota limit on a distrep volume.
bugzilla at redhat.com
bugzilla at redhat.com
Wed May 13 09:54:27 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1221025
Anand Nekkunti <anekkunt at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anekkunt at redhat.com
--- Comment #4 from Anand Nekkunti <anekkunt at redhat.com> ---
int
glusterd_store_quota_config (glusterd_volinfo_t *volinfo, char *path,
char *gfid_str, int opcode, char **op_errstr)
{
int ret = -1;
int fd = -1;
int conf_fd = -1;
size_t entry_sz = 139264;
ssize_t bytes_read = 0;
size_t bytes_to_write = 0;
unsigned char buf[131072] = {0,};
uuid_t gfid = {0,};
xlator_t *this = NULL;
gf_boolean_t found = _gf_false;
gf_boolean_t modified = _gf_false;
gf_boolean_t is_file_empty = _gf_false;
gf_boolean_t is_first_read = _gf_true;
glusterd_conf_t *conf = NULL;
float version = 0.0f;
char type = 0;
..............
..........
bytes_read = read (conf_fd, (void*)&buf, entry_sz);
the crash was happening in read call because of buf size < entry_sz
--
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