From c2d2bf1a48532ef585b4aab6bc164b929becf941 Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Mon, 28 Jan 2013 14:40:35 +0100 Subject: [PATCH] LU-2696 utils: fix error message in rmtacl_notify() Print mnt->mnt_dir instead of fd in error message, and print the ioctl type that failed. Signed-off-by: Sebastien Buisson Change-Id: Ia10c992e4f6ed1dbab86ccfea9d85ea2e0f81cf5 Reviewed-on: http://review.whamcloud.com/5187 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Keith Mannthey Reviewed-by: Bob Glossman Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- lustre/utils/liblustreapi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index 9355b10..4a94d1b 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -3464,7 +3464,9 @@ static int rmtacl_notify(int ops) close(fd); if (rc < 0) { rc = -errno; - llapi_error(LLAPI_MSG_ERROR, rc, "ioctl %d\n", fd); + llapi_error(LLAPI_MSG_ERROR, rc, + "ioctl RMTACL on '%s' err %d\n", + mnt->mnt_dir, rc); goto out; } -- 1.8.3.1