Skip to content

Commit 2e0d224

Browse files
ChenXiaoSongsmfrench
authored andcommitted
smb/server: add comment to FileSystemName of FileFsAttributeInformation
Explained why FileSystemName is always set to "NTFS". Link: namjaejeon/ksmbd@8439265 Signed-off-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 98def4e commit 2e0d224

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

fs/smb/server/smb2pdu.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5497,6 +5497,13 @@ static int smb2_get_info_filesystem(struct ksmbd_work *work,
54975497
info->Attributes |= cpu_to_le32(FILE_NAMED_STREAMS);
54985498

54995499
info->MaxPathNameComponentLength = cpu_to_le32(stfs.f_namelen);
5500+
/*
5501+
* some application(potableapp) can not run on ksmbd share
5502+
* because only NTFS handle security setting on windows.
5503+
* So Although local fs(EXT4 or F2fs, etc) is not NTFS,
5504+
* ksmbd should show share as NTFS. Later, If needed, we can add
5505+
* fs type(s) parameter to change fs type user wanted.
5506+
*/
55005507
len = smbConvertToUTF16((__le16 *)info->FileSystemName,
55015508
"NTFS", PATH_MAX, conn->local_nls, 0);
55025509
len = len * 2;

0 commit comments

Comments
 (0)