On Tue, May 11, 2021 at 12:46 PM Aurélien Aptel <aaptel@xxxxxxxx> wrote: > > > I would put in the commit msg that this requires recent kernel. > > We should probably merge kernel code first so we can reference it here > in the commit msg, and say in the man page when did the kernel change. > > There can be cases where cifs-utils is more recent than kernel and > mount.cifs will pass all the ip instead of trying them before passing > the good one to the kernel but since it's an old kernel it won't try > them all. We could add an option to enable new behavior or check the > kernel version from within mount.cifs.. thoughts? We could at least warn on older cifs.ko (which would be unlikely to work unless someone backported features but didn't backport the updated version #) by checking for the version number (2.32? 2.33?) "cat /proc/fs/cifs/DebugData | grep Version" shows the version number easily info (there are other ways to retrieve it as well) -- Thanks, Steve