Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more class methods for better use of metadata
Add new class methods: 1) getRequiredSize(cls, free_space) - takes how much space we need and returns this space + metadata of this FS. 2) biggestOverheadFS(cls, fs_list=None) - Return FS from the list which takes most of the space by metadata. Input list is useful to filter only the required FSs if None is set then it takes biggest from all supported FSs.
- Loading branch information
1 parent
32f5239
commit dc3c456
Showing
1 changed file
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters