Up |
_setActivePartition
Change the current active partition (if the Cache is not already set). The partition name must be set in the usm.ini file.
Prototype :
fun [S I] I
- S : the directory name. It MUST be defined in the usm.ini file.
- I : the type of partition (0, 1 or 2)
Return : I 0 or nil if error
Error :
- EOK if success.
- EINVAL if the given type is invalid.
- EARGNIL if the given partition name is nil.
- ECACHE if the Cache is activated.
- EUNABLE if the partition has not been activated (probably a bad name or it is not set in the usm.ini file).
See also :
Example :