h6. [[FSLock]] h6(. » FSLock Technical Details h2. FSLock Technical Details h3(#overview). The FSLock Module Overview The FSLock module provides the functionality to protect CMOS RAM and other filing systems such as the hard disc against unwanted modification. This is achieved by intercepting any SWI that alters the filing system contents or CMOS RAM, and returning an error instead. Currently, FSLock can only protect drives 4 - 7 on any one filing system. It is important to note that two areas of a protected disc are excluded. They are: * $.Public - This location is commonly used for general file storage by the end user. It cannot be created while the computer is in a locked state. * $.!Boot.Resources.!Scrap.ScrapDir - This location needs to remain writeable to allow Scrap transfers of files between applications. h3(#lockstates). Lock States The following table details the different Lock states. |_<^{width:12em}. State |_<^. Description | |<^. Fully unlocked |<^. An fully unlocked device has no password allocated to it. The discs or configuration can be modified. This state persists over all device resets. This is the default state after the CMOS RAM has been successfully cleared | |<^. Partially unlocked |<^. A partially unlocked device has a password allocated to it. The discs and configuration modified. If the machine is reset, it reverts to being locked | |<^. Locked |<^. A locked device has a password allocated to it. The discs or configuration cannot be modified. This state persists over all device resets | h3(#lockstatus). Lock Status The lock states are passed to commands using the lock status. |_<^{width:4em}. Status |_<^. Meaning | |<^. 0 |<^. Fully unlocked | |<^. 1 |<^. Partially unlocked | |<^. 2 |<^. Locked | h3(#passwords). Passwords * Passwords are case sensitive. * The Configure application restricts the password to at least five non-space characters that are acceptable in a writable icon. Although the SWIs will accept any null terminated string, it is advisable to follow the five non-space character limit, otherwise users will be unable to enter a valid password.