Wraps btrfs volumes in Ruby Objects.
To simplify working with btrfs volumes in Ruby.
gem install btrfs
The following will delete all subvolumes on a btrfs volume:
require 'btrfs'
volume = Btrfs::Volume.new '/path/to/volume'
volume.subvolumes.each do |subvolume|
subvolume.delete
end
btrfs.rb
is available under the MIT License. See LICENSE.txt
for the full text.