From 20e5b84f086a5e45e2692a239e2f74a37d580774 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Fri, 2 Nov 2012 14:52:07 -0400 Subject: [PATCH] LU-1279 utils: Silence modprobe ptlrpc output in mount.lustre Patch d8d9b78a5c08eb1d938ab9e3bdaf7f756bfbb5ec introduced this modprobe, but order of redirects was reversed which results in printing spurios messages like "FATAL: Module ptlrpc not found." when mountig lustre from local build dir. Change-Id: I688d073ad3b0565f73c29a50c2b81383adfd7a48 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/4449 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/utils/mount_lustre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 374815e..8d93092 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -518,7 +518,7 @@ int main(int argc, char *const argv[]) * LU-1279. When LNET modules have not loaded, and mounting multiple * targets at the same time could fail. */ - rc = system("/sbin/modprobe ptlrpc 2>&1 > /dev/null"); + rc = system("/sbin/modprobe ptlrpc >/dev/null 2>&1"); set_defaults(&mop); -- 1.8.3.1