Re: [Nbd] Question about the expected behaviour of nbd-server for async ops
- To: Goswin von Brederlow <goswin-v-b@...186...>
- Cc: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] Question about the expected behaviour of nbd-server for async ops
- From: Wouter Verhelst <w@...112...>
- Date: Sun, 29 May 2011 19:54:35 +0200
- Message-id: <20110529175435.GG31747@...510...>
- In-reply-to: <87fwnxy8gi.fsf@...860...>
- References: <87oc2m28o7.fsf@...860...> <6DBA2A6208847F844397DB62@...873...> <87wrh9bz0c.fsf@...860...> <0F0AB0F66B196FBBE86999A5@...874...> <87fwnxy8gi.fsf@...860...>
On Sun, May 29, 2011 at 02:53:01PM +0200, Goswin von Brederlow wrote:
> > Yes. But it's more than that. If you write to a CoW based filing system,
> > fsync (and even fdatasync) will ensure the CoW metadata is also flushed
> > to the device, whereas sync_file_range won't. Without the CoW metadata
> > being written, the data itself is not really written.
>
> Which just means that a CoW based filing system or sparse files don't
> support FUA. The idea of a FUA is that it is cheaper than a FLUSH. But
> if nbd-server does fsync() in both cases then it is pointless to
> announce FUA support.
No, that's not entirely true. With a FLUSH, you need to ensure that
whatever the FLUSH would cover is flushed to disk; with a FUA, you need
to ensure the same thing for just one call, which is easier to do.
[...]
--
The volume of a pizza of thickness a and radius z can be described by
the following formula:
pi zz a
Reply to: