Commit Graph

22112 Commits

Author SHA1 Message Date
Sage Weil
2bf6a2bfef os/chain_xattr: whitespace, constify *end
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:54 -08:00
Sage Weil
be438dc834 os/chain_xattr: do not double memory buffer (again)
This appears to be a typo; there is no need to double (again) the size of
the buffer we allocate.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:54 -08:00
Sage Weil
b7f89cb7b0 os/chain_xattr: fix listxattr buffer size
Intenrally allocate 2x the raw listxattr result; tell the user the same.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
54966006bc os/FileStore: introduce lfn_close()
Match every lfn_open() with lfn_close() (instead of close(2)).

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
51d3faafb9 os/FileStore: remove lfn_*xattr helpers
No longer used!

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
044be91604 os/FileStore: recast _rmattr on top of chain_f*
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
6a6699bd1a os/FileStore: recast _setattrs() on top of chain_f* methods
This lets us open an fd once and use that.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
41bc77f5f3 os/FileStore: drop _getattr() helpers
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
d59cf332da os/FileStore: use new helpers from collection_{get,set,rm}attr[s]
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
b6bfeed922 os/FileStore: use _fgetattr() from getattr()
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
307fd429db os/FileStore: remove unused _getattrs() methods
We are now using the _fgetattrs() variant everywhere instead.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
1862ddd885 os/FileStore: use _fgetattrs() from collection_getattr()
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:53 -08:00
Sage Weil
a367e6e99c os/FileStore: use _fgetattrs() from _rmattrs()
Note that we subtly change failure handling to be more strict: if we
fail to open the file, we error out; before we ignored errors from
_getattr().

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
cab1d6356d os/FileStore: use _fgetattrs() for _setattrs()
If we're using omap for spillover, we need to load the xattrs so that
they can be removed if necessary.

Note that we subtly change the failure behavior here to be more
strict: if we can't open the file, we fail, whereas before we did not.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
ad5ac17f0b os/FileStore: use _fgetattrs() for CLONE
We have the src fd.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
769f47321d os/FileStore: use _fgetattrs() for GETATTRS op
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
68377f9c31 os/FileStore: add _fgetattr(), _fgetattrs() helpers
Introduce new fd-based getattr[s] helpers.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
bb127bd16d os/FileStore: use f*xattr() methods to test xattr support
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Sage Weil
4e5530351a os/chain_xattr: move chained xattr helpers into separate file/module
* Rename do_* -> chain_*.
* Move #defines to a header.
* Fix *Index users
* Implement both *xattr() and f*xattr() variants for get, set, list,
  remove.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-05 00:13:52 -08:00
Noah Watkins
132fb3413c doc: describe Hadoop configuration options
Start a document describing Ceph integration with Hadoop, and adds a
description of configuration options that the CephFileSystem shim will
accept.
2012-11-04 06:19:29 -08:00
Sage Weil
004a1fcf8c Merge branch 'wip-reorg' 2012-11-04 05:06:34 -08:00
Sage Weil
92604ce4af Merge branch 'wip-msgr-ports'
Reviewed-by: Greg Farnum <greg@inktank.com>
2012-11-04 05:06:18 -08:00
Sage Weil
7483d1f990 msg/Accepter: use derr
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 05:04:42 -08:00
Sage Weil
769bac89fd msgr: change port range from 6800-6900 -> 6800-7100
This allows more OSDs per host.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 05:04:42 -08:00
Sage Weil
623553d2b8 msgr: make bind port range configurable
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 05:04:42 -08:00
Sage Weil
49bd8ab57c librados: move misc tests into test/librados/ dir
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 04:45:12 -08:00
Sage Weil
5893dd52a9 librados: test/rados-api/* -> test/librados/*
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 04:45:11 -08:00
Sam Lang
6f7a632aaa client: Support for fchown
Implement fchown in libcephfs and client,
which is needed by the samba vfs module.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-11-04 04:25:31 -08:00
Sage Weil
e4aa6d7ad7 cls_lock: reorg test_cls_lock
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 03:54:35 -08:00
Sage Weil
0eedc78e56 cls_rgw: reorg test_cls_rgw
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 03:52:57 -08:00
Sage Weil
a1402b5d94 fix cls_rbd reorg 2012-11-04 03:50:09 -08:00
Sage Weil
ddf096b55b librbd: reorg rbd tests
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 03:47:10 -08:00
Sage Weil
b749323bee cls_rbd: move into new location
Be consistent!  Make an example of ourselves!

Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 03:43:55 -08:00
Sage Weil
bcefc0e80a msg/Pipe: fix leak of AuthSessionHandler
Init ptr in ctor, delete in dtor.

Reported-by: Yan, Zheng <yan.zheng@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 01:10:49 -08:00
Sage Weil
2daad206ee Merge branch 'wip-mds' 2012-11-04 01:02:43 -07:00
John Wilkins
f67e79a2fc Merge branch 'master' of https://github.com/ceph/ceph 2012-11-03 12:12:24 -07:00
John Wilkins
4bff87da9a doc: Added qemu caching section.
fixes: #3332

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-03 12:12:11 -07:00
John Wilkins
f171aba74d doc: Added Commandline Usage and a few fixes.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-03 12:10:23 -07:00
tamil
c51e1f9b64 test script for s3 tests
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2012-11-02 11:32:43 -07:00
John Wilkins
bc4e6b9a13 doc: Changed term "kernel object" to "kernel module". Added hyperlink to cephx.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-01 15:56:04 -07:00
John Wilkins
019fee8224 doc: Improved the landing page for RBD.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-01 15:30:39 -07:00
John Wilkins
536d7644f2 doc: Clarified text and added reference back to main RBD pages. Added sidebar.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-01 15:30:00 -07:00
John Wilkins
2b2ac13714 doc: Changed RBD to librbd cache for accuracy.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-01 15:29:06 -07:00
John Wilkins
a01b112d71 doc: changed --user to --id, and fixed a typo.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-01 12:55:18 -07:00
Alex Elder
a7551e4d99 run_xfstests.sh: add optional iteration count
This adds a "-c <count>" option to the run_xfstests.sh script so
the full set of tests can be repeated more than once without having
to go through the setup process each time.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2012-11-01 13:55:48 -05:00
John Wilkins
dfc57c4fa5 doc: minor edits to the index.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-01 10:43:24 -07:00
John Wilkins
968b315a09 doc: Added layering to the snapshot section.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-11-01 10:41:38 -07:00
Sage Weil
15ada1c7b2 doc: update notes on new rpm-based platforms
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-31 22:10:43 -07:00
Sage Weil
45005d3def doc: fix os-recommendations table
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-31 21:27:51 -07:00
John Wilkins
2d52d7c907 doc: Index entry for OS Recommendations
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-10-31 21:25:46 -07:00