Allow setting read/write, UUID and volume name options for EXT4 file systems#2199
Allow setting read/write, UUID and volume name options for EXT4 file systems#2199pojntfx wants to merge 3 commits into
Conversation
|
@microsoft-github-policy-service agree company="Loophole Labs" |
…T4 file system writer Signed-off-by: Felicitas Pojtinger <felicitas@pojtinger.com>
2f57b0f to
9361934
Compare
|
Hi @pojntfx, thanks for the contributions! Could you provide a use case for the disk to be read/write? This tool was originally created for converting Linux container image tar files into VHDs that can be used on windows to run hypervisor isolated Linux containers. In this context, the VHDs shouldn't be read/write (though I have heard of some corner cases 😅). |
|
Hi @katiewasnothere, sorry about the long delay. We have almost the exact same use case - we take an OCI image, extract it with Same goes for #2325 - once the disk is read-writable and has a proper UUID & volume name, we'd like to be able to add extra free space for it. A workaround for this issue ofc could be to use something like |
Currently, file systems generated by the
tar2ext4tool lack a volume name and have their UUID set to0000-...., despite the superblock in the internal package having the fields available. This PR allows to optionally set these fields withReadWrite() Option,UUID(uuid [16]byte) OptionandVolumeName(volumeName [16]byte) Option. The existing behavior does not change as a result of this.