X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Futils%2Fmount_lustre.c;h=374815e7402d4d77020ce7d9afce41481dd74383;hb=d8d9b78a5c08eb1d938ab9e3bdaf7f756bfbb5ec;hp=042fac10c32980968067c20fb0eb221f70921746;hpb=bc6011c431ffcfab0bc3066dd002deed1935b05b;p=fs%2Flustre-release.git diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 042fac1..374815e 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -42,6 +42,7 @@ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif +#include "mount_utils.h" #include #include #include @@ -52,7 +53,6 @@ #include #include #include -#include "mount_utils.h" #define MAXOPT 4096 #define MAX_RETRIES 99 @@ -364,8 +364,6 @@ static int parse_ldd(char *source, struct mount_opts *mop, char *options) append_option(options, "virgin"); if (ldd->ldd_flags & LDD_F_WRITECONF) append_option(options, "writeconf"); - if (ldd->ldd_flags & LDD_F_IAM_DIR) - append_option(options, "iam"); if (ldd->ldd_flags & LDD_F_NO_PRIMNODE) append_option(options, "noprimnode"); @@ -516,6 +514,12 @@ int main(int argc, char *const argv[]) progname = strrchr(argv[0], '/'); progname = progname ? progname + 1 : argv[0]; + /* + * 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"); + set_defaults(&mop); rc = osd_init();