open-iscsi / targetd

Remote configuration of a LIO-based storage appliance
GNU General Public License v3.0
71 stars 28 forks source link

Utililize btrfs library instead of utilizing command line #52

Open tasleson opened 4 years ago

tasleson commented 4 years ago

Btrfs has a library interface, ref. https://github.com/kdave/btrfs-progs/tree/master/libbtrfsutil . It would be better to utilize it instead of forking & exec'ing the command line interface and parsing the results as we are in targetd.