Re: [PATCH 0/7] cifs: Improve support for native SMB symlinks

From: Pali Rohár
Date: Sat Oct 05 2024 - 10:07:21 EST


On Sunday 29 September 2024 17:03:31 Steve French wrote:
> For patch 5 it could be ok - but wanted more opinions on that ...
> since wouldn't want it to break POSIX - e.g. what would happen with
> this patch if a Linux server changed the target of a symlink from a
> file to directory (or the other way around) - is there any risk of
> breaking POSIX symlink semantics in a pure Linux->Linux case with this
> patch?

I reworked the "cifs: Fix parsing native symlinks directory/file type"
patch to not change anything when server announce POSIX extension.
So V2 version of that patch would be active only for non-POSIX SMB
servers, like Windows SMB.

I hope that this would address all possible problems (not sure if there
are any) with Linux client <-> POSIX SMB server scenarios.