lkml.org 
[lkml]   [2003]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Is there a "make hole" (truncate in middle) syscall?
Date
Hi Andreas,

On Thursday 11 December 2003 14:43, Andreas Dilger wrote:
> Presumably, if a filesystem didn't support a punch filesystem method
> (either because it is unimplemented or because the filesystem doesn't
> support holes) it would be implemented as either a truncate (if end is
> beyond i_size) or a series of zero writes instead.

It would be more regular and less surprising to make it semantically
equivalent to writing a string of zeros, that is, it will never truncate and
may extend a file.

Regards,

Daniel

-
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:59    [W:0.086 / U:0.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site