lkml.org 
[lkml]   [2009]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT PULL] ocfs2 changes for 2.6.32


On Thu, 17 Sep 2009, Roland Dreier wrote:
>
> I guess one bit of semantics to figure out is what happens if copyfile()
> does the async case but then copyfile_ctrl() returns an error halfway
> through... is the state of the dest file just undefined?

I think that's the one that most filesystems would prefer. Maybe the file
is there, it's just that it's only half copied because the filesystem
filled up.

Making filesystems give atomicity guarantees would be hard for the async
case.

Of course, if the filesystem can do the copy entirely atomically (ie by
just incrementing a refcount), then it can give atomicity guarantees, but
then you'd never see the async case either.

Linus


\
 
 \ /
  Last update: 2009-10-18 23:28    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site