Can fallocate() ops be emulated better using SMB request compounding?

Steve French smfrench at gmail.com
Fri Dec 8 14:03:39 UTC 2023


> What do you think about the idea of having the server see a specifically
> arranged compounded pair and turn them into an op that can't otherwise be
> represented in the protocol?

That makes sense for some cases (open, queryinfo e.g.) and has been
done in the past for SMB3 servers.

On Thu, Dec 7, 2023 at 11:50 AM David Howells <dhowells at redhat.com> wrote:
>
> Jeremy Allison <jra at samba.org> wrote:
>
> > >Further, are the two ops then essentially done atomically?
> >
> > No. They are processed (at least in Samba) as two separate
> > requests and can be raced by local or other remote access.
>
> So just compounding them would leave us in the same situation we are in now -
> which would be fine.
>
> What do you think about the idea of having the server see a specifically
> arranged compounded pair and turn them into an op that can't otherwise be
> represented in the protocol?
>
> Or is it better to try and get the protocol extended?
>
> David
>


-- 
Thanks,

Steve



More information about the samba-technical mailing list