lib/config, lib/model: Include paused folders in cluster config (fixes #4897)
This commit is contained in:
committed by
Audrius Butkevicius
parent
56cf2db68b
commit
f6458d1b8f
@@ -278,3 +278,17 @@ func (l FolderDeviceConfigurationList) Len() int {
|
||||
func (f *FolderConfiguration) CheckFreeSpace() (err error) {
|
||||
return checkFreeSpace(f.MinDiskFree, f.Filesystem())
|
||||
}
|
||||
|
||||
type FolderConfigurationList []FolderConfiguration
|
||||
|
||||
func (l FolderConfigurationList) Len() int {
|
||||
return len(l)
|
||||
}
|
||||
|
||||
func (l FolderConfigurationList) Less(a, b int) bool {
|
||||
return l[a].ID < l[b].ID
|
||||
}
|
||||
|
||||
func (l FolderConfigurationList) Swap(a, b int) {
|
||||
l[a], l[b] = l[b], l[a]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user