lkml.org 
[lkml]   [2002]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Writing files to remote storage
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.030 / U:9.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site