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:
parent
f4d40e3973
commit
75a0a74064
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue