mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 09:22:57 -05:00
fsctl: FSP_FSCTL_VOLUME_PARAMS
This commit is contained in:
@ -87,6 +87,10 @@ NTSTATUS FspVolumeCreate(
|
||||
/* check the VolumeParams */
|
||||
if (0 == VolumeParams.SectorSize)
|
||||
VolumeParams.SectorSize = 512;
|
||||
if (0 == VolumeParams.SectorsPerAllocationUnit)
|
||||
VolumeParams.SectorsPerAllocationUnit = 1;
|
||||
if (0 == VolumeParams.MaxComponentLength)
|
||||
VolumeParams.MaxComponentLength = 255;
|
||||
if (FspFsctlTransactTimeoutMinimum > VolumeParams.TransactTimeout ||
|
||||
VolumeParams.TransactTimeout > FspFsctlTransactTimeoutMaximum)
|
||||
VolumeParams.TransactTimeout = FspFsctlTransactTimeoutDefault;
|
||||
|
Reference in New Issue
Block a user