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

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

 



On Thu, 2023-12-07 at 17:50 +0000, David Howells wrote:
> Jeremy Allison <jra@xxxxxxxxx> 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?
> 

I think you have to extend the protocol. You might be able to fix one
server to treat the two operations atomically, but there are tons of SMB
servers in the field. The client can't really depend that that will
always do the right thing.

-- 
Jeff Layton <jlayton@xxxxxxxxxx>





[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux