#if HDF_SUPPORT_DS
case HD_SCSICMD: /* SCSI */
- if (HDF_SUPPORT_DS_PARTITION || (!hfd->ci.sectors && !hfd->ci.surfaces && !hfd->ci.reserved)) {
+ if (HDF_SUPPORT_DS_PARTITION || enable_ds_partition_hdf || (!hfd->ci.sectors && !hfd->ci.surfaces && !hfd->ci.reserved)) {
error = handle_scsi(ctx, iobuf, request, hfd, hfpd->sd);
} else { /* we don't want users trashing their "partition" hardfiles with hdtoolbox */
error = IOERR_NOCMD;
log_scsiemu = 1;
return 1;
}
+ if (!_tcscmp (arg, _T("ds_partition_hdf"))) {
+ extern int enable_ds_partition_hdf;
+ enable_ds_partition_hdf = 1;
+ return 1;
+ }
if (!_tcscmp (arg, _T("filesyslog"))) {
log_filesys = 1;
return 1;