No. Unfortunately, if all you have is the presence or absence of a directory to determine if the file is locked, then that is only one bit of information. And there is no way to encode all the other locking states in a single bit.
Hm. Doesn't this mean the proposed solution still works, but with directories instead of files for the sake of atomicity? I.e. for each lock type, create a unique dir name (e.g. ".1.lock") and stat for all lock types when changing levels?
_______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users