glusterfs icon indicating copy to clipboard operation
glusterfs copied to clipboard

posix-*.c: remove some string copies in posix_handle_pump() and relat…

Open mykaul opened this issue 2 years ago • 6 comments

…ed functions

  • Remove multipls strncpy() from posix_handle_pump(), as well as an strotoul() call.
  • Remove redundant 'ret' variable
  • posix_handle_path() always gets PATH_MAX path variables, no need to pass size to it.
  • Make functions static, etc.

Fixes: #2987 Signed-off-by: Yaniv Kaul [email protected]

mykaul avatar Nov 28 '21 20:11 mykaul

/run regression

mykaul avatar Nov 28 '21 20:11 mykaul

1 test(s) failed ./tests/basic/afr/self-heald.t

1 test(s) generated core ./tests/basic/afr/self-heald.t

4 test(s) needed retry ./tests/000-flaky/bugs_glusterd_bug-857330/normal.t ./tests/000-flaky/bugs_glusterd_bug-857330/xml.t ./tests/000-flaky/glusterd-restart-shd-mux.t ./tests/basic/afr/self-heald.t

3 flaky test(s) marked as success even though they failed ./tests/000-flaky/bugs_glusterd_bug-857330/normal.t ./tests/000-flaky/bugs_glusterd_bug-857330/xml.t ./tests/000-flaky/glusterd-restart-shd-mux.t https://build.gluster.org/job/gh_centos7-regression/1871/

gluster-ant avatar Nov 28 '21 21:11 gluster-ant

/run regression

mykaul avatar Dec 01 '21 19:12 mykaul

1 test(s) failed ./tests/basic/afr/self-heald.t

1 test(s) generated core ./tests/basic/afr/self-heald.t

4 test(s) needed retry ./tests/000-flaky/bugs_glusterd_bug-857330/normal.t ./tests/000-flaky/bugs_glusterd_bug-857330/xml.t ./tests/000-flaky/glusterd-restart-shd-mux.t ./tests/basic/afr/self-heald.t

3 flaky test(s) marked as success even though they failed ./tests/000-flaky/bugs_glusterd_bug-857330/normal.t ./tests/000-flaky/bugs_glusterd_bug-857330/xml.t ./tests/000-flaky/glusterd-restart-shd-mux.t https://build.gluster.org/job/gh_centos7-regression/1884/

gluster-ant avatar Dec 01 '21 20:12 gluster-ant

Thank you for your contributions. Noticed that this issue is not having any activity in last ~6 months! We are marking this issue as stale because it has not had recent activity. It will be closed in 2 weeks if no one responds with a comment here.

stale[bot] avatar Jul 10 '22 03:07 stale[bot]

Hoping to complete it someday...

mykaul avatar Jul 10 '22 06:07 mykaul

Thank you for your contributions. Noticed that this issue is not having any activity in last ~6 months! We are marking this issue as stale because it has not had recent activity. It will be closed in 2 weeks if no one responds with a comment here.

stale[bot] avatar May 20 '23 15:05 stale[bot]

Closing this issue as there was no update since my last update on issue. If this is an issue which is still valid, feel free to open it.

stale[bot] avatar Jun 10 '23 03:06 stale[bot]