bcl / parted

parted the partition editor
GNU General Public License v3.0
7 stars 2 forks source link

Add a --readonly flag #13

Closed bcl closed 1 year ago

bcl commented 1 year ago

This opens the device in readonly mode, preventing any udev events when reading the device. Any attempts to write to it will result in a write error.

bcl commented 1 year ago

Abandoning this, since it isn't possible to open things purely read-only. You have to open it in write mode to do the fsync to make sure you have the right data.