Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Aug 2011 19:56:57 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        freebsd-fs@freebsd.org, onwahe@gmail.com
Subject:   Re: NFS calculation of max commit size
Message-ID:  <1075004291.300557.1313625417507.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <20110817135230.GW17489@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Just to correct myself...

- The NFS VOP_WRITE() can keep track of a running total of how many
  bytes is being written:
  - add uio_resid to this running total at the beginning of the VOP_WRITE()
    and subtract it back out at the end of VOP_WRITE().
This was incorrectly stated. The value should be subtracted back out when
the write rpc completes (ie. buffer has been flushed), since the running
total needs to be "how many unwritten NFS bytes are in the buffer cache".
At least that was what I was/am thinking...

rick



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1075004291.300557.1313625417507.JavaMail.root>