> On Aug 2, 2022, at 8:14 PM, Eric Auer <e.a...@jpberlin.de> wrote:
> 
> 
> Hi!
> 
> To be a bit more productive than just complaining, how about this?
> 
> /* Automatically partition the selected hard drive */
> void Automatically_Partition_Hard_Drive()
> 
> could be patched using:
> 
>> --- FDISKIO.C.bak    2022-08-03 02:10:06.914145715 +0200
>> +++ FDISKIO.C        2022-08-03 02:10:27.141382832 +0200
>> @@ -110,7 +110,7 @@
>>         (pDrive->total_head+1)*
>>         pDrive->total_sect / 2048; */
>>       }while(  (pDrive->ext_part_largest_free_space > 0)
>> -        && (Determine_Drive_Letters()<'Z') );
>> +        && (Determine_Drive_Letters()<'D') );
>>     }
>> }
>> 
> 
> That would at least somewhat limit the damage done by /AUTO :-)
> 
> One could also change the following part to NOT use type 6:
> 
> /* Create a primary partition...if the size or type is incorrect,  */
> /* int Create_Primary_Partition(...) will adjust it automatically. */
> Determine_Free_Space();
> Set_Active_Partition(Create_Primary_Partition(6,2048));
> 
> By using FAT32, the whole extended/logical partition creation
> hassles could be dropped, making a FAT32 variant of /AUTO much
> simpler than the original. Both could co-exist with different
> command line options in a patched FDISK, e.g. /AUTO32 and /AUTO.

Instead of changing the existing behavior, it may be better to just create 2 
new switches.

/AUTO16 - Create one partition, as large as possible, up to 2GB.
/AUTO32 - Create one partition, as large as possible, using entire drive 
(probably). 

Or possibly even better, 

/AUTOMAX n - limit number of created partitions to n.
/AUTO32 - Create FAT32 partition(s).

Maybe even an,

/AUTOSIZE n - to specify a maximum size of automatically created partition(s). 

> 
> Eric
> 

Just a thought. 


:-)

Jerome



_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to