Closed EnderShadow closed 3 years ago
Isn't it better to just modify L171 and add: and path == self.swapfc_path
? (Or something like it)
The reason I made the change that I did is becuase get_fs_type()
isn't correctly returning whether or not the path is a btrfs subvolume. My change identifies whether or not the path is a btrfs subvolume. The main issue with the code prior to the patch is that it doesn't realize that the path is a subvolume and so it tries to create a subvolume on top of it.
I've updated it so it uses the suggested function instead.
Fix for issue #180