Whamcloud - gitweb
LU-7576 llapi: use dirname() in opendir_parent() 96/17796/4
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 4 Jan 2016 18:24:00 +0000 (12:24 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 2 Feb 2016 04:31:11 +0000 (04:31 +0000)
commite110f9ed6ea52f9be999c9cdf0ec9c8c67b6f0ea
treec8cf473d78a25c998a2313e5919f0591089c4fed
parent792742b78f0afe16c7a23d765601b5a4a0231a9e
LU-7576 llapi: use dirname() in opendir_parent()

In opendir_parent() pass the path through dirname() so that the
resulting directory may be used with basename().

Add test_230i() to sanity.sh to ensure that lfs migrate -m tolerates
trailing slashes.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I330717da540618052bc5efbb5df9cbe6c4194050
Reviewed-on: http://review.whamcloud.com/17796
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c