diff options
author | Sage Weil <sage@newdream.net> | 2009-10-22 13:53:02 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-10-22 13:53:17 -0400 |
commit | ecb19c4649d7396737eb0d91a475661fe9d7c028 (patch) | |
tree | 32ff9e8b3a9afffe5c9b7e97f1aef6b367c08dde /fs/ceph/super.c | |
parent | 232d4b01319767b3ffa5d08962a81c805962be49 (diff) |
ceph: remove small mon addr limit; use CEPH_MAX_MON where appropriate
Get rid of separate max mon limit; use the system limit instead. This
allows mounts when there are lots of mon addrs provided by mount.ceph (as
with a host with lots of A/AAAA records).
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/super.c')
-rw-r--r-- | fs/ceph/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index ab950fce4172..81916250f0b6 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c | |||
@@ -314,7 +314,7 @@ static int parse_mount_args(struct ceph_client *client, | |||
314 | int err; | 314 | int err; |
315 | substring_t argstr[MAX_OPT_ARGS]; | 315 | substring_t argstr[MAX_OPT_ARGS]; |
316 | int num_mon; | 316 | int num_mon; |
317 | struct ceph_entity_addr mon_addr[CEPH_MAX_MON_MOUNT_ADDR]; | 317 | struct ceph_entity_addr mon_addr[CEPH_MAX_MON]; |
318 | int i; | 318 | int i; |
319 | 319 | ||
320 | dout("parse_mount_args dev_name '%s'\n", dev_name); | 320 | dout("parse_mount_args dev_name '%s'\n", dev_name); |
@@ -344,7 +344,7 @@ static int parse_mount_args(struct ceph_client *client, | |||
344 | 344 | ||
345 | /* get mon ip(s) */ | 345 | /* get mon ip(s) */ |
346 | err = ceph_parse_ips(dev_name, *path, mon_addr, | 346 | err = ceph_parse_ips(dev_name, *path, mon_addr, |
347 | CEPH_MAX_MON_MOUNT_ADDR, &num_mon); | 347 | CEPH_MAX_MON, &num_mon); |
348 | if (err < 0) | 348 | if (err < 0) |
349 | return err; | 349 | return err; |
350 | 350 | ||