^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/class/rnbd-server
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: Feb 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 5.7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description: provide information about RNBD-server.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) What: /sys/class/rnbd-server/ctl/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) Date: Feb 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) KernelVersion: 5.7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) Description: When a client maps a device, a directory entry with the name of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) block device is created under /sys/class/rnbd-server/ctl/devices/.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) What: /sys/class/rnbd-server/ctl/devices/<device_name>/block_dev
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Date: Feb 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) KernelVersion: 5.7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Description: Is a symlink to the sysfs entry of the exported device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) block_dev -> ../../../../class/block/ram0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) What: /sys/class/rnbd-server/ctl/devices/<device_name>/sessions/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Date: Feb 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) KernelVersion: 5.7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) Description: For each client a particular device is exported to, following directory will be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) created:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) /sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) When the device is unmapped by that client, the directory will be removed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) What: /sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/read_only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) Date: Feb 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) KernelVersion: 5.7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) Description: Contains '1' if device is mapped read-only, otherwise '0'.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) What: /sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/mapping_path
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) Date: Feb 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) KernelVersion: 5.7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) Description: Contains the relative device path provided by the user during mapping.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) What: /sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/access_mode
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) Date: Feb 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) KernelVersion: 5.7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) Description: Contains the device access mode: ro, rw or migration.