public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* An nfs question ftruncate vs. pwrite
@ 2005-12-07 20:39 Kenny Simpson
  2005-12-07 21:12 ` Peter Staubach
  0 siblings, 1 reply; 2+ messages in thread
From: Kenny Simpson @ 2005-12-07 20:39 UTC (permalink / raw)
  To: linux-kernel

When a file that is opened with normal flags (O_RDWR|O_CREAT|O_TRUNC|O_LARGEFILE) is on NFS, and
it is exteded via ftruncate, the new expty pages get read back from the server before the system
call returns:
  (from strace -T):
ftruncate64(3, 41943040)                = 0 <0.063866>


-Kenny



		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


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

* Re: An nfs question ftruncate vs. pwrite
  2005-12-07 20:39 An nfs question ftruncate vs. pwrite Kenny Simpson
@ 2005-12-07 21:12 ` Peter Staubach
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Staubach @ 2005-12-07 21:12 UTC (permalink / raw)
  To: Kenny Simpson; +Cc: linux-kernel

Kenny Simpson wrote:

>When a file that is opened with normal flags (O_RDWR|O_CREAT|O_TRUNC|O_LARGEFILE) is on NFS, and
>it is exteded via ftruncate, the new expty pages get read back from the server before the system
>call returns:
>  (from strace -T):
>ftruncate64(3, 41943040)                = 0 <0.063866>
>

Is there a question in there?

If the question is whether the new empty pages get read in from the
server before the ftruncate system call returns, then no, they do not.
They get read in from the server as required in the normal course of
future operations.

    Thanx...

       ps

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

end of thread, other threads:[~2005-12-07 21:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-07 20:39 An nfs question ftruncate vs. pwrite Kenny Simpson
2005-12-07 21:12 ` Peter Staubach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox