From: Oleg Drokin Date: Fri, 2 Nov 2012 18:52:07 +0000 (-0400) Subject: LU-1279 utils: Silence modprobe ptlrpc output in mount.lustre X-Git-Tag: 2.3.55~41 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=20e5b84f086a5e45e2692a239e2f74a37d580774 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 --- 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);