From: "rob pike" <rob@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] 9p2k, fsync
Date: Thu, 8 Feb 2001 01:26:19 -0500 [thread overview]
Message-ID: <20010208062621.A6F2719A02@mail.cse.psu.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 151 bytes --]
No one here said, ``the file server will take care of it''. What we're
saying is that the file server must take care of it if anyone will.
-rob
[-- Attachment #2: Type: message/rfc822, Size: 3081 bytes --]
From: Dan Cross <cross@math.psu.edu>
To: 9fans@cse.psu.edu
Cc:
Subject: Re: [9fans] 9p2k, fsync
Date: Thu, 8 Feb 2001 01:01:27 -0500 (EST)
Message-ID: <200102080601.BAA04455@augusta.math.psu.edu>
In article <200102080115.UAA26741@smtp1.fas.harvard.edu> you write:
>There are no asynchronous writes here.
Define asychronous in this context. There are no asychronous network
transactions, true, but that's not the same thing as an asychronous
write
>By the time the write(2) system call returns,
>the file server has acknowledged receipt of the data.
>At that point, it's the file server's business.
Not really; if my application depends on that data being on stable
storage, not just a RAM buffer, I could still be in trouble. The
scenarios are obvious, but the point is that I might have a real need
for this sort of thing, and ``the file server will take care of it''
isn't really good enough.
>Fsync is simultaneously too much and too little.
>People who care often care about making sure
>individual blocks are committed to storage, and fsync
>is the only hammer they have.
When the file is modeled as a stream of bytes, ie, the blocks are
abstracted away from me as the programmer, I'm not sure that hammer
isn't the only one appropriate for the nails I'm given.
>I'm sure that if there were a Tsync message in
>the protocol, it would suffer the same problem.
>Nine times out of ten it would be the wrong hammer.
Yeah, I won't disagree with you there, but that doesn't make it any
less useful. It's a choice between a hammer for both nails and screws,
or using my hands for both.
- Dan C.
(Of course, I'd use a skateboard truck instead of my hands, but you get
the idea. I had to do that once repairing a ramp. :-)
next reply other threads:[~2001-02-08 6:26 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-08 6:26 rob pike [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-02-09 0:08 nemo
2001-02-09 18:37 ` Boyd Roberts
2001-02-08 22:27 forsyth
2001-02-09 18:43 ` Boyd Roberts
2001-02-09 21:37 ` Boyd Roberts
2001-02-08 17:46 Paul Taysom
2001-02-08 21:49 ` Dan Cross
2001-02-08 14:03 nemo
2001-02-08 12:50 Laura Creighton
2001-02-08 20:03 ` Dan Cross
2001-02-08 6:24 rob pike
2001-02-08 22:08 ` Dan Cross
2001-02-08 1:32 rob pike
2001-02-08 5:43 ` Dan Cross
2001-02-08 1:15 Russ Cox
2001-02-08 6:01 ` Dan Cross
2001-02-08 7:28 ` Nikolai Saoukh
2001-02-09 17:32 ` Boyd Roberts
2001-02-10 2:06 ` Dan Cross
2001-02-07 19:14 jmk
2001-02-08 1:02 ` Dan Cross
[not found] <rob@plan9.bell-labs.com>
2001-02-07 15:23 ` rob pike
2001-02-07 18:42 ` Scott Schwartz
2001-02-08 1:19 ` Dan Cross
2001-02-08 9:43 ` Douglas A. Gwyn
2001-02-07 15:06 jmk
2001-02-07 18:16 ` Scott Schwartz
2001-02-09 17:15 ` Boyd Roberts
2001-02-07 7:05 Scott Schwartz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010208062621.A6F2719A02@mail.cse.psu.edu \
--to=rob@plan9.bell-labs.com \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).