0

I want to resize an ext4 partition programmatically in C. I believe I can use libparted to resize the partition, but not the file system? Can anybody point me in the right direction?

Alex Chamberlain
  • 4,147
  • 2
  • 22
  • 49

1 Answers1

0

Use resize_fs().

Take a look here for example of usage:

http://fossies.org/dox/e2fsprogs-1.42.4/resize2fs_8c_source.html#l00072

Igor Chubin
  • 61,765
  • 13
  • 122
  • 144