• Namjae Jeon's avatar
    ksmbd: set fixed sector size to FS_SECTOR_SIZE_INFORMATION · 02655a70
    Namjae Jeon authored
    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: default avatarNamjae Jeon <linkinjeon@kernel.org>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    02655a70
smb2pdu.c 230 KB