Re: punching holes in files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!

Volker

Attachment: pgpl7kfdnY3NL.pgp
Description: PGP signature


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux