Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188593
b: refs/heads/master
c: e53c2fe
h: refs/heads/master
i:
  188591: 38381e0
v: v3
  • Loading branch information
Sage Weil committed Oct 27, 2009
1 parent f5d35be commit 4888ed0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ca874e92d5e50beb8e351dfd8121947bafc79ec
refs/heads/master: e53c2fe075feda1fd4f009956ac026dc24c3a199
11 changes: 9 additions & 2 deletions trunk/fs/ceph/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,11 @@ enum {
Opt_caps_wanted_delay_min,
Opt_caps_wanted_delay_max,
Opt_readdir_max_entries,
Opt_last_int,
/* int args above */
Opt_snapdirname,
Opt_secret,
Opt_last_string,
/* string args above */
Opt_ip,
Opt_noshare,
Expand Down Expand Up @@ -386,14 +388,19 @@ static int parse_mount_args(struct ceph_client *client,
pr_err("bad mount option at '%s'\n", c);
goto out;
}
if (token < Opt_ip) {
if (token < Opt_last_int) {
ret = match_int(&argstr[0], &intval);
if (ret < 0) {
pr_err("bad mount option arg (not int) "
"at '%s'\n", c);
continue;
}
dout("got token %d intval %d\n", token, intval);
dout("got int token %d val %d\n", token, intval);
} else if (token > Opt_last_int && token < Opt_last_string) {
dout("got string token %d val %s\n", token,
argstr[0].from);
} else {
dout("got token %d\n", token);
}
switch (token) {
case Opt_fsidmajor:
Expand Down

0 comments on commit 4888ed0

Please sign in to comment.