Advertisement
ffilz

multilock interactive example

Oct 12th, 2017
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. Here is an interactive invocation of ml_console:
  2.  
  3. [root@localhost multilock]# ./ml_console -p 2050
  4. >
  5. Accept for socket 4
  6. >
  7. <UNKNOWN_4> 0 HELLO OK "C1"
  8.  
  9. And the interactive invocation of the C1 client:
  10.  
  11. [root@localhost multilock]# ./ml_posix_client -s localhost -p 2050 -n C1 -c /mnt4/test1
  12. server=localhost port=2050 name=C1
  13. connected to server localhost:2050
  14. 0 HELLO OK "C1"
  15.  
  16. and then an interactive open/create:
  17.  
  18. > C1 0 OPEN 0 rw creat OFD foo1
  19. >
  20. C1 0 OPEN OK 0 4
  21.  
  22. And what is seen on the client:
  23.  
  24. 0 HELLO OK "C1"
  25. 0 OPEN 0 rw create OFD "foo1"
  26. 0 OPEN OK 0 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement