bad:
derr(0, "got corrupt osd_op_reply got %d expected %d\n",
- msg->front.iov_len, sizeof(*rhead));
+ (int)msg->front.iov_len, (int)sizeof(*rhead));
}
Opt_port,
Opt_wsize,
Opt_osdtimeout,
+ Opt_mount_attempts,
/* int args above */
Opt_ip,
Opt_unsafewrites,
{Opt_port, "port=%d"},
{Opt_wsize, "wsize=%d"},
{Opt_osdtimeout, "osdtimeout=%d"},
+ {Opt_mount_attempts, "mount_attempts=%d"},
/* int args above */
{Opt_ip, "ip=%s"},
{Opt_debug_console, "debug_console"},
args->sb_flags = flags;
args->flags = CEPH_MOUNT_DEFAULT;
args->osd_timeout = 5; /* seconds */
+ args->mount_attempts = 2; /* 2 attempts */
/* ip1[,ip2...]:/server/path */
c = strchr(dev_name, ':');
case Opt_osdtimeout:
args->osd_timeout = intval;
break;
+ case Opt_mount_attempts:
+ args->mount_attempts = intval;
+ break;
case Opt_unsafewrites:
args->flags |= CEPH_MOUNT_UNSAFE_WRITES;
break;
struct ceph_msg *mount_msg;
struct dentry *root;
int err;
- int attempts = 2;//10;
+ int attempts = client->mount_args.mount_attempts;
int which;
char r;