Hi ,
I want to make a HFS volume readonly. I am setting the flag in mdb.drAtrb to
mdb.drAtrb | = 0x4000 ( As said in Inside Macintosh)
Bit Meaning 15 Set if th volume is Locked by Software.
After creating a Image of such a Volume. I am mounting it with a FreeWare application in Windows which can mount HFS volumes. But , I can still add files to that volume through this software and delete them too. That shows the volume is not Locked. So, anything else I should do to Volume parameters to make that Volume represent a ReadOnly one??
Waiting for ur Inputs.
Regards Biswaroop
The difference between sunrise and sunset lies in the freshness of your eyes. --Bisban
Wouldn't setting bit 15 give 0x8000 ??? numbering the 16 bits from 0..15 i.e.
- Nandini
----- Original Message ----- From: "Biswaroop(External)" biswaroopb@integramicro.com To: hfs-user@lists.mars.org Sent: Friday, April 26, 2002 1:17 PM Subject: [hfs-user] To make a Readonly HFS Volume
Hi ,
I want to make a HFS volume readonly. I am setting the flag in mdb.drAtrb to
mdb.drAtrb | = 0x4000 ( As said in Inside Macintosh)
Bit Meaning 15 Set if th volume is Locked by Software.
After creating a Image of such a Volume. I am mounting it with a FreeWare application in Windows which can mount
HFS
volumes. But , I can still add files to that volume through this software and delete them too. That shows the volume is not Locked. So, anything else I should do to Volume parameters to make that Volume represent a ReadOnly one??
Waiting for ur Inputs.
Regards Biswaroop
The difference between sunrise and sunset lies in the freshness of your eyes. --Bisban
I want to make a HFS volume readonly. I am setting the flag in mdb.drAtrb to
mdb.drAtrb | = 0x4000 ( As said in Inside Macintosh)
Bit Meaning 15 Set if th volume is Locked by Software.
After creating a Image of such a Volume. I am mounting it with a FreeWare application in Windows which can mount HFS volumes. But , I can still add files to that volume through this software and delete them too. That shows the volume is not Locked. So, anything else I should do to Volume parameters to make that Volume represent a ReadOnly one??
mkisofs (mkhybrid) makes a volume readonly using:
mdb.drAtrb |= HFS_ATRB_SLOCKED
where HFS_ATRB_SLOCKED is defined as (1 << 15) == 0x8000
Of course, this still assumes that whatever is mounting the volume honours the readonly flag ...
James Pearson