[ale] flock
James P. Kinney III
jkinney at localnetsolutions.com
Mon Mar 26 11:06:59 EDT 2007
On Mon, 2007-03-26 at 09:33 -0400, cfowler wrote:
> How long will this process take?
>
> 1. Mark the file as RO in the ext2/3 FS. Use chattr
> 2. Copy contents
> 3. Mark file as RW.
>
> If anyone tries to change their password they will get an error message
> that the file can not be written to. Even root will not be able to
> write to that file with the RO attribute configured in the file system.
>
> Note, this is not a mode attribute. This is specific to ext2.
Good idea! It is on an ext3 filesystem so chattr will do the trick. The
time frame for needing the lock is less than 5 seconds so the
interference is minimal. I'm probably over-engineering this thing anyway
(ask Aaron about my "official title" :)
--
James P. Kinney III
CEO & Director of Engineering
Local Net Solutions,LLC
770-493-8244
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the Ale
mailing list