mount.ceph: tweak message on unknown option

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>
This commit is contained in:
John Spray 2016-12-25 16:51:18 +00:00
parent a3bf341876
commit 042b1d7cb1

View 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 */