[PATCH] smb/client: return EOPNOTSUPP for unsupported O_TMPFILE

Namjae Jeon linkinjeon at kernel.org
Mon Aug 17 06:49:07 UTC 2026


On Fri, Aug 7, 2026 at 5:59 PM ChenXiaoSong
<chenxiaosong at chenxiaosong.com> wrote:
>
> From: ChenXiaoSong <chenxiaosong at kylinos.cn>
>
> Some SMB servers return STATUS_OBJECT_NAME_NOT_FOUND or
> STATUS_DELETE_PENDING when creating an O_TMPFILE.
> The SMB client maps them to ENOENT.
>
> The ENOENT error is supposed to be returned when the path
> (a target directory in this case) does not exist, while a
> lack of support of O_TMPFILE by the target file system should
> be indicated by EOPNOTSUPP.
>
> Reported-by: Mikhail Stefantsev <mikhail at mstefan99.com>
> Fixes: 3e7d63037a2b ("smb: client: add support for O_TMPFILE")
> Closes: https://lore.kernel.org/linux-cifs/75fb5359-b268-492d-8d4a-504d1af60f2a@app.fastmail.com/
> Signed-off-by: ChenXiaoSong <chenxiaosong at kylinos.cn>
Applied it to #for-next with Paulo's acked-by tag.
Thanks!



More information about the samba-technical mailing list