]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agodoc: Syntax cleanup for new IA. Added reference to repo.
John Wilkins [Thu, 8 Nov 2012 06:18:06 +0000 (22:18 -0800)]
doc: Syntax cleanup for new IA. Added reference to repo.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Syntax cleanup for new IA.
John Wilkins [Thu, 8 Nov 2012 06:17:46 +0000 (22:17 -0800)]
doc: Syntax cleanup for new IA.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Syntax cleanup for new IA. Removed steps for building docs.
John Wilkins [Thu, 8 Nov 2012 06:17:31 +0000 (22:17 -0800)]
doc: Syntax cleanup for new IA. Removed steps for building docs.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Syntax cleanup for new IA. Removed info for building documentation.
John Wilkins [Thu, 8 Nov 2012 06:16:50 +0000 (22:16 -0800)]
doc: Syntax cleanup for new IA. Removed info for building documentation.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Syntax cleanup for new IA.
John Wilkins [Thu, 8 Nov 2012 06:16:10 +0000 (22:16 -0800)]
doc: Syntax cleanup for new IA.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: update the rest of the table for debian wheezy
Josh Durgin [Thu, 8 Nov 2012 00:57:11 +0000 (16:57 -0800)]
doc: update the rest of the table for debian wheezy

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoMerge remote-tracking branch 'upstream/wip_recovery_reserve'
Samuel Just [Thu, 8 Nov 2012 01:24:01 +0000 (17:24 -0800)]
Merge remote-tracking branch 'upstream/wip_recovery_reserve'

Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agodoc/: document recovery reservation process
Mike Ryan [Wed, 7 Nov 2012 23:35:56 +0000 (15:35 -0800)]
doc/: document recovery reservation process

Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
12 years agopg: recovery reservations
Mike Ryan [Fri, 5 Oct 2012 21:37:34 +0000 (14:37 -0700)]
pg: recovery reservations

This extends the backfill reservation system to work with log-based
recovery. The Active and RepActive states of the PG state machine are
greatly expanded to deal with the increased complexity of handling both
recovery and backfill reservations.

Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
12 years agodoc: Wheezy is now using kernel 3.2.0; say so
Dan Mick [Thu, 8 Nov 2012 01:07:39 +0000 (17:07 -0800)]
doc: Wheezy is now using kernel 3.2.0; say so

12 years agodoc: Fix per-daemon public/private settings: "network" -> "addr"
Dan Mick [Thu, 8 Nov 2012 01:06:04 +0000 (17:06 -0800)]
doc: Fix per-daemon public/private settings: "network" -> "addr"

12 years agodoc: Clarify "pool size", copies, and replicas more
Dan Mick [Thu, 8 Nov 2012 01:05:22 +0000 (17:05 -0800)]
doc: Clarify "pool size", copies, and replicas more

12 years agodoc: fix Hadoop config option typo
Noah Watkins [Thu, 8 Nov 2012 01:07:55 +0000 (17:07 -0800)]
doc: fix Hadoop config option typo

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
12 years agodoc: Made changes to the CSS to make admonitions more prominent.
John Wilkins [Wed, 7 Nov 2012 22:11:56 +0000 (14:11 -0800)]
doc: Made changes to the CSS to make admonitions more prominent.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added lines between title and body. Pre IA cleanup.
John Wilkins [Wed, 7 Nov 2012 22:11:29 +0000 (14:11 -0800)]
doc: Added lines between title and body. Pre IA cleanup.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated syntax for consistent usage prior to IA updates.
John Wilkins [Wed, 7 Nov 2012 22:10:40 +0000 (14:10 -0800)]
doc: Updated syntax for consistent usage prior to IA updates.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated index for removal of legacy openstack install.
John Wilkins [Wed, 7 Nov 2012 22:09:57 +0000 (14:09 -0800)]
doc: Updated index for removal of legacy openstack install.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Minor edit to admonitions.
John Wilkins [Wed, 7 Nov 2012 22:09:30 +0000 (14:09 -0800)]
doc: Minor edit to admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated syntax prior to IA updates.
John Wilkins [Wed, 7 Nov 2012 22:09:12 +0000 (14:09 -0800)]
doc: Updated syntax prior to IA updates.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated syntax usage prior to IA updates.
John Wilkins [Wed, 7 Nov 2012 22:08:45 +0000 (14:08 -0800)]
doc: Updated syntax usage prior to IA updates.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added new info per Ross's request.
John Wilkins [Wed, 7 Nov 2012 22:07:55 +0000 (14:07 -0800)]
doc: Added new info per Ross's request.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Fix and minor edit for admonitions.
John Wilkins [Wed, 7 Nov 2012 22:07:28 +0000 (14:07 -0800)]
doc: Fix and minor edit for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Minor edits for admonitions.
John Wilkins [Wed, 7 Nov 2012 22:07:05 +0000 (14:07 -0800)]
doc: Minor edits for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Edits from Peter Reiher's feedback, and minor edits for admonitions.
John Wilkins [Wed, 7 Nov 2012 22:06:40 +0000 (14:06 -0800)]
doc: Edits from Peter Reiher's feedback, and minor edits for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Minor edits for admonitions.
John Wilkins [Wed, 7 Nov 2012 22:06:00 +0000 (14:06 -0800)]
doc: Minor edits for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added topic for adding OSDs and adjusting CRUSH weights.
John Wilkins [Wed, 7 Nov 2012 22:05:15 +0000 (14:05 -0800)]
doc: Added topic for adding OSDs and adjusting CRUSH weights.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge branch 'master' of https://github.com/ceph/ceph
John Wilkins [Wed, 7 Nov 2012 22:03:34 +0000 (14:03 -0800)]
Merge branch 'master' of https://github.com/ceph/ceph

12 years agodoc: Removed legacy OpenStack installation.
John Wilkins [Wed, 7 Nov 2012 22:02:51 +0000 (14:02 -0800)]
doc: Removed legacy OpenStack installation.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added topic for adding an OSD and adjusting CRUSH weights.
John Wilkins [Wed, 7 Nov 2012 22:01:00 +0000 (14:01 -0800)]
doc: Added topic for adding an OSD and adjusting CRUSH weights.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoceph.spec.in: Remove ceph version requirement from ceph-fuse package.
Gary Lowell [Wed, 7 Nov 2012 20:41:10 +0000 (12:41 -0800)]
ceph.spec.in:  Remove ceph version requirement from ceph-fuse package.

The ceph-fuse rpm package now only requires ceph as a pre-req, not a specific
version.

12 years agoUpdate log file when rgw is not running
tamil [Wed, 7 Nov 2012 19:49:15 +0000 (11:49 -0800)]
Update log file when rgw is not running

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agoosd/: add pool min_size parameter for min acting set size
Samuel Just [Mon, 29 Oct 2012 22:35:09 +0000 (15:35 -0700)]
osd/: add pool min_size parameter for min acting set size

Otherwise, a pg might go active with a single osd in the
acting set.  If that osd subsequently dies, we potentially
loose client writes.  Note: it's still possible for the
acting set to exceed min_size but fail to obey the spirit
of the user's crush settings (e.g., min_size is 2, but both
osds happen to be no the sam node).

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil: <sage@inktank.com>
12 years agoMerge remote-tracking branch 'upstream/wip_lost_unfound_event'
Samuel Just [Wed, 7 Nov 2012 19:34:44 +0000 (11:34 -0800)]
Merge remote-tracking branch 'upstream/wip_lost_unfound_event'

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoMerge remote-tracking branch 'upstream/wip-xattr'
Samuel Just [Wed, 7 Nov 2012 17:52:49 +0000 (09:52 -0800)]
Merge remote-tracking branch 'upstream/wip-xattr'

Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agoMakefile: add missing rgw_resolve.h to dist tarball
Sage Weil [Wed, 7 Nov 2012 12:46:16 +0000 (04:46 -0800)]
Makefile: add missing rgw_resolve.h to dist tarball

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoqa: disable xfstest 45 until mount issue is resolved on precise
Sage Weil [Wed, 7 Nov 2012 12:14:12 +0000 (04:14 -0800)]
qa: disable xfstest 45 until mount issue is resolved on precise

Meh

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'next'
Dan Mick [Tue, 6 Nov 2012 23:52:38 +0000 (15:52 -0800)]
Merge branch 'next'

12 years agocls_rbd: send proper format of key to "last_read" for dir_list
Dan Mick [Tue, 6 Nov 2012 23:28:10 +0000 (15:28 -0800)]
cls_rbd: send proper format of key to "last_read" for dir_list

rbd ls of format-2 images was looping on the first 64 (when more than 64
were present).  The key name passed to the omap layer needs to always
contain the prefix, and the "inside-the-loop next-chunk" statement
was missing the "add the prefix" call.

Also, add a test for listing 100 images, format 1 and 2.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw: document cname configurable
Yehuda Sadeh [Tue, 6 Nov 2012 23:49:18 +0000 (15:49 -0800)]
rgw: document cname configurable

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoMerge remote-tracking branch 'origin/master' into wip-3206
Yehuda Sadeh [Tue, 6 Nov 2012 23:20:07 +0000 (15:20 -0800)]
Merge remote-tracking branch 'origin/master' into wip-3206

12 years agorgw: resolve hostname dns cname record
Yehuda Sadeh [Mon, 29 Oct 2012 23:46:21 +0000 (16:46 -0700)]
rgw: resolve hostname dns cname record

Implements #3206
This allows using vanity domains. A CNAME record can now
be set for the domain that would point at the rgw instance,
with or without a bucket set as a subdomain.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agojava: use accessors for mode flag tests
Noah Watkins [Sun, 4 Nov 2012 18:11:18 +0000 (10:11 -0800)]
java: use accessors for mode flag tests

Add isDir(), isFile(), and isSymlink() for read-only tests corresponding
to the S_ISREG test and friends.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Joe Buck <jbbuck@gmail.com>
12 years agorgw: fix multipart overwrite
Yehuda Sadeh [Wed, 24 Oct 2012 20:15:46 +0000 (13:15 -0700)]
rgw: fix multipart overwrite

Fixes: #3400
Removed a few lines of code that prematurely created the head
part of the final object (before creating the manifest).

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: don't reset multipart parts when updating their metadata
Yehuda Sadeh [Wed, 24 Oct 2012 19:56:59 +0000 (12:56 -0700)]
rgw: don't reset multipart parts when updating their metadata

Fixes: #3401
The problem was that put_obj_meta() was assuming object is going
to be reset, so it was resetting the object anyway. This is not
true when dealing with the immutable multipart upload parts.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: break out of read loop if we got zero bytes
Yehuda Sadeh [Wed, 24 Oct 2012 18:26:53 +0000 (11:26 -0700)]
rgw: break out of read loop if we got zero bytes

If the part that we're reading is corrupted and we end up
reading zero bytes, we need to exit, otherwise we'd just
loop forever.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoMerge branch 'master' of https://github.com/ceph/ceph
John Wilkins [Tue, 6 Nov 2012 17:14:11 +0000 (09:14 -0800)]
Merge branch 'master' of https://github.com/ceph/ceph

12 years agodoc: fixed some inccorrect syntax.
John Wilkins [Tue, 6 Nov 2012 17:13:54 +0000 (09:13 -0800)]
doc: fixed some inccorrect syntax.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agorbd: allow removal of image even if rbd_children deletion fails
Dan Mick [Tue, 6 Nov 2012 00:13:19 +0000 (16:13 -0800)]
rbd: allow removal of image even if rbd_children deletion fails

Users have been seeing failures where rbd rm is half-done; could be
because of outstanding watches on the rbd_header object.  The state
is that rbd_children no longer contains the child, but other pieces
remain; remove considers this a failure.

Fix: test for ENOENT from remove_child, and treat that as an ignorable
error and drive on.  Simulate this in copy.sh by removing the
rbd_children object altogether, which also results in ENOENT return
from remove_child.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorbd: allow removal of image even if rbd_children deletion fails
Dan Mick [Tue, 6 Nov 2012 00:13:19 +0000 (16:13 -0800)]
rbd: allow removal of image even if rbd_children deletion fails

Users have been seeing failures where rbd rm is half-done; could be
because of outstanding watches on the rbd_header object.  The state
is that rbd_children no longer contains the child, but other pieces
remain; remove considers this a failure.

Fix: test for ENOENT from remove_child, and treat that as an ignorable
error and drive on.  Simulate this in copy.sh by removing the
rbd_children object altogether, which also results in ENOENT return
from remove_child.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agodoc: Minor edits and added reference to Cephx intro.
John Wilkins [Mon, 5 Nov 2012 19:02:55 +0000 (11:02 -0800)]
doc: Minor edits and added reference to Cephx intro.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoosd/: encode LOST_REVERT reverting_to in prior_version pos
Samuel Just [Mon, 5 Nov 2012 19:02:30 +0000 (11:02 -0800)]
osd/: encode LOST_REVERT reverting_to in prior_version pos

This will allow older osds to interpret the LOST_REVERT event
correctly.

Signed-off-by: Samuel Just <sam.just@inktank.com>
12 years agoPG: use remove_object_with_snap_hardlinks for divergent objects
Samuel Just [Fri, 2 Nov 2012 20:02:15 +0000 (13:02 -0700)]
PG: use remove_object_with_snap_hardlinks for divergent objects

Otherwise, we end up leaving snap hardlinks in the snapshot
index directories.  This eventually results in an EEXIST error
when we attempt to re-link the clone into place during
recovery.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agorbd: stripe count is not measured in bytes
Sage Weil [Mon, 5 Nov 2012 17:57:39 +0000 (09:57 -0800)]
rbd: stripe count is not measured in bytes

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agochain_xattr: use sys_* methods
Sage Weil [Mon, 5 Nov 2012 08:14:20 +0000 (00:14 -0800)]
chain_xattr: use sys_* methods

The sys_* wrappers return -errno on error; use those!

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: chain_*() methods return error codes; don't check errno
Sage Weil [Mon, 5 Nov 2012 08:08:17 +0000 (00:08 -0800)]
os/FileStore: chain_*() methods return error codes; don't check errno

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agochain_xattr: comment about how xattrs are named
Yehuda Sadeh [Mon, 29 Oct 2012 19:54:49 +0000 (12:54 -0700)]
chain_xattr: comment about how xattrs are named

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoos/chain_xattr: whitespace, constify *end
Sage Weil [Mon, 29 Oct 2012 15:35:13 +0000 (08:35 -0700)]
os/chain_xattr: whitespace, constify *end

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/chain_xattr: do not double memory buffer (again)
Sage Weil [Mon, 29 Oct 2012 15:34:58 +0000 (08:34 -0700)]
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>
12 years agoos/chain_xattr: fix listxattr buffer size
Sage Weil [Mon, 29 Oct 2012 15:33:52 +0000 (08:33 -0700)]
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>
12 years agoos/FileStore: introduce lfn_close()
Sage Weil [Sat, 27 Oct 2012 22:57:04 +0000 (15:57 -0700)]
os/FileStore: introduce lfn_close()

Match every lfn_open() with lfn_close() (instead of close(2)).

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: remove lfn_*xattr helpers
Sage Weil [Sat, 27 Oct 2012 22:38:50 +0000 (15:38 -0700)]
os/FileStore: remove lfn_*xattr helpers

No longer used!

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: recast _rmattr on top of chain_f*
Sage Weil [Sat, 27 Oct 2012 22:38:02 +0000 (15:38 -0700)]
os/FileStore: recast _rmattr on top of chain_f*

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: recast _setattrs() on top of chain_f* methods
Sage Weil [Sat, 27 Oct 2012 22:36:27 +0000 (15:36 -0700)]
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>
12 years agoos/FileStore: drop _getattr() helpers
Sage Weil [Sat, 27 Oct 2012 22:32:22 +0000 (15:32 -0700)]
os/FileStore: drop _getattr() helpers

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: use new helpers from collection_{get,set,rm}attr[s]
Sage Weil [Sat, 27 Oct 2012 22:28:46 +0000 (15:28 -0700)]
os/FileStore: use new helpers from collection_{get,set,rm}attr[s]

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: use _fgetattr() from getattr()
Sage Weil [Sat, 27 Oct 2012 22:18:08 +0000 (15:18 -0700)]
os/FileStore: use _fgetattr() from getattr()

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: remove unused _getattrs() methods
Sage Weil [Sat, 27 Oct 2012 22:12:16 +0000 (15:12 -0700)]
os/FileStore: remove unused _getattrs() methods

We are now using the _fgetattrs() variant everywhere instead.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: use _fgetattrs() from collection_getattr()
Sage Weil [Sat, 27 Oct 2012 22:11:42 +0000 (15:11 -0700)]
os/FileStore: use _fgetattrs() from collection_getattr()

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: use _fgetattrs() from _rmattrs()
Sage Weil [Sat, 27 Oct 2012 22:10:56 +0000 (15:10 -0700)]
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>
12 years agoos/FileStore: use _fgetattrs() for _setattrs()
Sage Weil [Sat, 27 Oct 2012 22:08:48 +0000 (15:08 -0700)]
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>
12 years agoos/FileStore: use _fgetattrs() for CLONE
Sage Weil [Sat, 27 Oct 2012 22:06:20 +0000 (15:06 -0700)]
os/FileStore: use _fgetattrs() for CLONE

We have the src fd.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: use _fgetattrs() for GETATTRS op
Sage Weil [Sat, 27 Oct 2012 22:05:59 +0000 (15:05 -0700)]
os/FileStore: use _fgetattrs() for GETATTRS op

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: add _fgetattr(), _fgetattrs() helpers
Sage Weil [Sat, 27 Oct 2012 21:47:22 +0000 (14:47 -0700)]
os/FileStore: add _fgetattr(), _fgetattrs() helpers

Introduce new fd-based getattr[s] helpers.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/FileStore: use f*xattr() methods to test xattr support
Sage Weil [Sat, 27 Oct 2012 21:40:08 +0000 (14:40 -0700)]
os/FileStore: use f*xattr() methods to test xattr support

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoos/chain_xattr: move chained xattr helpers into separate file/module
Sage Weil [Sat, 27 Oct 2012 21:35:35 +0000 (14:35 -0700)]
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>
12 years agoclient: return EBADF for invalid file desc
Noah Watkins [Fri, 2 Nov 2012 20:56:46 +0000 (13:56 -0700)]
client: return EBADF for invalid file desc

Adds get_filehandle to Client which resolves a file descriptor or
returns NULL if the file descriptor is invalid. Libcephfs calls that
accept a file descriptor are changed to return -EBADF when
get_filehandle returns NULL.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agodoc: describe Hadoop configuration options
Noah Watkins [Wed, 31 Oct 2012 16:26:04 +0000 (09:26 -0700)]
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.

12 years agoPG::merge_old_entry: fix case for divergent prior_version
Samuel Just [Fri, 2 Nov 2012 21:13:33 +0000 (14:13 -0700)]
PG::merge_old_entry: fix case for divergent prior_version

Previously, we asserted that a log entry with a divergent
prior_version must be a clone.  Consider the following
case:

6'11(6'2)  m foo
7'12(6'3) m bar
7'13(7'12) m bar

If this is merged with:

6'11(6'2)  m foo
8'12(6'4) m baz

we will hit the assert.  The correct behavior is simply to remove
the object as in the clone case.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoPG: use remove_object_with_snap_hardlinks for divergent objects
Samuel Just [Fri, 2 Nov 2012 20:02:15 +0000 (13:02 -0700)]
PG: use remove_object_with_snap_hardlinks for divergent objects

Otherwise, we end up leaving snap hardlinks in the snapshot
index directories.  This eventually results in an EEXIST error
when we attempt to re-link the clone into place during
recovery.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'wip-reorg'
Sage Weil [Sun, 4 Nov 2012 13:06:34 +0000 (05:06 -0800)]
Merge branch 'wip-reorg'

12 years agoMerge branch 'wip-msgr-ports'
Sage Weil [Sun, 4 Nov 2012 13:06:18 +0000 (05:06 -0800)]
Merge branch 'wip-msgr-ports'

Reviewed-by: Greg Farnum <greg@inktank.com>
12 years agomsg/Accepter: use derr
Sage Weil [Wed, 31 Oct 2012 16:39:52 +0000 (09:39 -0700)]
msg/Accepter: use derr

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsgr: change port range from 6800-6900 -> 6800-7100
Sage Weil [Wed, 31 Oct 2012 16:30:43 +0000 (09:30 -0700)]
msgr: change port range from 6800-6900 -> 6800-7100

This allows more OSDs per host.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsgr: make bind port range configurable
Sage Weil [Wed, 31 Oct 2012 16:29:54 +0000 (09:29 -0700)]
msgr: make bind port range configurable

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrados: move misc tests into test/librados/ dir
Sage Weil [Sun, 4 Nov 2012 11:58:23 +0000 (03:58 -0800)]
librados: move misc tests into test/librados/ dir

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agolibrados: test/rados-api/* -> test/librados/*
Sage Weil [Sun, 4 Nov 2012 11:57:04 +0000 (03:57 -0800)]
librados: test/rados-api/* -> test/librados/*

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoclient: Support for fchown
Sam Lang [Fri, 19 Oct 2012 14:23:10 +0000 (09:23 -0500)]
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>
12 years agocls_lock: reorg test_cls_lock
Sage Weil [Sun, 4 Nov 2012 11:54:35 +0000 (03:54 -0800)]
cls_lock: reorg test_cls_lock

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocls_rgw: reorg test_cls_rgw
Sage Weil [Sun, 4 Nov 2012 11:52:57 +0000 (03:52 -0800)]
cls_rgw: reorg test_cls_rgw

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agofix cls_rbd reorg
Sage Weil [Sun, 4 Nov 2012 11:50:09 +0000 (03:50 -0800)]
fix cls_rbd reorg

12 years agolibrbd: reorg rbd tests
Sage Weil [Sun, 4 Nov 2012 11:47:10 +0000 (03:47 -0800)]
librbd: reorg rbd tests

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agocls_rbd: move into new location
Sage Weil [Sun, 4 Nov 2012 11:43:55 +0000 (03:43 -0800)]
cls_rbd: move into new location

Be consistent!  Make an example of ourselves!

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomsg/Pipe: fix leak of AuthSessionHandler
Sage Weil [Sun, 4 Nov 2012 09:10:49 +0000 (01:10 -0800)]
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>
12 years agoMerge branch 'wip-mds'
Sage Weil [Sun, 4 Nov 2012 08:02:43 +0000 (01:02 -0700)]
Merge branch 'wip-mds'

12 years agoMerge branch 'master' of https://github.com/ceph/ceph
John Wilkins [Sat, 3 Nov 2012 19:12:24 +0000 (12:12 -0700)]
Merge branch 'master' of https://github.com/ceph/ceph

12 years agodoc: Added qemu caching section.
John Wilkins [Sat, 3 Nov 2012 19:12:11 +0000 (12:12 -0700)]
doc: Added qemu caching section.

fixes: #3332

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added Commandline Usage and a few fixes.
John Wilkins [Sat, 3 Nov 2012 19:10:23 +0000 (12:10 -0700)]
doc: Added Commandline Usage and a few fixes.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agotest script for s3 tests
tamil [Fri, 2 Nov 2012 18:32:43 +0000 (11:32 -0700)]
test script for s3 tests
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agodoc: Changed term "kernel object" to "kernel module". Added hyperlink to cephx.
John Wilkins [Thu, 1 Nov 2012 22:56:04 +0000 (15:56 -0700)]
doc: Changed term "kernel object" to "kernel module". Added hyperlink to cephx.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Improved the landing page for RBD.
John Wilkins [Thu, 1 Nov 2012 22:30:39 +0000 (15:30 -0700)]
doc: Improved the landing page for RBD.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>