mbox series

[0/3] ceph: account for name and fsid in new device spec

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

Message

胡玮文 May 7, 2023, 5:53 p.m. UTC
From: Hu Weiwen <sehuww@mail.scut.edu.cn>

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.

Hu Weiwen (3):
  ceph: refactor mds_namespace comparing
  ceph: save name and fsid in mount source
  libceph: reject mismatching name and fsid

 fs/ceph/super.c        | 51 +++++++++++++++++++++++++-----------------
 net/ceph/ceph_common.c | 26 ++++++++++++++++-----
 2 files changed, 52 insertions(+), 25 deletions(-)

Comments

Xiubo Li May 17, 2023, 12:40 a.m. UTC | #1
On 5/8/23 01:53, Hu Weiwen wrote:
> From: Hu Weiwen <sehuww@mail.scut.edu.cn>
>
> 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.
>
> Hu Weiwen (3):
>    ceph: refactor mds_namespace comparing
>    ceph: save name and fsid in mount source
>    libceph: reject mismatching name and fsid
>
>   fs/ceph/super.c        | 51 +++++++++++++++++++++++++-----------------
>   net/ceph/ceph_common.c | 26 ++++++++++++++++-----
>   2 files changed, 52 insertions(+), 25 deletions(-)
>
Will apply this patch series to the testing branch and run the test.

Thanks Weiwen

- Xiubo