]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mount.ceph: tweak message on unknown option 12465/head
authorJohn Spray <john.spray@redhat.com>
Sun, 25 Dec 2016 16:51:18 +0000 (16:51 +0000)
committerJohn Spray <john.spray@redhat.com>
Sun, 25 Dec 2016 16:51:18 +0000 (16:51 +0000)
The old message sounded worse than it really was,
and was going to stdout instead of stderr.

Fixes: http://tracker.ceph.com/issues/18159
Signed-off-by: John Spray <john.spray@redhat.com>
src/mount/mount.ceph.c

index 8a0853fdf4596e29a05db17cbdc2e5fee8e4cb98..ab96970c312d339f7ada3ce96b30ce1268d439fc 100644 (file)
@@ -201,8 +201,10 @@ static char *parse_options(const char *data, int *filesys_flags)
                        skip = 0;
                } else {
                        skip = 0;
-                       if (verboseflag)
-                               printf("ceph: Unknown mount option %s\n",data);
+                       if (verboseflag) {
+                         fprintf(stderr, "mount.ceph: unrecognized mount option \"%s\", "
+                                         "passing to kernel.\n", data);
+            }
                }
 
                /* Copy (possibly modified) option to out */