Lease keys and hardlinked files
Paulo Alcantara
pc at manguebit.com
Fri Dec 8 19:07:41 UTC 2023
Tom Talpey <tom at talpey.com> writes:
> On 12/8/2023 12:01 PM, Steve French wrote:
>> Following up on a question about hardlinks and caching data remotely,
>> I tried a simple experiment:
>>
>> 1) ln /mnt/hardlink1 /mnt/hardlink2
>> then
>> 2) echo "some data" >> /mnt/hardlink1
>> then
>> 3) echo "more stuff" >> /mnt/hardlink2
>>
>> I see the second open (ie the one to hardlink2) fail with
>> STATUS_INVALID_PARAMETER, presumably due to the lease key being reused
>> for the second open (for hardlink2) came from the first open (of
>
> Ok, so that is a client bug.
I guess Steve forgot to mention that the above only happens with the
patch applied.
More information about the samba-technical
mailing list