punching holes in files

Volker Lendecke Volker.Lendecke at SerNet.DE
Fri Nov 2 07:30:33 GMT 2007

On Thu, Nov 01, 2007 at 11:17:32PM +0000, Anton Altaparmakov wrote:
> On 1 Nov 2007, at 19:16, Steve French wrote:
> >madvise_remove (in Linux) is used to free the backing store associated
> >with pages (punching a hole in a file).   This is one of the vfs
> >operations that we do not send over the wire to Samba (so this call
> >would return -ENOSYS locally).   Any thoughts on whether this could be
> >done with an obscure SetFileInfo level or FCNTL or whether it is worth
> >adding to the CIFS POSIX Extensions?
> Don't know about SMB/CIFS but on Windows locally you would need to  
> first set the file sparse, and then to punch the hole.  These two  
> things are accomplished like so on Windows (STARTING_OFFSET is the  
> first byte of the hole to be punched and END_OFFSET is the first byte  
> after the hole to be punched):

It would be really great if you could try this with a file
on a Windows server and send us the sniffs!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20071102/a06a5614/attachment.bin

More information about the samba-technical mailing list