Commit Graph

23842 Commits

Author SHA1 Message Date
Sage Weil
abc80ffc5b java: make CephMountTest use user.* xattr names
Changes to the xattr code in Ceph require
a few tweaks to existing test cases.
Specifically, there is now a ceph.file.layout
xattr by default and user defined xattrs
are prepended with "user."

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
2013-02-09 18:58:21 -08:00
Yehuda Sadeh
c31aff5f9f rgw: plain format always appends eol to data
Beforehand we just prepended the eol to the next line, so that
the last line also gets eol.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-02-09 13:36:01 -08:00
Yehuda Sadeh
3e4d79fe42 rgw: change json formatting for swift list container
Fixes: #4048
There is some difference in the way swift formats the
xml output and the json output for list container. In
xml the entity is named 'name' and in json it is named
'subdir'.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2013-02-09 13:35:52 -08:00
Sage Weil
6d199e22fb Merge branch 'next' 2013-02-09 09:41:02 -08:00
Sage Weil
b19b6dced8 osd: fix load_pgs collection handling
On a _TEMP pg, is_pg() would succeed, which meant we weren't actually
hitting the cleanup checks.  Instead, restructure this loop as positive
checks and handle each type of collection we understand.

This fixes _TEMP cleanup.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-02-09 09:40:58 -08:00
Sage Weil
1f80a0b576 osd: fix load_pgs handling of pg dirs without a head
If there is a pgid that passes coll_t::is_pg() but there is no head, we
will populate the pgs map but then fail later when we try to do
read_state.  This is a side-effect of 55f8579.

Take explicit note of _head collections we see, and then warn when we
find stray snap collections.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-02-09 09:40:54 -08:00
Sage Weil
ead68b47f4 Merge branch 'next'
Conflicts:
	src/mon/PGMonitor.h
2013-02-09 09:40:34 -08:00
Samuel Just
073f58ede2 OSD::load_pgs: first scan colls before initing PGs
Backport: bobtail
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-02-09 09:37:33 -08:00
Sage Weil
0d68f3a8f7 test/crypto: fix narrowing conversion warning
warning: test/crypto.cc:49:3: narrowing conversion of ‘136’ from ‘int’ to ‘char’ inside { } is ill-formed in C++11 [-Wnarrowing]

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-08 21:47:34 -08:00
Sage Weil
20255d9846 doc: update commands for fetching release PGP keys
Use https to ceph.com.  The gitweb URLs aren't as pretty, but our
cert is at least valid!

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-08 21:09:20 -08:00
Greg Farnum
77612336a0 mds: enable SnapInfo, snaplink_t, sr_t dencoder usage
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:58:41 -08:00
Greg Farnum
d414875aeb mds: remove very dead commented-out code
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:58:41 -08:00
Greg Farnum
f1e08e6c8a mds: add ENCODING to the incompat set
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:58:41 -08:00
Greg Farnum
e7bc4b8d59 mds: cap_reconnect_t uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:58:41 -08:00
John Wilkins
38dd59ba7c doc: Removed unnecessary/contradictory options.
fixes: #4058

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-08 13:27:58 -08:00
John Wilkins
19c946663e doc: Fixed order of option.
fixes: #4046

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-08 13:18:23 -08:00
Greg Farnum
07b24cf29d mds: SessionMap now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
7cbae7020b mds: mds_load_t now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
5c812213e6 mds: dirfrag_load_vec_t now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
6a6f75e825 mds: inode_load_vec_t now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
4123d01120 mds: use modern encoding for LogEvent
It's a pretty simple encoding, but if we ever want to encode more than
the event type and the event itself we'll be glad to have versioned
the super-structure as well.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
3fb1b21982 mds: EUpdate more modernization for dencoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
05461e8d04 mds: EUpdate event now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
8f75db34bd mds: ETableServer more modernization for dencoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
ac8f25c076 mds: ETableServer event now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
f82dce8dd8 mds: ETableClient more modernization for dencoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
d727b12959 mds: ETableClient event now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
d557bcfb3b mds: ESubtreeMap more modernization for dencoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:54 -08:00
Greg Farnum
7998524ddf mds: ESubtreeMap event now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
1842f46191 mds: ESlaveUpdate more modernization for dencoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
70bc6afab4 mds: rename_rollback more modernization for dencoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
85c67fe85c mds: rmdir_rollback more modernization for dencoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
637e99fd3f mds: link_rollback more modernization for dencoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
a64153f967 mds: ESlaveUpdate event now uses modern encoding everywhere
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
3cea0ca7c2 mds: ESessions more modernization for dencoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
8e8ecb47a7 mds: ESessions now uses modern encoding
To facilitate this (since it had no versioning previously), it
gets a new encoding number and LogEvent::decode() sets a switch
if it's the old encoding.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
709ff3d732 mds: ESession more modernization for dencoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
3f469baa8c mds: ESession event now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
b578ef278c mds: EResetJournal modernization for dencoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
5db5433e24 mds: EResetJournal event now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
a1ed7418ad mds: EOpen event now uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
de9c1a157b MDS: EMetaBlob more modernization for encoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:53 -08:00
Greg Farnum
821b74e934 MDS: EMetaBlob::dirlump more modernization for encoder
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:52 -08:00
Greg Farnum
196313b4d0 mds: EMetaBlob::nullbit modernization for dencoder
And set defaults in the default constructor.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:52 -08:00
Greg Farnum
09a2d66e2d mds: EMetaBlob::remotebit more modernization for dencoder
And set defaults for the default constructor.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:52 -08:00
Greg Farnum
deb0d45c08 mds: EMetaBlob::full_bit more modernization for dencoder
While we're doing so, make the frag stream operator const!

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:52 -08:00
Greg Farnum
60730271d4 mds: EMetaBlob and its sub-parts use modern encoding now
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:52 -08:00
Greg Farnum
83c1a3c4eb mds: EImportStart event uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:52 -08:00
Greg Farnum
a25683f307 mds: EImportFinish event uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:52 -08:00
Greg Farnum
b079733b82 mds: EFragment event uses modern encoding
Signed-off-by: Greg Farnum <greg@inktank.com>
2013-02-08 13:17:52 -08:00