linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Q. NFS, return value of close(2)
@ 2010-08-11 15:36 J. R. Okajima
  2010-08-11 16:31 ` Trond Myklebust
  0 siblings, 1 reply; 5+ messages in thread
From: J. R. Okajima @ 2010-08-11 15:36 UTC (permalink / raw)
  To: Trond.Myklebust; +Cc: linux-fsdevel


By the commit af7fa16 "NFS: Fix up the fsync code", close(2) seems to
return the non-zero value even if it goes well, eg. the number of page via

nfs_file_flush()
vfs_fsync()
nfs_file_fsync()
nfs_commit_inode()
nfs_scan_commit()
nfs_scan_list()

Should nfs_file_fsync() return 0 when "status" is positive?

{
	status = nfs_commit_inode(inode, FLUSH_SYNC);
		;;;
-	if (!ret)
+	if (!ret && status < 0)
		ret = status;
}


J. R. Okajima

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-13 12:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-11 15:36 Q. NFS, return value of close(2) J. R. Okajima
2010-08-11 16:31 ` Trond Myklebust
2010-08-11 17:04   ` J. R. Okajima
2010-08-11 17:06     ` Trond Myklebust
2010-08-13 12:25       ` Milan Broz

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).