linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Volker Lendecke <Volker.Lendecke@SerNet.DE>
To: Anton Altaparmakov <aia21@cam.ac.uk>
Cc: linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	Steve French <smfrench@gmail.com>,
	"Amit K. Arora" <aarora@linux.vnet.ibm.com>,
	linux-cifs-client@lists.samba.org,
	samba-technical@lists.samba.org
Subject: Re: punching holes in files
Date: Fri, 2 Nov 2007 08:30:33 +0100	[thread overview]
Message-ID: <E1Inqxy-0001Zh-Ta@intern.SerNet.DE> (raw)
In-Reply-To: <78575072-8117-4B73-9843-5A35C9F6F18F@cam.ac.uk>


[-- Attachment #1.1: Type: text/plain, Size: 969 bytes --]

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 #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 172 bytes --]

_______________________________________________
linux-cifs-client mailing list
linux-cifs-client@lists.samba.org
https://lists.samba.org/mailman/listinfo/linux-cifs-client

  reply	other threads:[~2007-11-02  7:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01 19:16 punching holes in files Steve French
2007-11-01 23:17 ` Anton Altaparmakov
2007-11-02  7:30   ` Volker Lendecke [this message]
2007-11-03  0:43 ` Large SMBwriteX testing Jeremy Allison
2007-11-07 22:56   ` Steve French

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Inqxy-0001Zh-Ta@intern.SerNet.DE \
    --to=volker.lendecke@sernet.de \
    --cc=aarora@linux.vnet.ibm.com \
    --cc=aia21@cam.ac.uk \
    --cc=linux-cifs-client@lists.samba.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=samba-technical@lists.samba.org \
    --cc=smfrench@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).