I checked the whole man mount.cifs and also everything I found related to SMBv3. I have the following scenario:
- A Ubuntu 16.04 VM in Azure, with kernel 4.12.11.
- A Azure Files share, with "Secure transfer required" disabled.
The problem I face is that, if I want to use SMBv3, the client will encrypt the transfer anyway, regardless of the setting on server side.
The "Secure transfer required" option, when set to disable, doesn't require encrypted transfer, but it doesn't force un-encrypted transfer. It simply allows the client to decide.
This is the related documentation Azure has: https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-linux
This is the man page on CIFS: https://linux.die.net/man/8/mount.cifs
The question is: Is there any way to disable encryption client side, in Linux, when mounting with mount.cifs using SMBv3?
The reason I want to use SMBv3 is related to the speed in transfer, compared to SMBv2.1. The problem with the encryption is that it goes high on CPU usage. If I use SMBv2.1, the CPU usage is lower, but also the transfer is twice as slow.