On Fri, May 14, 2010 at 11:16:43AM -0700, Jeremy Allison wrote: > On Fri, May 14, 2010 at 06:46:53PM +0100, Jamie Lokier wrote: > > > I think you can delete open files on Windows nowadays, if they are > > opened with a particular flag. > > You can only mark them as "to be deleted" once the last opener > closes. They still exist in the namespace. So, I'm a little lost: in your opinion, would leases be more useful to Samba if they were broken on delete, or if they weren't, or does it not matter because you'll never do that? (And, what about the same question for rename, link, chmod, chown, ...?) I see three options: 1. modify the existing file lease behavior to match what NFSv4 (and Samba?) needs; or 2. leave the existing leases alone and create some new lock type (or otherwise flag some leases somehow) that does what we want; and, if we do that, either: 2a. leave the new leases in-kernel-only, or 2b. expose the new leases to userspace somehow so Samba (or whever) can use them. I don't think any of 1, 2a, or 2b is likely to be harder than any other, so it's just a question of what we want. --b. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html