libceph: amend "bad option arg" error message
authorIlya Dryomov <idryomov@gmail.com>
Wed, 27 Jun 2018 14:38:13 +0000 (16:38 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 2 Aug 2018 19:26:11 +0000 (21:26 +0200)
Don't mention "mount" -- in the rbd case it is "mapping".

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c
fs/ceph/super.c
net/ceph/ceph_common.c

index fa0729c..4e8949b 100644 (file)
@@ -786,7 +786,7 @@ static int parse_rbd_opts_token(char *c, void *private)
        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);
+                       pr_err("bad option arg (not int) at '%s'\n", c);
                        return ret;
                }
                dout("got int token %d val %d\n", token, intval);
index 95a3b3a..3d8a26b 100644 (file)
@@ -219,8 +219,7 @@ static int parse_fsopt_token(char *c, void *private)
        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);
+                       pr_err("bad option arg (not int) at '%s'\n", c);
                        return ret;
                }
                dout("got int token %d val %d\n", token, intval);
index 1677a61..6ebd7d9 100644 (file)
@@ -396,8 +396,7 @@ ceph_parse_options(char *options, const char *dev_name,
                if (token < Opt_last_int) {
                        err = match_int(&argstr[0], &intval);
                        if (err < 0) {
-                               pr_err("bad mount option arg (not int) "
-                                      "at '%s'\n", c);
+                               pr_err("bad option arg (not int) at '%s'\n", c);
                                goto out;
                        }
                        dout("got int token %d val %d\n", token, intval);