Erlang/OTP Forums

Author Message

<  Erlang patches mailing list  ~  ms/file-exclusive-mode

Guest
Posted: Tue Jun 01, 2010 1:41 pm Reply with quote
Guest
git fetch git://github.com/bjorng/otp.git ms/file-exclusive-mode

We will probably graduate this branch (after testing it
on more platforms), but with the following addition
to the documentation:

diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml
index eed92d2..640137a 100644
--- a/lib/kernel/doc/src/file.xml
+++ b/lib/kernel/doc/src/file.xml
@@ -616,6 +616,11 @@ f.txt: {person, "kalle", 25}.
<p>The file, when opened for writing, is created if it
does not exist. If the file exists, open will return
<c>{error, eexist}</c>.</p>
+ <warning><p>This option does not guarantee exclusiveness on
+ file systems that do not support O_EXCL properly,
+ such as NFS. Do not depend on this option unless you
+ know that the file system support its (in general, local
+ file systems should be safe).</p></warning>
</item>
<tag><c>raw</c></tag>
<item>

Is that OK?

--
Björn Gustavsson, Erlang/OTP, Ericsson AB

________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Tue Jun 01, 2010 1:41 pm Reply with quote
Guest
git fetch git://github.com/bjorng/otp.git ms/file-exclusive-mode

We will probably graduate this branch (after testing it
on more platforms), but with the following addition
to the documentation:

diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml
index eed92d2..640137a 100644
--- a/lib/kernel/doc/src/file.xml
+++ b/lib/kernel/doc/src/file.xml
@@ -616,6 +616,11 @@ f.txt: {person, "kalle", 25}.
<p>The file, when opened for writing, is created if it
does not exist. If the file exists, open will return
<c>{error, eexist}</c>.</p>
+ <warning><p>This option does not guarantee exclusiveness on
+ file systems that do not support O_EXCL properly,
+ such as NFS. Do not depend on this option unless you
+ know that the file system support its (in general, local
+ file systems should be safe).</p></warning>
</item>
<tag><c>raw</c></tag>
<item>

Is that OK?

--
Björn Gustavsson, Erlang/OTP, Ericsson AB

________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Tue Jun 01, 2010 2:03 pm Reply with quote
Guest
On Tue, Jun 01, 2010 at 03:40:40PM +0200, Bj??rn Gustavsson wrote:
> git fetch git://github.com/bjorng/otp.git ms/file-exclusive-mode
>
> We will probably graduate this branch (after testing it
> on more platforms), but with the following addition
> to the documentation:
>
> diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml
> index eed92d2..640137a 100644
> --- a/lib/kernel/doc/src/file.xml
> +++ b/lib/kernel/doc/src/file.xml
> @@ -616,6 +616,11 @@ f.txt: {person, "kalle", 25}.
> <p>The file, when opened for writing, is created if it
> does not exist. If the file exists, open will return
> <c>{error, eexist}</c>.</p>
> + <warning><p>This option does not guarantee exclusiveness on
> + file systems that do not support O_EXCL properly,
> + such as NFS. Do not depend on this option unless you
> + know that the file system support its (in general, local
> + file systems should be safe).</p></warning>
> </item>
> <tag><c>raw</c></tag>
> <item>
>
> Is that OK?

That is much better, thanks! One small typo: "support its" should be
"supports it".



________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Tue Jun 01, 2010 2:03 pm Reply with quote
Guest
On Tue, Jun 01, 2010 at 03:40:40PM +0200, Bj??rn Gustavsson wrote:
> git fetch git://github.com/bjorng/otp.git ms/file-exclusive-mode
>
> We will probably graduate this branch (after testing it
> on more platforms), but with the following addition
> to the documentation:
>
> diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml
> index eed92d2..640137a 100644
> --- a/lib/kernel/doc/src/file.xml
> +++ b/lib/kernel/doc/src/file.xml
> @@ -616,6 +616,11 @@ f.txt: {person, "kalle", 25}.
> <p>The file, when opened for writing, is created if it
> does not exist. If the file exists, open will return
> <c>{error, eexist}</c>.</p>
> + <warning><p>This option does not guarantee exclusiveness on
> + file systems that do not support O_EXCL properly,
> + such as NFS. Do not depend on this option unless you
> + know that the file system support its (in general, local
> + file systems should be safe).</p></warning>
> </item>
> <tag><c>raw</c></tag>
> <item>
>
> Is that OK?

That is much better, thanks! One small typo: "support its" should be
"supports it".



________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Wed Jun 02, 2010 7:20 am Reply with quote
Guest
On Tue, Jun 01, 2010 at 10:02:46AM -0400, Michael Santos wrote:
> On Tue, Jun 01, 2010 at 03:40:40PM +0200, Bj??rn Gustavsson wrote:
> > git fetch git://github.com/bjorng/otp.git ms/file-exclusive-mode
> >
> > We will probably graduate this branch (after testing it
> > on more platforms), but with the following addition
> > to the documentation:
> >
> > diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml
> > index eed92d2..640137a 100644
> > --- a/lib/kernel/doc/src/file.xml
> > +++ b/lib/kernel/doc/src/file.xml
> > @@ -616,6 +616,11 @@ f.txt: {person, "kalle", 25}.
> > <p>The file, when opened for writing, is created if it
> > does not exist. If the file exists, open will return
> > <c>{error, eexist}</c>.</p>
> > + <warning><p>This option does not guarantee exclusiveness on
> > + file systems that do not support O_EXCL properly,
> > + such as NFS. Do not depend on this option unless you
> > + know that the file system support its (in general, local
> > + file systems should be safe).</p></warning>
> > </item>
> > <tag><c>raw</c></tag>
> > <item>
> >
> > Is that OK?
>
> That is much better, thanks! One small typo: "support its" should be
> "supports it".

I will --amend that to Bj
Guest
Posted: Wed Jun 02, 2010 7:21 am Reply with quote
Guest
On Tue, Jun 01, 2010 at 10:02:46AM -0400, Michael Santos wrote:
> On Tue, Jun 01, 2010 at 03:40:40PM +0200, Bj??rn Gustavsson wrote:
> > git fetch git://github.com/bjorng/otp.git ms/file-exclusive-mode
> >
> > We will probably graduate this branch (after testing it
> > on more platforms), but with the following addition
> > to the documentation:
> >
> > diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml
> > index eed92d2..640137a 100644
> > --- a/lib/kernel/doc/src/file.xml
> > +++ b/lib/kernel/doc/src/file.xml
> > @@ -616,6 +616,11 @@ f.txt: {person, "kalle", 25}.
> > <p>The file, when opened for writing, is created if it
> > does not exist. If the file exists, open will return
> > <c>{error, eexist}</c>.</p>
> > + <warning><p>This option does not guarantee exclusiveness on
> > + file systems that do not support O_EXCL properly,
> > + such as NFS. Do not depend on this option unless you
> > + know that the file system support its (in general, local
> > + file systems should be safe).</p></warning>
> > </item>
> > <tag><c>raw</c></tag>
> > <item>
> >
> > Is that OK?
>
> That is much better, thanks! One small typo: "support its" should be
> "supports it".

I will --amend that to Bj

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum