Whamcloud - gitweb
LU-10508 utils: use callvpe() in lustre_rsync 69/30869/4
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 15 Jan 2018 16:20:00 +0000 (10:20 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 9 Feb 2018 05:58:20 +0000 (05:58 +0000)
commitdefbc7ddd9c3b1ffc28f123316217e30e210127b
tree8998ae65c46563fcc91bac9f29c458c3f19f1d89
parent7b980e101e172d7d8b43a0db2dcaabc8c8c6c855
LU-10508 utils: use callvpe() in lustre_rsync

Add callvpe() to lustre/utils as a replacement for system() in cases
where the command string includes arbitrary pathnames. In
lustre_rsync, replace calls to system() with calls to callvpe().

Test-Parameters: trivial testlist=lustre-rsync-test
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Id5ae7e25e14346a1293497c2caa221513d0ee9f3
Reviewed-on: https://review.whamcloud.com/30869
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/Makefile.am
lustre/utils/callvpe.c [new file with mode: 0644]
lustre/utils/callvpe.h [new file with mode: 0644]
lustre/utils/lustre_rsync.c