Commit 2e0d224d authored by ChenXiaoSong's avatar ChenXiaoSong Committed by Steve French
Browse files

smb/server: add comment to FileSystemName of FileFsAttributeInformation

parent 98def4eb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -5497,6 +5497,13 @@ static int smb2_get_info_filesystem(struct ksmbd_work *work,
			info->Attributes |= cpu_to_le32(FILE_NAMED_STREAMS);

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