[PATCHSET] support FSCTL_DUPLICATE_EXTENTS_TO_FILE

Ralph Böhme slow at samba.org
Mon May 8 14:29:30 UTC 2017


On Mon, May 08, 2017 at 04:01:16PM +0200, David Disseldorp wrote:
> On Mon, 8 May 2017 11:05:38 +0200, Ralph Böhme wrote:
> 
> > On Mon, May 08, 2017 at 02:22:11AM +0200, David Disseldorp wrote:
> > > Thanks a lot for the review, Ralph!
> > > 
> > > Please find a version 2 patchset attached. Further comments below...  
> > 
> > better, but now it has a memory leak. :)
> 
> Ah, I take it you mean the free of the subreq before it's cleaned up by
> the parent req. Following convention we should then also do the same in
> smb2_ioctl_filesys_dup_extents_done().

You mean like in the convention of avoiding memory leaks? Yes! :)

> > Fix for that and an additional fixup attached.
> 
> Looks good - please find one further patch attached, which I'll squash
> in if you're okay with it.

lgtm. Can you please send the final patchset so I can take a final look?

> > > > I don't see clone-range on the wire, trace attached. Am I missing something?  
> > > 
> > > Interesting, thanks for checking this. I've been using the cifs.ko
> > > client until now.  
> > 
> > ah, ok. Which kernel version do I need? I have 4.10.13-200.fc25.x86_64
> 
> It went in with 02b1666544c08e245cb4e2253ed575f8128943d6, which was
> first carried in 4.2, so cp --reflink should trigger it on your system.

ah, great. Thanks!

-slow



More information about the samba-technical mailing list