18c2ecf20Sopenharmony_ciWhat:		/sys/block/rnbd<N>/rnbd/unmap_device
28c2ecf20Sopenharmony_ciDate:		Feb 2020
38c2ecf20Sopenharmony_ciKernelVersion:	5.7
48c2ecf20Sopenharmony_ciContact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
58c2ecf20Sopenharmony_ciDescription:	To unmap a volume, "normal" or "force" has to be written to:
68c2ecf20Sopenharmony_ci		/sys/block/rnbd<N>/rnbd/unmap_device
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci		When "normal" is used, the operation will fail with EBUSY if any process
98c2ecf20Sopenharmony_ci		is using the device.  When "force" is used, the device is also unmapped
108c2ecf20Sopenharmony_ci		when device is in use.  All I/Os that are in progress will fail.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci		Example::
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci		  # echo "normal" > /sys/block/rnbd0/rnbd/unmap_device
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciWhat:		/sys/block/rnbd<N>/rnbd/state
178c2ecf20Sopenharmony_ciDate:		Feb 2020
188c2ecf20Sopenharmony_ciKernelVersion:	5.7
198c2ecf20Sopenharmony_ciContact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
208c2ecf20Sopenharmony_ciDescription:	The file contains the current state of the block device. The state file
218c2ecf20Sopenharmony_ci		returns "open" when the device is successfully mapped from the server
228c2ecf20Sopenharmony_ci		and accepting I/O requests. When the connection to the server gets
238c2ecf20Sopenharmony_ci		disconnected in case of an error (e.g. link failure), the state file
248c2ecf20Sopenharmony_ci		returns "closed" and all I/O requests submitted to it will fail with -EIO.
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciWhat:		/sys/block/rnbd<N>/rnbd/session
278c2ecf20Sopenharmony_ciDate:		Feb 2020
288c2ecf20Sopenharmony_ciKernelVersion:	5.7
298c2ecf20Sopenharmony_ciContact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
308c2ecf20Sopenharmony_ciDescription:	RNBD uses RTRS session to transport the data between client and
318c2ecf20Sopenharmony_ci		server.  The entry "session" contains the name of the session, that
328c2ecf20Sopenharmony_ci		was used to establish the RTRS session.  It's the same name that
338c2ecf20Sopenharmony_ci		was passed as server parameter to the map_device entry.
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciWhat:		/sys/block/rnbd<N>/rnbd/mapping_path
368c2ecf20Sopenharmony_ciDate:		Feb 2020
378c2ecf20Sopenharmony_ciKernelVersion:	5.7
388c2ecf20Sopenharmony_ciContact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
398c2ecf20Sopenharmony_ciDescription:	Contains the path that was passed as "device_path" to the map_device
408c2ecf20Sopenharmony_ci		operation.
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciWhat:		/sys/block/rnbd<N>/rnbd/access_mode
438c2ecf20Sopenharmony_ciDate:		Feb 2020
448c2ecf20Sopenharmony_ciKernelVersion:	5.7
458c2ecf20Sopenharmony_ciContact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
468c2ecf20Sopenharmony_ciDescription:	Contains the device access mode: ro, rw or migration.
47