resizing slot tables for sessions

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

 



Hi,

I thought I'd post here instead of nfsv4@xxxxxxxx since I
think the Linux server has been implementing this recently.

I am not interested in making the FreeBSD NFSv4.1/4.2
server dynamically resize slot tables in sessions, but I do
want to make sure the FreeBSD handles this case correctly.

Here is what I believe is supposed to be done:
For growing the slot table...
- Server/replier sends SEQUENCE replies with both
   sr_highest_slot and sr_target_highest_slot set to a larger value.
--> The client can then use those slots with
      sa_sequenceid set to 1 for the first SEQUENCE operation on
      each of them.

For shrinking the slot table...
- Server/replier sends SEQUENCE replies with a smaller
  value for sr_target_highest_slot.
  - The server/replier waits for the client to do a SEQUENCE
     operation on one of the slot(s) where the server has replied
     with the smaller value for sr_target_highest_slot with a
     sa_highest_slot value <= to the new smaller
      sr_target_highest_slot
     - Once this happens, the server/replier can set sr_highest_slot
        to the lower value of sr_target_highest_slot and throw the
         slot table entries above that value away.
--> Once the client sees a reply with sr_target_highest_slot set
      to the lower value, it should not do any additional SEQUENCE
      operations with a sa_slotid > sr_target_highest_slot

Does the above sound correct?

Thanks for any information, rick




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux