Re: [PATCH v2 3/3] smb/client: fix nlink of an overwritten open file
ChenXiaoSong <[email protected]>
| Newsgroups | org.kernel.vger.linux-cifs |
|---|---|
| Message-ID | <[email protected]> |
As Ralph said, - if there are one or more non-POSIX opens on the destination, MUST fail with STATUS_ACCESS_DENIED - if there are only POSIX opens, the operation can proceed Samba should allow the rename to succeed so that the silly-rename is not triggered. We should fix this bug in Samba so that the Linux client should call cifs_drop_nlink(). Since silly-rename will not be triggered, __cifs_unlink() will not be called either. 在 2026/8/5 2:53, ChenXiaoSong 写道: > Samba has a bug, please check the email: https://lore.kernel.org/linux- > cifs/[email protected]/ > > 在 2026/8/5 1:08, Steve French 写道: >> generic/035 passes to Samba with posix mount option without the patch. >> Any idea why this patch was needed for ksmbd but not for Samba > -- ChenXiaoSong <[email protected]> Chinese Homepage: https://chenxiaosong.com English Homepage: https://chenxiaosong.com/en