Go to file
Yaniv Kaul 5276e8f27e multiple files: calloc -> malloc
xlators/cluster/stripe/src/stripe-helpers.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible

xlators/cluster/dht/src/tier.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
xlators/cluster/dht/src/dht-layout.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
xlators/cluster/dht/src/dht-helper.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
xlators/cluster/dht/src/dht-common.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
xlators/cluster/afr/src/afr.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
xlators/cluster/afr/src/afr-inode-read.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
tests/bugs/replicate/bug-1250170-fsync.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
tests/basic/gfapi/gfapi-async-calls-test.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
tests/basic/ec/ec-fast-fgetxattr.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
rpc/xdr/src/glusterfs3.h: Move to GF_MALLOC() instead of GF_CALLOC() when possible
rpc/rpc-transport/socket/src/socket.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
rpc/rpc-lib/src/rpc-clnt.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
extras/geo-rep/gsync-sync-gfid.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
cli/src/cli-xml-output.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
cli/src/cli-rpc-ops.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
cli/src/cli-cmd-volume.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
cli/src/cli-cmd-system.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
cli/src/cli-cmd-snapshot.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
cli/src/cli-cmd-peer.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible
cli/src/cli-cmd-global.c: Move to GF_MALLOC() instead of GF_CALLOC() when possible

It doesn't make sense to calloc (allocate and clear) memory
when the code right away fills that memory with data.
It may be optimized by the compiler, or have a microscopic
performance improvement.

In some cases, also changed allocation size to be sizeof some
struct or type instead of a pointer - easier to read.
In some cases, removed redundant strlen() calls by saving the result
into a variable.

1. Only done for the straightforward cases. There's room for improvement.
2. Please review carefully, especially for string allocation, with the
terminating NULL string.

Only compile-tested!

updates: bz#1193929
Original-Author: Yaniv Kaul <ykaul@redhat.com>
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Signed-off-by: Amar Tumballi <amarts@redhat.com>

Change-Id: I16274dca4078a1d06ae09a0daf027d734b631ac2
2018-09-04 05:09:09 +00:00
.github doc: describe how to contribute when a GitHub Pull-Request is made 2018-01-30 15:05:55 +00:00
api core: python3 2018-09-03 09:14:44 +00:00
build-aux checkpatch.pl: fix the perl warning 2018-07-06 08:12:56 +00:00
cli multiple files: calloc -> malloc 2018-09-04 05:09:09 +00:00
contrib multiple files: remove unndeeded memset() 2018-08-29 17:31:11 +00:00
doc doc: Add details around xlator categories 2018-08-17 07:50:12 +00:00
events core: python3 2018-09-03 09:14:44 +00:00
extras multiple files: calloc -> malloc 2018-09-04 05:09:09 +00:00
geo-replication core: python3 2018-09-03 09:14:44 +00:00
glusterfsd clang-scan: fix multiple issues 2018-08-31 01:26:06 +00:00
heal build: use standard PKG_CHECK_MODULES for libxml2 availability 2018-08-16 06:55:21 +00:00
libglusterfs core: python3 2018-09-03 09:14:44 +00:00
rpc multiple files: calloc -> malloc 2018-09-04 05:09:09 +00:00
tests multiple files: calloc -> malloc 2018-09-04 05:09:09 +00:00
tools core: python3 2018-09-03 09:14:44 +00:00
xlators multiple files: calloc -> malloc 2018-09-04 05:09:09 +00:00
.gitignore build: remove bundled arg-standalone 2018-07-28 12:54:33 +00:00
.mailmap mailmap: add mailmap entry for potatogim 2017-11-16 15:43:24 +00:00
.testignore contrib: Remove contrib/ipaddr-py entirely. 2018-07-09 03:39:04 +00:00
AUTHORS cleaned up some outdated files 2010-03-12 04:09:34 -08:00
autogen.sh build: remove bundled arg-standalone 2018-07-28 12:54:33 +00:00
ChangeLog Fixed build problems for init script installation. 2009-03-09 17:45:56 +05:30
COMMITMENT add COMMITMENT file as part of GPL cure 2018-05-25 08:40:13 +00:00
configure.ac core: python3 2018-09-03 09:14:44 +00:00
CONTRIBUTING rfc.sh: set 'Change-Id: ' header on first run 2012-08-15 10:39:43 -07:00
COPYING-GPLV2 license: dual license under GPLV2 and LGPLV3+ 2012-05-10 22:06:16 -07:00
COPYING-LGPLV3 license: dual license under GPLV2 and LGPLV3+ 2012-05-10 22:06:16 -07:00
glusterfs-api.pc.in *.pc: Fix include path in Cflags 2017-11-08 11:10:44 +00:00
glusterfs.spec.in core: python3 2018-09-03 09:14:44 +00:00
INSTALL Use the new URL for the docs 2017-09-07 11:42:08 +00:00
libgfchangelog.pc.in *.pc: Fix include path in Cflags 2017-11-08 11:10:44 +00:00
libgfdb.pc.in *.pc: Fix include path in Cflags 2017-11-08 11:10:44 +00:00
MAINTAINERS MAINTAINERS: Add Xavier Hernandez as peer for shard xlator 2018-08-07 11:41:08 +00:00
Makefile.am core: python3 2018-09-03 09:14:44 +00:00
NEWS news: note the move to gerrit 2011-07-18 17:24:14 +05:30
README.md Use the new URL for the docs 2017-09-07 11:42:08 +00:00
rfc.sh rfc.sh: provide a unified way to update bugs or github issues ID 2018-03-22 15:01:38 +00:00
run-tests-in-vagrant.sh tests/vagrant: install additional dependencies 2018-06-19 11:50:28 +00:00
run-tests.sh tests: Preserve tarball of tests when they timeout 2018-08-27 02:42:19 +00:00
site.h.in core: add some examples of site.h usage 2018-01-30 03:51:57 +00:00
submit-for-review.sh rfc.sh: provide a unified way to update bugs or github issues ID 2018-03-22 15:01:38 +00:00
THANKS Typo fix THANKS message 2014-09-16 02:30:36 -07:00

Gluster

Gluster is a software defined distributed storage that can scale to several petabytes. It provides interfaces for object, block and file storage.

Development

Contributions to gluster in the form of patches and new feature additions can be made by following steps outlined at Developers Guide.

Documentation

The Gluster documentation can be found at Gluster Docs.

Deployment

Quick instructions to build and install can be found in INSTALL file.

Maintainers

The list of Gluster maintainers is available in MAINTAINERS file.

License

Gluster is dual licensed under GPLV2 and LGPLV3+.

Please visit the Gluster Home Page to find out more about Gluster.