Skip to content

Commit 8dfb790

Browse files
committed
Merge tag 'ceph-for-4.9-rc1' of git://github.com/ceph/ceph-client
Pull Ceph updates from Ilya Dryomov: "The big ticket item here is support for rbd exclusive-lock feature, with maintenance operations offloaded to userspace (Douglas Fuller, Mike Christie and myself). Another block device bullet is a series fixing up layering error paths (myself). On the filesystem side, we've got patches that improve our handling of buffered vs dio write races (Neil Brown) and a few assorted fixes from Zheng. Also included a couple of random cleanups and a minor CRUSH update" * tag 'ceph-for-4.9-rc1' of git://github.com/ceph/ceph-client: (39 commits) crush: remove redundant local variable crush: don't normalize input of crush_ln iteratively libceph: ceph_build_auth() doesn't need ceph_auth_build_hello() libceph: use CEPH_AUTH_UNKNOWN in ceph_auth_build_hello() ceph: fix description for rsize and rasize mount options rbd: use kmalloc_array() in rbd_header_from_disk() ceph: use list_move instead of list_del/list_add ceph: handle CEPH_SESSION_REJECT message ceph: avoid accessing / when mounting a subpath ceph: fix mandatory flock check ceph: remove warning when ceph_releasepage() is called on dirty page ceph: ignore error from invalidate_inode_pages2_range() in direct write ceph: fix error handling of start_read() rbd: add rbd_obj_request_error() helper rbd: img_data requests don't own their page array rbd: don't call rbd_osd_req_format_read() for !img_data requests rbd: rework rbd_img_obj_exists_submit() error paths rbd: don't crash or leak on errors in rbd_img_obj_parent_read_full_callback() rbd: move bumping img_request refcount into rbd_obj_request_submit() rbd: mark the original request as done if stat request fails ...
2 parents fed41f7 + 64f7756 commit 8dfb790

File tree

26 files changed

+2031
-404
lines changed

26 files changed

+2031
-404
lines changed

Documentation/ABI/testing/sysfs-bus-rbd

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@ Description:
66

77
Being used for adding and removing rbd block devices.
88

9-
Usage: <mon ip addr> <options> <pool name> <rbd image name> [snap name]
9+
Usage: <mon ip addr> <options> <pool name> <rbd image name> [<snap name>]
1010

1111
$ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
1212

1313
The snapshot name can be "-" or omitted to map the image read/write. A <dev-id>
1414
will be assigned for any registered block device. If snapshot is used, it will
1515
be mapped read-only.
1616

17-
Removal of a device:
17+
Usage: <dev-id> [force]
1818

19-
$ echo <dev-id> > /sys/bus/rbd/remove
19+
$ echo 2 > /sys/bus/rbd/remove
20+
21+
Optional "force" argument which when passed will wait for running requests and
22+
then unmap the image. Requests sent to the driver after initiating the removal
23+
will be failed. (August 2016, since 4.9.)
2024

2125
What: /sys/bus/rbd/add_single_major
2226
Date: December 2013
@@ -43,10 +47,25 @@ Description: Available only if rbd module is inserted with single_major
4347
Entries under /sys/bus/rbd/devices/<dev-id>/
4448
--------------------------------------------
4549

50+
client_addr
51+
52+
The ceph unique client entity_addr_t (address + nonce).
53+
The format is <address>:<port>/<nonce>: '1.2.3.4:1234/5678' or
54+
'[1:2:3:4:5:6:7:8]:1234/5678'. (August 2016, since 4.9.)
55+
4656
client_id
4757

4858
The ceph unique client id that was assigned for this specific session.
4959

60+
cluster_fsid
61+
62+
The ceph cluster UUID. (August 2016, since 4.9.)
63+
64+
config_info
65+
66+
The string written into /sys/bus/rbd/add{,_single_major}. (August
67+
2016, since 4.9.)
68+
5069
features
5170

5271
A hexadecimal encoding of the feature bits for this image.
@@ -92,6 +111,10 @@ current_snap
92111

93112
The current snapshot for which the device is mapped.
94113

114+
snap_id
115+
116+
The current snapshot's id. (August 2016, since 4.9.)
117+
95118
parent
96119

97120
Information identifying the chain of parent images in a layered rbd

Documentation/filesystems/ceph.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ Mount Options
9898
size.
9999

100100
rsize=X
101+
Specify the maximum read size in bytes. By default there is no
102+
maximum.
103+
104+
rasize=X
101105
Specify the maximum readahead.
102106

103107
mount_timeout=X

0 commit comments

Comments
 (0)