We have name and fsid in the new device spec format, but kernel just discard them. Instead of relying on the mount.ceph helper, we should do this directly in kernel to ensure the options and device spec are consistent. And also avoid any confusion. Changes since v1: * Changed my email address, since I have graduated from university. * A slightly more efficient `strstrn_equals' implementation. * Make the mismatching error message more clear. * As suggested by Ilya, rewrite patch 3. Now it does not touch code in net/ceph, I now allow options to be overridable, and check the device spec is consistent with the final resolved options. * Added patch 4. Hu Weiwen (4): ceph: refactor mds_namespace comparing ceph: save name and fsid in mount source ceph: delay parsing of source after all options ceph: allow mds_namespace to appear multiple times fs/ceph/super.c | 68 ++++++++++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 29 deletions(-) -- 2.25.1