relan / exfat

Free exFAT file system implementation
GNU General Public License v2.0
793 stars 181 forks source link

Tools to extend exfat volume #145

Open thasega opened 4 years ago

thasega commented 4 years ago

I created a tool called resizeexfatfs that extends the volume. It extends exfat's volume, like "Expand Filesystem" in Raspberry Pi. I would be happy if you could merge it if you like.

relan commented 4 years ago

Thanks for your effort!

This is a useful tool indeed, but your code needs some improvements:

  1. The coding style should match the rest of the project.
  2. There should be no dead code like that in method_0.c and method_1.c files.
  3. The code needs to be stabilized. I made a simple test: created an FS image of 1 GB in size, copied the fuse-exfat 1.3.0 source tree to it, unmounted, resized the image to 2 GB and ran your utility. It crashed:
resizeexfatfs 1.3.0
Exist 3 subdir(s), 37 file(s)
BUG: invalid cluster number 1.
Aborted (core dumped)
thasega commented 4 years ago

Thank you for your confirmation.

I was doing a test to expand from 256MB to 32GB, but it seems to have been insufficient. I'll improve the code and contact you again.

tmm1 commented 3 years ago

I'll improve the code and contact you again.

Hi @thasega, I wonder if you have any updates to this PR?