Re: [PATCH v6 5/5] smb/server: map SET_INFO ENOSPC to disk full

Namjae Jeon <[email protected]>
Newsgroups org.kernel.vger.linux-cifs
Message-ID <CAKYAXd_KXELiqFDZ=Q5jJBOWgHOzXtxZyLSxrjh_qPFMNsEJ6g@mail.gmail.com>
On Thu, Jul 2, 2026 at 12:23 AM Huiwen He <[email protected]> wrote:
>
> From: Huiwen He <[email protected]>
>
> FILE_ALLOCATION_INFORMATION can call vfs_fallocate(). If the allocation
> cannot be satisfied, vfs_fallocate() returns -ENOSPC.
>
> smb2_set_info() did not map -ENOSPC, so ksmbd returned a generic SMB error
> and the client reported EIO instead of ENOSPC. This makes the ENOSPC step
> in xfstests generic/213 fail.
>
> Map -ENOSPC and -EFBIG to STATUS_DISK_FULL in the SET_INFO error path.
>
> Tested with xfstests generic/213 on ksmbd.
>
> Signed-off-by: Huiwen He <[email protected]>
> Reviewed-by: ChenXiaoSong <[email protected]>
Applied it to #ksmbd-for-next-next.
Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.