Namjae Jeon 02655a70b7 ksmbd: set fixed sector size to FS_SECTOR_SIZE_INFORMATION
Currently ksmbd is using ->f_bsize from vfs_statfs() as sector size.
If fat/exfat is a local share, ->f_bsize is a cluster size that is too
large to be used as a sector size. Sector sizes larger than 4K cause
problem occurs when mounting an iso file through windows client.

The error message can be obtained using Mount-DiskImage command,
 the error is:
"Mount-DiskImage : The sector size of the physical disk on which the
virtual disk resides is not supported."

This patch reports fixed 4KB sector size if ->s_blocksize is bigger
than 4KB.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
2022-04-14 20:56:13 -05:00
..
2022-02-04 00:12:22 -06:00
2022-01-10 12:44:19 -06:00
2022-01-10 12:44:19 -06:00
2021-11-11 19:22:58 -06:00
2022-04-14 20:56:13 -05:00
2022-04-14 20:56:13 -05:00
2021-07-02 16:27:10 +09:00
2022-04-14 20:56:13 -05:00
2022-04-14 20:56:13 -05:00
2021-12-03 18:58:11 +01:00
2021-12-03 18:58:11 +01:00
2022-04-14 20:56:13 -05:00