Whamcloud - gitweb
LU-1279 utils: Silence modprobe ptlrpc output in mount.lustre
authorOleg Drokin <green@whamcloud.com>
Fri, 2 Nov 2012 18:52:07 +0000 (14:52 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 3 Nov 2012 07:01:04 +0000 (03:01 -0400)
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 <green@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/4449
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/utils/mount_lustre.c

index 374815e..8d93092 100644 (file)
@@ -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);