Skip to content

Commit 5538847

Browse files
rados/striper: add a package doc comment for striper
Add a package doc comment that also points out some things I learned about how `rados` command line tool lists striped objects to preempt being asked later on. :-) Signed-off-by: John Mulligan <jmulligan@redhat.com>
1 parent 56d44b3 commit 5538847

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

rados/striper/doc.go

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//go:build ceph_preview
2+
// +build ceph_preview
3+
4+
/*
5+
Package striper contains a set of wrappers around Ceph's libradosstriper API.
6+
7+
The Striper type supports synchronous operations to read and write data,
8+
as well as read and manipulate xattrs. Note that a striped object will
9+
consist of one or more objects in RADOS.
10+
11+
There is no object list API in libradosstriper. Listing objects must be done
12+
using the base RADOS APIs. Striped objects will be stored in RADOS using the
13+
provided Striped Object ID (soid) suffixed by a dot (.) and a 16 byte
14+
0-prefixed hex number (for example, "foo.0000000000000000" or
15+
"bar.000000000000000a"). The object suffixed with ".0000000000000000" is the
16+
0-index stripe and will also possess striper specific xattrs (see the [ceph
17+
libradosstriper implementation] for a list) that are hidden from the
18+
libradosstriper xattr APIs. You can use the name and/or these striper xattrs
19+
to distinguish a striped object from a non-striped RADOS object.
20+
21+
[ceph libradosstriper implementation]: https://github.com/ceph/ceph/blob/2fa0e43b7e714df9811f87cbc5bf862ac503483c/src/libradosstriper/RadosStriperImpl.cc#L94-L97
22+
*/
23+
package striper

0 commit comments

Comments
 (0)