[3] That will be around 21:00 CET --
To post to this group, send email to zfs-...@googlegroups.com
To visit our Web site, click on http://zfs-fuse.net/
(see https://bugzilla.redhat.com/show_bug.cgi?id=313681)
*** zfs-fuse-0.6.9/src/zfs-fuse/util.c.orig Fri Jun 4 10:30:54 2010
--- zfs-fuse-0.6.9/src/zfs-fuse/util.c Fri Jun 4 10:29:34 2010
***************
*** 96,102 ****
--- 96,106 ----
* first byte; the file /must/ already exist. Only in this way can we
* prevent races with locking before or after the daemonization
*/
+ #ifdef O_CLOEXEC
lock_fd = open(LOCKFILE, O_WRONLY|O_CLOEXEC);
+ #else
+ lock_fd = open(LOCKFILE, O_WRONLY);
+ #endif
if(lock_fd == -1)
return -1;
Would that be acceptable?
Looking more closely at the issue, O_ATOMICLOOKUP vs O_CLOEXEC is
only an issue on early RHEL5.x released (it was fixed after 5.2, I
think).
My 2c,
Vincent
--
To post to this group, send email to zfs-...@googlegroups.com
To visit our Web site, click on http://zfs-fuse.net/
BYW, thanks guys for the hard work. It's great to have ZFS under Linux.
I ran into the O_CLOEXEC issue when I downloaded
http://zfs-fuse.net/releases/0.6.9/source-tarball.
So I don't know where it wasn't merged because I got it from the
tarball release. :) I have no idea if my fix is correct but zfs
0.6.9+patch appears to compile and work properly under RHEL5.5/x86_64
so far.
Best regards,
Vincent
--
To post to this group, send email to zfs-...@googlegroups.com
To visit our Web site, click on http://zfs-fuse.net/
I _have_ tried to run a 'tight' ship[0]. There are many things I have
chosen not to merge into testing.
We have been addressing just the issues mentioned on the list[1] during
the period of planning for 0.6.9
I personally think it is a good idea to fix it when it's found.
I do hope you are not confusing stabilizing changes with wild
experimentation :) I did stabilize some of your own 'wilder' (indulge
me...) changes as well. Still I'm thanking you for coming up with the
changes in the first place because - well, we all love to send|recv, for
example!
Cheers
[0] See e.g.
http://groups.google.com/group/zfs-fuse/msg/e53412ae15df1b99. The patch
for initialization order has only been pushed to testing _AFTER_ the fix
for lockfile behaviour was made and tested... Still the CLOEXEC is a
glitch, sorry
[1] except for a spurious old patch that I had lying around (dae0b2f8)
[2] Also, 6 commits before the last beta, which dates a full week back
is not what I call 'just before a release'