Commit 02655a7
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>1 parent 8510a04 commit 02655a7
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
4995 | 4996 | | |
4996 | 4997 | | |
4997 | 4998 | | |
| 4999 | + | |
| 5000 | + | |
4998 | 5001 | | |
4999 | 5002 | | |
5000 | 5003 | | |
5001 | | - | |
| 5004 | + | |
5002 | 5005 | | |
5003 | | - | |
5004 | | - | |
| 5006 | + | |
| 5007 | + | |
5005 | 5008 | | |
5006 | | - | |
| 5009 | + | |
5007 | 5010 | | |
5008 | 5011 | | |
5009 | 5012 | | |
| |||
0 commit comments