summaryrefslogtreecommitdiff
path: root/rust/zerocopy/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorHuiwen He <hehuiwen@kylinos.cn>2026-07-01 23:21:57 +0800
committerSteve French <stfrench@microsoft.com>2026-07-06 07:55:41 -0500
commit216c5aba4ebde1a6e85d7831c0cf39a9a2ad7a38 (patch)
tree14dad7aab78bccab2ddfaeba7bbc425761af5147 /rust/zerocopy/git@git.tavy.me:linux-stable.git
parenta0b765030f6ba37aaac59618d4f39dac18d42757 (diff)
smb/server: map SET_INFO ENOSPC to disk full
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 <hehuiwen@kylinos.cn> Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'rust/zerocopy/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions