Re: [PATCH] smb/client: return EOPNOTSUPP for unsupported O_TMPFILE
Namjae Jeon <[email protected]>
| Newsgroups | org.kernel.vger.linux-cifs |
|---|---|
| Message-ID | <CAKYAXd_L2RQS6yGhT1a_pQEaSTjPnJ5iV1Jv_WyA+OzWBiZgVw@mail.gmail.com> |
On Fri, Aug 7, 2026 at 5:59 PM ChenXiaoSong <[email protected]> wrote: > > From: ChenXiaoSong <[email protected]> > > 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 <[email protected]> > Fixes: 3e7d63037a2b ("smb: client: add support for O_TMPFILE") > Closes: https://lore.kernel.org/linux-cifs/[email protected]/ > Signed-off-by: ChenXiaoSong <[email protected]> Applied it to #for-next with Paulo's acked-by tag. Thanks!