disk: add docstring for resizeEntityBranch()

resizeEntityBranch() is a private function, but it's not immediately
clear how it works so a docstring is useful for internal development.
This commit is contained in:
Achilleas Koutsou 2022-04-25 12:08:33 +02:00 committed by Christian Kellner
parent f4d40e3973
commit 75a0a74064

View file

@ -425,6 +425,9 @@ func clampFSSize(mountpoint string, size uint64) uint64 {
return size
}
// resizeEntityBranch resizes the first entity in the specified path to be at
// least the specified size and then grows every entity up the path to the
// PartitionTable accordingly.
func resizeEntityBranch(path []Entity, size uint64) {
if len(path) == 0 {
return