Note their is a bug when using OpenOffice on BSD read-only file system.
Linux seems to have the philosophy let it run no matter what, where as
BSD will report if it finds something wrong. This is seen in the use
of fnctl F_SETLK with OpenOffice in a read-only filesystem on a NetBSD
LiveCD. BSD says setting the lock does not make sense on a read-only
file system, and reports an error, where Linux just lets this go.
The quick hack patch I used is below, on file:
/usr/pkgsrc/misc/openoffice/work/store/source/fileunx.hxx
--- fileunx.hxx.orig 2003-08-15 04:53:11.000000000 -0700
+++ fileunx.hxx 2005-05-18 11:24:51.000000000 -0700
@@ -251,7 +251,7 @@
lock.l_start = 0;
lock.l_len = 0;
- if (::fcntl (rhFile, F_SETLK, &lock) < 0)
+ if ((::fcntl (rhFile, F_SETLK, &lock) < 0) && errno != EINVAL)
{
// Save original result.
storeError result;
Note the EINVAL could cover other cases, so I have not turned this in
to the OpenOffice people, as it may be to broad.
Because this was a message response I posted here, but might be better
on tech-pkg.
On Mon, 13 Jun 2005 02:17:39 +0200 (CEST)
Hubert Feyrer <hubert@feyrer.de> wrote:
| Martin Bligh | Re: Unified tracing buffer |
| Ingo Molnar | [announce] "kill the Big Kernel Lock (BKL)" tree |
| Con Kolivas | [PATCH] [RFC] sched: accurate user accounting |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Krzysztof Oledzki | Error: an inet prefix is expected rather than "0/0". |
| Wenji Wu | A Linux TCP SACK Question |
| Ramachandra K | [PATCH 11/13] QLogic VNIC: Driver utility file - implements various utility macros |
| Jay Cliburn | Re: atl1 64-bit => 32-bit DMA borkage (reproducible, bisected) |
git: | |
| Andrew Morton | Untracked working tree files |
| Pierre Habouzit | Re: libgit2 - a true git library |
| Nicolas Vilz 'niv' | git + ssh + key authentication feature-request |
| Martin Langhoff | Re: pack operation is thrashing my server |
| Steve B | SSH brute force attacks no longer being caught by PF rule |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| rancor | How to copy/pipe console buffert to file? |
| Richard Stallman | Real men don't attack straw men |
| Question on swap as ramdisk partition | 37 minutes ago | Linux kernel |
| Netfilter kernel module | 11 hours ago | Linux kernel |
| serial driver xmit problem | 13 hours ago | Linux kernel |
| Why Windows is better than Linux | 13 hours ago | Linux general |
| How can I see my kernel messages in vt12? | 20 hours ago | Linux kernel |
| Grub | 1 day ago | Linux general |
| vmalloc_fault handling in x86_64 | 1 day ago | Linux kernel |
| epoll_wait()ing on epoll FD | 1 day ago | Linux kernel |
| Framebuffer in x86_64 causes problems to multiseat | 1 day ago | Linux kernel |
| Difference between 2.4 and 2.6 regarding thread creation | 2 days ago | Linux general |
