diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2017-07-13 08:10:27 -0400 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-07-14 02:42:23 +0000 |
commit | e648a291b02298d2f1063cedaad9a58614ebe0ad (patch) | |
tree | 48e9b1b66e47cb1855b4912bd940449f3fe6400b /glusterfs.spec.in | |
parent | d2650feb4bfadf3fb0cdb90236bc78c33b5ea451 (diff) |
core: miscellaneous cleanup
clean up things that I tripped over doing other changes.
1) fix mishmash of random spacing in struct decls in glusterfs.h.
Not technically a problem, just ugly to look at.
2) replace open-coded strings constants with existing #define
constants. A disaster waiting to happen.
3) Use sys_access() instead of sys_stat() or sys_lstat() to test
simple existence of file. Why copy dozens of bytes from kernel to
user space that aren't going to be used by anything? There are
probably more instances like these.
Change-Id: I28089bef4cc93d5e4e4213045fb1a2649d110f82
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: https://review.gluster.org/17769
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Prashanth Pai <ppai@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Diffstat (limited to 'glusterfs.spec.in')
0 files changed, 0 insertions, 0 deletions