On Tue, Jan 07, 2025 at 12:37:20AM -0800, Christoph Hellwig wrote: > On Mon, Jan 06, 2025 at 11:04:59PM -0800, Darrick J. Wong wrote: > > I get this funny feeling that a lot of programs might like to lease > > space and get told by the kernel when someone wants/took it back. > > Swapfiles and lilo ftw. > > Well, for swapfiles we can't really take them back. Similarly the lilo > model is just broken as any chance of the mapping would actually require > re-installing the boot load in the boot block pointing to the blocks. I bet the rdma users might like a lease that can't be taken back. We /did/ talk a hojillion years ago at LSFMM about having a type of lease that expires when someone tries to change the file; and a different type of lease that can't expire but causes file operations to error out. OTOH it's not like I've ever tried to solve this problem. :P --D