lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: [jira] Commented: (LUCENE-1044) Behavior on hard power shutdown
Date Fri, 30 Nov 2007 18:09:03 GMT
On Nov 30, 2007 12:42 PM, robert engels <rengels@ix.netcom.com> wrote:
> It is unclear if you need to open them for writing. The unix specs
> clearly allow you do call fsync on ANY file descriptor.
>
> The Linux docs seem to imply that a file descriptor opened for write
> is required.
>
> The Java specification allows it on ANY file descriptor as well -
> this should be the only one that matters.

AIX docs say that fd opened for write is required... one of the error codes is
 "EBADF 	 The FileDescriptor parameter is not a valid file descriptor
open for writing."

Java can't do much if the underlying OS doesn't support it, so it
looks like we need to open for writing to sync.

-Yonik

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message