Skip to contentSkip to conversation

Testing sm-notify

DISCUSSION Łukasz Oleś 2 participants 2 messages Jan 31, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

I am using nfs-utils version 1.2.3. I am trying to test sm-notify, I have 2 test scenarios:

First one:
1 server, 2 clients - client 1 locks file on nfs server, client 2 is trying to lock the same file and waiting. I'm restarting client 1, client 2 locks file. Everything works fine

Second:
1 server, 1 client - client locks file. I'm restarting server and client should relock file, but I don't know any program which can do it.

How do you testing this scenario? Can you recommend any program which can automaticly lock file again?

Regards,

--
Łukasz Oleś

#1 lore raw
Quoted 10 lines · Łukasz Oleś

Hello,

I am using nfs-utils version 1.2.3. I am trying to test sm-notify, I have 2 test scenarios:

First one:
1 server, 2 clients - client 1 locks file on nfs server, client 2 is trying to lock the same file and waiting. I'm restarting client 1, client 2 locks file. Everything works fine

Quoted 6 lines

Second:
1 server, 1 client - client locks file. I'm restarting server and client should relock file, but I don't know any program which can do it.

How do you testing this scenario? Can you recommend any program which can automaticly lock file again?

I don't understand the question.

One way to test that behavior is correct might be using 2 clients:
client 1 acquires lock, server reboots, then client 2 requests same lock after reboot. If client 1 managed to reacquire the lock during the grace period, then client 2's lock request should continue to block.

--b.