Preallocated file size...

Cole, Timothy D. timothy_d_cole at md.northgrum.com
Tue Feb 8 18:16:44 GMT 2000


> -----Original Message-----
> From:	David Collier-Brown [SMTP:davecb at canada.sun.com]
> Sent:	Tuesday, February 08, 2000 12:57
> To:	Multiple recipients of list SAMBA-TECHNICAL
> Subject:	Re: Preallocated file size...
> 
> "Luis Claudio R. Goncalves" wrote:
> >     Following this message there's a little patch that "corrects" a
> weird
> > behavior (or feature) of reply.c - at least in Linux and Solaris boxes.
> >     If you're writing a file in the disk and you reach the quota roof,
> the
> > file will be truncated and zero filled 'till its nominal size - it isn't
> > a Samba problem, it's a filesystem feature. 
> 
> 	Oy! I don't think I like that (:-))
> 
> 	Could you clarify slightly?  I would expect
> 	the file to be truncated, at the limit of the
> 	quota (or of the physical disk), but I don't
> 	grok the zero-filled part.
> 	Do you mean if I ask for 4 KB and only have one
> 	left, I get 1 KB of data and 3 KB of nulls?
> 
	No, it means that if you ask for 4KB, the file length is set to 4KB,
and you get 0KB, until such time as you actually try to write to it.  Blocks
are allocated on an as-needed basis.  This is standard POSIX behavior.



More information about the samba-technical mailing list