-
Notifications
You must be signed in to change notification settings - Fork 7
cephfs: Create the subvolume with --case-insensitive
#134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
cephfs: Create the subvolume with --case-insensitive
#134
Conversation
55ff9a2
to
2ea0e88
Compare
--case-insesitive
--case-insensitive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we make it configurable ?
We only access those subvolumes via Samba configured shares. That's why I made it mandatory. Or do you intend to extend the matrix by defining another set of shares with case insensitive subvolumes? |
There is an interesting failure with kernel client..
I'm wondering how the case sensitivity configuration can affect just kernel client mounts ! |
No, I don't think we need to extend the test matrix with a new option, but having it configurable makes it more flexible for debugging/testing, if needed. On the other side, it's relatively easy to reconfigure it once created, so it's not that important to have an option. As you prefer. |
I don't see how it could be related, specially if we are not using different names that could be seen by the kernel as different entries. It's a bit weird. I'll trigger another run to see if it happens consistently. |
/retest centos-ci/cephfs |
ceph/ceph#62105 is now merged which introduces the `--case-insensitive` subvolume option to make it case insensitive to suite SMB use cases. Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
2ea0e88
to
fe1ee99
Compare
I've seen this in the CephFS documentation for the case folding feature (https://docs.ceph.com/en/squid/cephfs/charmap/#restricting-incompatible-client-access):
and it also says later that the kernel client doesn't support charmap:
This basically means that the kernel client cannot create a file, which is what the sanity test tries to do. I only see two possibilities to adapt for this issue:
I'm more inclined for the first option, but given that most likely we'll always run tests with case-insensitive enabled, it doesn't make much sense to keep it if we'll never use it. |
I agree. @spuiuk What do you think? Should we make a configurable option for deciding the case sensitivity of the underlying CephFS subvolume? Or right away get rid of shares based on kernel client mounts? |
There is a third option. Create a subvolume which is case sensitive and export that with the kernel mount. This will involve some code change as we then set the shares exported based on the volume type and it is an extension of option 1 but instead of a global option, a per volume setting. But we can then test the Ceph kernel module as well. I would like option 1 - ie. use an option to enable case insensitive and set it on by default. That way, if we ever want to test kernel ceph mount, then we can go ahead and disable it for our one off test. |
Is it useful to test the kernel client on a different subvolume than the other shares ? specially if it's using a different configuration. I think we wouldn't be comparing apples to apples. |
Maybe we should continue testing with case-sensitive option enabled for vfs_ceph_new for one of the subvolumes along with the kernel-ceph client. One of the reasons for this could be new requirements which require us to have case-sensitivity enabled for vfs_ceph_new. |
ceph/ceph#62105 is now merged which introduces the
--case-insensitive
subvolume option to make it case insensitive to suite SMB use cases.