This is a bit more of a refactoring than the previous change, but the change here ensures that we won't end up with the FS mount stuff and the mount config sum types out of sync. As well as the FS missing mimir/unknown it was also missing a value for SparkFTP. This will be impossible in the future as there is a mapping from config to MountType now, which will become partial if only one the config is updated.
Actually, the mapping is only enforced one way, but at least it will be easier not to forget now.
This is a bit more of a refactoring than the previous change, but the change here ensures that we won't end up with the FS mount stuff and the mount config sum types out of sync. As well as the FS missing mimir/unknown it was also missing a value for
SparkFTP
. This will be impossible in the future as there is a mapping from config toMountType
now, which will become partial if only one the config is updated.Actually, the mapping is only enforced one way, but at least it will be easier not to forget now.