From: Sage Weil Date: Thu, 3 Sep 2015 01:58:37 +0000 (-0400) Subject: qa/workunits/rados/test_alloc_hint.sh: sudo to list files X-Git-Tag: v9.1.0~203^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5785%2Fhead;p=ceph.git qa/workunits/rados/test_alloc_hint.sh: sudo to list files The osd data dir is owned by ceph and not readable by other non-root users. Fixes: #12861 Signed-off-by: Sage Weil --- diff --git a/qa/workunits/rados/test_alloc_hint.sh b/qa/workunits/rados/test_alloc_hint.sh index 86d3986659e..c43fc3c00bd 100755 --- a/qa/workunits/rados/test_alloc_hint.sh +++ b/qa/workunits/rados/test_alloc_hint.sh @@ -61,7 +61,7 @@ function expect_alloc_hint_eq() { # e.g., .../25.6_head/foo__head_7FC1F406__19 # .../26.bs1_head/bar__head_EFE6384B__1a_ffffffffffffffff_1 - local fns=(${OSD_DATA[i]}/current/${PGID}*_head/${OBJ}_*) + local fns=$(sudo find ${OSD_DATA[i]}/current/${PGID}*_head -type f | grep head/${OBJ}_) local count="${#fns[@]}" if [ "${count}" -ne 1 ]; then echo "bad fns count: ${count}" >&2