sysfs-class-rnbd-server 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. What: /sys/class/rnbd-server
  2. Date: Feb 2020
  3. KernelVersion: 5.7
  4. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  5. Description: provide information about RNBD-server.
  6. What: /sys/class/rnbd-server/ctl/
  7. Date: Feb 2020
  8. KernelVersion: 5.7
  9. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  10. Description: When a client maps a device, a directory entry with the name of the
  11. block device is created under /sys/class/rnbd-server/ctl/devices/.
  12. What: /sys/class/rnbd-server/ctl/devices/<device_name>/block_dev
  13. Date: Feb 2020
  14. KernelVersion: 5.7
  15. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  16. Description: Is a symlink to the sysfs entry of the exported device.
  17. Example:
  18. block_dev -> ../../../../class/block/ram0
  19. What: /sys/class/rnbd-server/ctl/devices/<device_name>/sessions/
  20. Date: Feb 2020
  21. KernelVersion: 5.7
  22. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  23. Description: For each client a particular device is exported to, following directory will be
  24. created:
  25. /sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/
  26. When the device is unmapped by that client, the directory will be removed.
  27. What: /sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/read_only
  28. Date: Feb 2020
  29. KernelVersion: 5.7
  30. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  31. Description: Contains '1' if device is mapped read-only, otherwise '0'.
  32. What: /sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/mapping_path
  33. Date: Feb 2020
  34. KernelVersion: 5.7
  35. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  36. Description: Contains the relative device path provided by the user during mapping.
  37. What: /sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/access_mode
  38. Date: Feb 2020
  39. KernelVersion: 5.7
  40. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  41. Description: Contains the device access mode: ro, rw or migration.
  42. What: /sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/force_close
  43. Date: Nov 2020
  44. KernelVersion: 5.10
  45. Contact: Jack Wang <[email protected]> Danil Kipnis <[email protected]>
  46. Description: Write "1" to the file to close the device on server side. Please
  47. note that the client side device will not be closed, read or
  48. write to the device will get -ENOTCONN.