]> git.hungrycats.org Git - linux/commit
ksmbd: return FILE_DEVICE_DISK instead of super magic
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 23 Jun 2024 23:39:23 +0000 (08:39 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2024 07:53:39 +0000 (09:53 +0200)
commitc100e7cd655aecb1c40fe9b0420b45004d040cdd
tree6a35232b1d9d6361cc3c9d25b8fe1daae200e81e
parentf8900df168d1d30238fda2566e94beff556d04bd
ksmbd: return FILE_DEVICE_DISK instead of super magic

[ Upstream commit 25a6e135569b3901452e4863c94560df7c11c492 ]

MS-SMB2 specification describes setting ->DeviceType to FILE_DEVICE_DISK
or FILE_DEVICE_CD_ROM. Set FILE_DEVICE_DISK instead of super magic in
FS_DEVICE_INFORMATION. And Set FILE_READ_ONLY_DEVICE for read-only share.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/common/smb2pdu.h
fs/smb/server/smb2pdu.c