Re: [patch] `cp /dev/zero /tmp' (patch against 2.2.9)

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 21 Jun 1999 13:04:29 +0100 (BST)


> I agree that currently fdatasync is just an alias for fsync. But the
> manpage seems a bit different:
>
> DESCRIPTION
> fdatasync flushes all data buffers of a file to disk
> (before the system call returns). It resembles fsync but
> is not required to update the metadata such as access
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> time.
> ^^^^

The SUS phrases this a lot more clearly for fdatasync

* For write, when the operation has been completed or diagnosed if
unsuccessful. The write is complete only when the data specified
in the write request is successfully transferred and all file
system information required to retrieve the data is successfully
transferred.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/