From mboxrd@z Thu Jan 1 00:00:00 1970 From: Volker Lendecke Subject: Re: punching holes in files Date: Fri, 2 Nov 2007 08:30:33 +0100 Message-ID: References: <524f69650711011216s17cbc26ra337d70a0bde8d03@mail.gmail.com> <78575072-8117-4B73-9843-5A35C9F6F18F@cam.ac.uk> Reply-To: Volker.Lendecke@SerNet.DE Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2122342537==" Cc: linux-fsdevel , Steve French , "Amit K. Arora" , linux-cifs-client@lists.samba.org, samba-technical@lists.samba.org To: Anton Altaparmakov Return-path: In-Reply-To: <78575072-8117-4B73-9843-5A35C9F6F18F@cam.ac.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: linux-cifs-client-bounces+glfc-linux-cifs-client=gmane.org@lists.samba.org Errors-To: linux-cifs-client-bounces+glfc-linux-cifs-client=gmane.org@lists.samba.org List-Id: linux-fsdevel.vger.kernel.org --===============2122342537== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? >=20 > Don't know about SMB/CIFS but on Windows locally you would need to =20 > first set the file sparse, and then to punch the hole. These two =20 > things are accomplished like so on Windows (STARTING_OFFSET is the =20 > first byte of the hole to be punched and END_OFFSET is the first byte =20 > 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 --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFHKtIZUzqjrWwMRl0RApV8AKCWA4XZjsIAHC9p9BOcms0DIdDzdQCgjRV9 86eqUqHoLi6EYVDUdWBKfTE= =zTOd -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- --===============2122342537== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-cifs-client mailing list linux-cifs-client@lists.samba.org https://lists.samba.org/mailman/listinfo/linux-cifs-client --===============2122342537==--