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
tamil
e49969a67b
test script for s3 tests
...
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2012-11-04 16:59:27 -06:00
Noah Watkins
72a710ac47
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>
2012-11-04 07:14:50 -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
Samuel Just
342c2c7077
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>
2012-11-04 06:16:36 -08:00
Samuel Just
7e264678a9
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>
2012-11-04 06:16:18 -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
Sage Weil
80880eef6d
client: always follow non-trailing symlinks
...
If we are walking /a/b/c and a or b is a symlink, follow it. It's only
c that we don't follow when !followsym.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 04:34:55 -08:00
Sage Weil
4fc67c5228
client: simplify path_walk() loop
...
Most paths were kludging around the for loop's i++. Switch to a while
loop to avoid such tomfoolery.
Signed-off-by: Sage Weil <sage@inktank.com>
2012-11-04 04:34:20 -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
Sam Lang
a7e13681e7
test: Add symlink test for absolute paths
...
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-11-01 20:17:00 -05:00
Sam Lang
4cd47c4c51
client: Fix state of symlink with absolute path
...
Symlinks that have an absolute path are not getting
properly dereferenced in path_walk() due to a bug
with the cur and next inode pointers, and because
the path position wasn't getting reset on the symlink
dereference.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
2012-11-01 20:17:00 -05: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
Mike Ryan
6c5de992a3
osd: add PG state recovery_wait
...
Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
2012-11-01 01:05:01 -07:00
Mike Ryan
d2c6d44b27
message: add MRecoveryReserve
...
This message will be used to reserve and release recovery slots on
replica PGs.
Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
2012-11-01 01:05:01 -07:00
Mike Ryan
23dbe3ecae
message: add missing print statement for REJECT message
...
Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
2012-11-01 01:05:01 -07:00
Mike Ryan
614cb50986
PG: correct sub-state names in ReplicaActive
...
Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
2012-11-01 01:05:01 -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
Sage Weil
049e7fbe7b
doc: update os-recommendations
...
Signed-off-by: Sage Weil <sage@inktank.com>
2012-10-31 21:24:56 -07:00