Hi Martin,

Fantastic -- it solved my problem with the corrupted object files.
Since the exports(5) manpage recommends using no_subtree_check for
rapidly changing filesystems anyway, this is not such a bad solution.

Thanks,

-- Gavrie
. 

> -----Original Message-----
> From: Martin Pool [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 28, 2003 5:18
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [distcc] Fw: [NFS] nfs/mmap/rename file corruption
> 
> 
> In summary: to make ccache work safely on an NFS filesystem, the
> filesystem must be exported with no_subtree_check.  Otherwise data can
> be lost when it renames recently-written files. :-(
> 
> 
> 
> ----------------------
> Begin forwarded message:
> 
> Date: 27 Aug 2003 21:37:38 -0400
> From: Trond Myklebust <[EMAIL PROTECTED]>
> To: Martin Pool <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [NFS] nfs/mmap/rename file corruption
> 
> 
> >>>>> " " == Martin Pool <[EMAIL PROTECTED]> writes:
> 
>      > - ccache runs distcc with output to a temporary file
>      >  - distcc opens, mmaps, writes to, munmaps, and closes the
> temporary     >    file
>      > - distcc exits
>      >  - ccache renames the temporary file to its proper location in
> the     >    ccache
>      > - ccache opens the file read only, and reads from it
> 
> Is this a rename from one directory to the other? If so, are you using
> the 'no_subtree_check' option on the server? Without the latter option
> enabled, I would indeed expect the behaviour that you describe.
> 
> Cheers,
>   Trond
> 
> 
> -- 
> Martin 
> __ 
> distcc mailing list            http://distcc.samba.org/
> To unsubscribe or change options: 
> http://lists.samba.org/cgi-bin/mailman/listinfo/distcc
> 
> 
__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
http://lists.samba.org/cgi-bin/mailman/listinfo/distcc

Reply via email to