summaryrefslogtreecommitdiff
path: root/Documentation/ABI/testing/sysfs-class-rnbd-server
blob: ba60a90c0e45a355f7f9d5eff8076da2b41b4738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
What:		/sys/class/rnbd-server
Date:		Feb 2020
KernelVersion:	5.7
Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
Description:	provide information about RNBD-server.

What:		/sys/class/rnbd-server/ctl/
Date:		Feb 2020
KernelVersion:	5.7
Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
Description:	When a client maps a device, a directory entry with the name of the
		block device is created under /sys/class/rnbd-server/ctl/devices/.

What:		/sys/class/rnbd-server/ctl/devices/<device_name>/block_dev
Date:		Feb 2020
KernelVersion:	5.7
Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
Description:	Is a symlink to the sysfs entry of the exported device.

		Example:
		block_dev -> ../../../../class/block/ram0

What:		/sys/class/rnbd-server/ctl/devices/<device_name>/sessions/
Date:		Feb 2020
KernelVersion:	5.7
Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
Description:	For each client a particular device is exported to, following directory will be
		created:

		/sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/

		When the device is unmapped by that client, the directory will be removed.

What:		/sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/read_only
Date:		Feb 2020
KernelVersion:	5.7
Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
Description:	Contains '1' if device is mapped read-only, otherwise '0'.

What:		/sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/mapping_path
Date:		Feb 2020
KernelVersion:	5.7
Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
Description:	Contains the relative device path provided by the user during mapping.

What:		/sys/class/rnbd-server/ctl/devices/<device_name>/sessions/<session-name>/access_mode
Date:		Feb 2020
KernelVersion:	5.7
Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
Description:	Contains the device access mode: ro, rw or migration.