mbox series

[v2,0/4] ceph: account for name and fsid in new device spec

Message ID OSZP286MB2061AF068B5B9462B1A8E461C02AA@OSZP286MB2061.JPNP286.PROD.OUTLOOK.COM
Headers show
Series ceph: account for name and fsid in new device spec | expand

Message

胡玮文 June 30, 2023, 4:26 a.m. UTC
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(-)