Page 1 of 1

AmigaDOS Lock command

Posted: Sat Mar 01, 2014 12:17 pm
by daveyw
Hi all,

Having a look through the C documentation, and I came across the AmigaDOS lock command, which locks drives.

Does anyone know which filesystems it works with? Only FFS? Or is it at the API level and works with anything?

Re: AmigaDOS Lock command

Posted: Sat Mar 01, 2014 2:24 pm
by ZeroG
It should work with every filesystem.

Re: AmigaDOS Lock command

Posted: Sat Mar 01, 2014 4:29 pm
by joerg
ZeroG wrote:It should work with every filesystem.
The filesystem has to support it, ACTION_WRITE_PROTECT for old packet filesystems or FSWriteProtect() for new vector port filesystems, but I don't know any which doesn't support it.

Re: AmigaDOS Lock command

Posted: Sun Mar 02, 2014 6:28 pm
by xenic
I've been using the lock command on my SYS: & Work: partitions for years with OS3 and OS4. It worked for me with all Amiga filesystems but I don't know about FAT or NTFS partitions.

Re: AmigaDOS Lock command

Posted: Sun Mar 02, 2014 6:56 pm
by salass00
All filesysbox filesystems should have FSWriteProtect() support as it's implemented in filesysbox.library.