Skip to content

Commit 2f56b6b

Browse files
committed
libceph: amend "bad option arg" error message
Don't mention "mount" -- in the rbd case it is "mapping". Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent 17173c8 commit 2f56b6b

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎drivers/block/rbd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ static int parse_rbd_opts_token(char *c, void *private)
786786
if (token < Opt_last_int) {
787787
ret = match_int(&argstr[0], &intval);
788788
if (ret < 0) {
789-
pr_err("bad mount option arg (not int) at '%s'\n", c);
789+
pr_err("bad option arg (not int) at '%s'\n", c);
790790
return ret;
791791
}
792792
dout("got int token %d val %d\n", token, intval);

‎fs/ceph/super.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ static int parse_fsopt_token(char *c, void *private)
219219
if (token < Opt_last_int) {
220220
ret = match_int(&argstr[0], &intval);
221221
if (ret < 0) {
222-
pr_err("bad mount option arg (not int) "
223-
"at '%s'\n", c);
222+
pr_err("bad option arg (not int) at '%s'\n", c);
224223
return ret;
225224
}
226225
dout("got int token %d val %d\n", token, intval);

‎net/ceph/ceph_common.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,7 @@ ceph_parse_options(char *options, const char *dev_name,
396396
if (token < Opt_last_int) {
397397
err = match_int(&argstr[0], &intval);
398398
if (err < 0) {
399-
pr_err("bad mount option arg (not int) "
400-
"at '%s'\n", c);
399+
pr_err("bad option arg (not int) at '%s'\n", c);
401400
goto out;
402401
}
403402
dout("got int token %d val %d\n", token, intval);

0 commit comments

Comments
 (0)