18c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/add
28c2ecf20Sopenharmony_ciDate:		Oct, 2010
38c2ecf20Sopenharmony_ciKernelVersion:	v2.6.37
48c2ecf20Sopenharmony_ciContact:	Sage Weil <sage@newdream.net>
58c2ecf20Sopenharmony_ciDescription:
68c2ecf20Sopenharmony_ci		(WO) Add rbd block device.
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci		Usage: <mon ip addr> <options> <pool name> <rbd image name> [<snap name>]
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci		Example::
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci		 $ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci		The snapshot name can be "-" or omitted to map the image
158c2ecf20Sopenharmony_ci		read/write. A <dev-id> will be assigned for any registered block
168c2ecf20Sopenharmony_ci		device. If snapshot is used, it will be mapped read-only.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/remove
208c2ecf20Sopenharmony_ciDate:		Oct, 2010
218c2ecf20Sopenharmony_ciKernelVersion:	v2.6.37
228c2ecf20Sopenharmony_ciContact:	Sage Weil <sage@newdream.net>
238c2ecf20Sopenharmony_ciDescription:
248c2ecf20Sopenharmony_ci		(WO) Remove rbd block device.
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci		Usage: <dev-id> [force]
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci		Example::
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci		 $ echo 2 > /sys/bus/rbd/remove
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci		Optional "force" argument which when passed will wait for
338c2ecf20Sopenharmony_ci		running requests and then unmap the image. Requests sent to the
348c2ecf20Sopenharmony_ci		driver after initiating the removal will be failed. (August
358c2ecf20Sopenharmony_ci		2016, since 4.9.)
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/add_single_major
398c2ecf20Sopenharmony_ciDate:		Dec, 2013
408c2ecf20Sopenharmony_ciKernelVersion:	v3.14
418c2ecf20Sopenharmony_ciContact:	Sage Weil <sage@newdream.net>
428c2ecf20Sopenharmony_ciDescription:
438c2ecf20Sopenharmony_ci		(WO) Available only if rbd module is inserted with single_major
448c2ecf20Sopenharmony_ci		parameter set to true.
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ci		Usage is the same as for /sys/bus/rbd/add. If present, this
478c2ecf20Sopenharmony_ci		should be used instead of the latter: any attempts to use
488c2ecf20Sopenharmony_ci		/sys/bus/rbd/add if /sys/bus/rbd/add_single_major is available
498c2ecf20Sopenharmony_ci		will fail for backwards compatibility reasons.
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/remove_single_major
538c2ecf20Sopenharmony_ciDate:		Dec, 2013
548c2ecf20Sopenharmony_ciKernelVersion:	v3.14
558c2ecf20Sopenharmony_ciContact:	Sage Weil <sage@newdream.net>
568c2ecf20Sopenharmony_ciDescription:
578c2ecf20Sopenharmony_ci		(WO) Available only if rbd module is inserted with single_major
588c2ecf20Sopenharmony_ci		parameter set to true.
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci		Usage is the same as for /sys/bus/rbd/remove. If present, this
618c2ecf20Sopenharmony_ci		should be used instead of the latter: any attempts to use
628c2ecf20Sopenharmony_ci		/sys/bus/rbd/remove if /sys/bus/rbd/remove_single_major is
638c2ecf20Sopenharmony_ci		available will fail for backwards compatibility reasons.
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/supported_features
678c2ecf20Sopenharmony_ciDate:		Mar, 2017
688c2ecf20Sopenharmony_ciKernelVersion:	v4.11
698c2ecf20Sopenharmony_ciContact:	Sage Weil <sage@newdream.net>
708c2ecf20Sopenharmony_ciDescription:
718c2ecf20Sopenharmony_ci		(RO) Displays the features supported by the rbd module so that
728c2ecf20Sopenharmony_ci		userspace can generate meaningful error messages and spell out
738c2ecf20Sopenharmony_ci		unsupported features that need to be disabled.
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/size
778c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/major
788c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/client_id
798c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/pool
808c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/name
818c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/refresh
828c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/current_snap
838c2ecf20Sopenharmony_ciDate:		Oct, 2010
848c2ecf20Sopenharmony_ciKernelVersion:	v2.6.37
858c2ecf20Sopenharmony_ciContact:	Sage Weil <sage@newdream.net>
868c2ecf20Sopenharmony_ciDescription:
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci		==============	================================================
898c2ecf20Sopenharmony_ci		size		(RO) The size (in bytes) of the mapped block
908c2ecf20Sopenharmony_ci				device.
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ci		major		(RO) The block device major number.
938c2ecf20Sopenharmony_ci
948c2ecf20Sopenharmony_ci		client_id	(RO) The ceph unique client id that was assigned
958c2ecf20Sopenharmony_ci				for this specific session.
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci		pool		(RO) The name of the storage pool where this rbd
988c2ecf20Sopenharmony_ci				image resides. An rbd image name is unique
998c2ecf20Sopenharmony_ci				within its pool.
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ci		name		(RO) The name of the rbd image.
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ci		refresh		(WO) Writing to this file will reread the image
1048c2ecf20Sopenharmony_ci				header data and set all relevant data structures
1058c2ecf20Sopenharmony_ci				accordingly.
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci		current_snap	(RO) The current snapshot for which the device
1088c2ecf20Sopenharmony_ci				is mapped.
1098c2ecf20Sopenharmony_ci		==============	================================================
1108c2ecf20Sopenharmony_ci
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/pool_id
1138c2ecf20Sopenharmony_ciDate:		Jul, 2012
1148c2ecf20Sopenharmony_ciKernelVersion:	v3.6
1158c2ecf20Sopenharmony_ciContact:	Sage Weil <sage@newdream.net>
1168c2ecf20Sopenharmony_ciDescription:
1178c2ecf20Sopenharmony_ci		(RO) The unique identifier for the rbd image's pool. This is a
1188c2ecf20Sopenharmony_ci		permanent attribute of the pool. A pool's id will never change.
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/image_id
1228c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/features
1238c2ecf20Sopenharmony_ciDate:		Oct, 2012
1248c2ecf20Sopenharmony_ciKernelVersion:	v3.7
1258c2ecf20Sopenharmony_ciContact:	Sage Weil <sage@newdream.net>
1268c2ecf20Sopenharmony_ciDescription:
1278c2ecf20Sopenharmony_ci		=========	===============================================
1288c2ecf20Sopenharmony_ci		image_id	(RO) The unique id for the rbd image. (For rbd
1298c2ecf20Sopenharmony_ci				image format 1 this is empty.)
1308c2ecf20Sopenharmony_ci
1318c2ecf20Sopenharmony_ci		features	(RO) A hexadecimal encoding of the feature bits
1328c2ecf20Sopenharmony_ci				for this image.
1338c2ecf20Sopenharmony_ci		=========	===============================================
1348c2ecf20Sopenharmony_ci
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/parent
1378c2ecf20Sopenharmony_ciDate:		Nov, 2012
1388c2ecf20Sopenharmony_ciKernelVersion:	v3.8
1398c2ecf20Sopenharmony_ciContact:	Sage Weil <sage@newdream.net>
1408c2ecf20Sopenharmony_ciDescription:
1418c2ecf20Sopenharmony_ci		(RO) Information identifying the chain of parent images in a
1428c2ecf20Sopenharmony_ci		layered rbd image. Entries are separated by empty lines.
1438c2ecf20Sopenharmony_ci
1448c2ecf20Sopenharmony_ci
1458c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/minor
1468c2ecf20Sopenharmony_ciDate:		Dec, 2013
1478c2ecf20Sopenharmony_ciKernelVersion:	v3.14
1488c2ecf20Sopenharmony_ciContact:	Sage Weil <sage@newdream.net>
1498c2ecf20Sopenharmony_ciDescription:
1508c2ecf20Sopenharmony_ci		(RO) The block device minor number.
1518c2ecf20Sopenharmony_ci
1528c2ecf20Sopenharmony_ci
1538c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/snap_id
1548c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/config_info
1558c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/cluster_fsid
1568c2ecf20Sopenharmony_ciWhat:		/sys/bus/rbd/devices/<dev-id>/client_addr
1578c2ecf20Sopenharmony_ciDate:		Aug, 2016
1588c2ecf20Sopenharmony_ciKernelVersion:	v4.9
1598c2ecf20Sopenharmony_ciContact:	Sage Weil <sage@newdream.net>
1608c2ecf20Sopenharmony_ciDescription:
1618c2ecf20Sopenharmony_ci		============	================================================
1628c2ecf20Sopenharmony_ci		snap_id		(RO) The current snapshot's id.
1638c2ecf20Sopenharmony_ci
1648c2ecf20Sopenharmony_ci		config_info	(RO) The string written into
1658c2ecf20Sopenharmony_ci				/sys/bus/rbd/add{,_single_major}.
1668c2ecf20Sopenharmony_ci
1678c2ecf20Sopenharmony_ci		cluster_fsid	(RO) The ceph cluster UUID.
1688c2ecf20Sopenharmony_ci
1698c2ecf20Sopenharmony_ci		client_addr	(RO) The ceph unique client
1708c2ecf20Sopenharmony_ci				entity_addr_t (address + nonce). The format is
1718c2ecf20Sopenharmony_ci				<address>:<port>/<nonce>: '1.2.3.4:1234/5678' or
1728c2ecf20Sopenharmony_ci				'[1:2:3:4:5:6:7:8]:1234/5678'.
1738c2ecf20Sopenharmony_ci		============	================================================
174