> > Is there a way for you to know you're on an NFS filesystem in Java?
>
> One way would be to move the mess into NestedVM. I was thinking the
> the code that calls the Java locking API could test to see if it works
> (by attempting a second lock, etc), and if it doesn't, then return -1
> to fcntl(). Then with SQLITE_ENABLE_LOCKING_STYLE enabled, SQLite will
> drop to dotlockLocking without a recompile.
You might have to support a few more syscall variants - statfs at least.
That information could be problematic or even impossible to obtain in java.
The absense of this information would make sqlite3DetectLockingStyle()
unreliable.
AFP can't be supported due to the various calls to _AFP*() not present
in Java. So you have to make an SQLite patch in order to access its
dotlocking code.
Also, what if the file is actually locked?
You don't want to drop down to dotlocking by mistake.
Tricky stuff.
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---