From: rick@snowhite.cis.uoguelph.ca
Date: 10/31/01-03:07:41 PM Z
From: rick@snowhite.cis.uoguelph.ca Date: Wed, 31 Oct 2001 16:07:41 -0500 (EST) Message-Id: <200110312107.QAA02611@snowhite.cis.uoguelph.ca> Subject: help re: V4 locking Help... I've finally gotten to the stage where I'm trying to implement the locking part of V4 (I've been avoiding this for quite a while:-) and after looking at the spec, I'm basically confused. So here are some pretty basic questions that someone might be willing to answer: 1 - Does a stateid refer to a lock owner or a <lock_owner,file_lock>? (In one place, the spec mentions "a stateid is a shorthand for a lock owner", in others it seems to imply it refers to a specific lock for an owner.) 2 - Why is a stateid an argument to the LOCK subop and where has it come from? (Is it assumed that an OPEN has happened first?) 3 - What stateid is returned by LOCK, LOCKU? (Is it just the stateid that was provided as an argument, so the client can verify which succeeded or is it meant to be a new one that represents updated lock state?) Anyhow, thanks in advance for any help, rick ps: If there is some supporting doc that explains this, please let me know.
This archive was generated by hypermail 2.1.2 : 03/04/05-01:49:19 AM Z CST