henrikstengaard / hst-imager

Hst Imager is an imaging tool to read and write disk images to and from physical drives
MIT License
21 stars 1 forks source link

Proposed feature #2 - Change the Mask #3

Closed roc-eab closed 1 year ago

roc-eab commented 1 year ago

Rarely used features, however if feasible would it be possible adding to the "rdb part add" the mask option?

I have spoiled it in the code with the default value 2147483646 (7ffffffe) which is used in most cases for hard disk images.

The usage that comes to my mind is for images meant for CF cards, where the 0xfffffe mask is used instead of the 0x7ffffffe

Thank you for considering this.

henrikstengaard commented 1 year ago

I can add support for setting mask when adding a partition.

Should also be added for part update as well.

henrikstengaard commented 1 year ago

New release adds mask option to both rdb part add and update commands and supports either integer value or hex value, so e.g. max transfer can be set to integer value 130560 or hex value 0x1fe00.

roc-eab commented 1 year ago

It works well, thanks!