Re: Writing files to remote storage

Alan Cox (alan@lxorguk.ukuu.org.uk)
28 Aug 2002 15:18:42 +0100


On Wed, 2002-08-28 at 09:17, Kevin Liao wrote:
> If I mount a remote linux partition through smb or nfs and write one file to
> that partition. How could I make sure that that file is really written to
> the remote disk successfully? I know that some cache mechanisms existed in
> linux kernel. So I guess there may be two possibilities as below:

For NFS at least do an fsync(). Fsync should ensure the data hits the
server. Whether the server commits to stable storage is protocol and
configuration dependant (NFS says yes, some implementations fudge it)

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