AmigaDOS Lock command

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
daveyw
Posts: 252
Joined: Mon Sep 12, 2011 7:44 pm

AmigaDOS Lock command

Post 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?
User avatar
ZeroG
Posts: 124
Joined: Sat Jun 18, 2011 11:31 am
Location: Germany

Re: AmigaDOS Lock command

Post by ZeroG »

It should work with every filesystem.
joerg
Posts: 371
Joined: Sat Mar 01, 2014 5:42 am

Re: AmigaDOS Lock command

Post 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.
xenic
Posts: 1185
Joined: Sun Jun 19, 2011 12:06 am

Re: AmigaDOS Lock command

Post 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.
AmigaOne X1000 with 2GB memory - OS4.1 FE
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 530
Joined: Sat Jun 18, 2011 3:12 pm
Location: Finland
Contact:

Re: AmigaDOS Lock command

Post by salass00 »

All filesysbox filesystems should have FSWriteProtect() support as it's implemented in filesysbox.library.
Post Reply