* fhandler_raw.cc (fhandler_dev_raw::open): Eliminate compatibility
code since no Win32 device names are used anymore. * fhandler_tape.cc (fhandler_dev_tape::tape_set_blocksize): Allow 0 as blocksize to indicate variable blocksize. * path.cc (win32_device_name): Generate NT internal device names using upper/lower case names for readability. Generate \DosDevices\<letter>: device name for mount table compatibility devices.
This commit is contained in:
@@ -692,7 +692,7 @@ fhandler_dev_tape::tape_set_blocksize (long count)
|
||||
if (lasterr)
|
||||
return lasterr;
|
||||
|
||||
if (count < min || count > max)
|
||||
if (count != 0 && (count < min || count > max))
|
||||
return tape_error (ERROR_INVALID_PARAMETER, "tape_set_blocksize");
|
||||
|
||||
mp.BlockSize = count;
|
||||
|
Reference in New Issue
Block a user