Commit Graph

33144 Commits

Author SHA1 Message Date
Danny Al-Gaaf
9a716d88bb rgw_bucket.cc: return error if update_containers_stats() fails
In case need_stats is set on rgw_read_user_buckets() and the
update_containers_stats() call fails with !-ENOENT, not only
print out a message but also return the error to the function
caller.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-03 01:34:10 +02:00
Danny Al-Gaaf
aafed10cd6 rgw_common.cc: reduce scope of 'fpos' variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 23:37:56 +02:00
Danny Al-Gaaf
49b810ff2f rgw_admin.cc: remove unused string variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 23:34:38 +02:00
Danny Al-Gaaf
b9e612ca1e PGBackend.cc: remove unused to_remove variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 23:31:20 +02:00
Danny Al-Gaaf
5fec86eed7 KeyValueStore.cc: remove unused variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 23:29:58 +02:00
Danny Al-Gaaf
7928fe753b rgw_op.cc: remove unused map variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 23:28:39 +02:00
Danny Al-Gaaf
074161fc2b rgw_main.cc: remove unused variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 23:26:18 +02:00
Danny Al-Gaaf
ae9a7d0627 rgw_main.cc: use static_cast instead of c-style
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 23:21:51 +02:00
Danny Al-Gaaf
e624085f2e ObjectStore.h: pass const string parameter by reference
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 22:51:44 +02:00
Danny Al-Gaaf
3ebbd9988e CDentry.cc: fix bool comparison using relational operator
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 22:51:44 +02:00
Danny Al-Gaaf
5da8e0e8a9 rados.cc: reduce scope of variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 22:51:44 +02:00
Danny Al-Gaaf
b99f636561 buffer.cc: catch exception by reference
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 22:51:44 +02:00
Danny Al-Gaaf
022e705f87 SimpleLock.h: fix bool comparison using relational operator
[src/mds/SimpleLock.h:287]: (warning) Comparison of a boolean value
 using relational operator (<, >, <= or >=).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 22:51:43 +02:00
Danny Al-Gaaf
46442ea9dc hitset.cc: fix format string to unsigned int
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 22:51:43 +02:00
Danny Al-Gaaf
ef0de7aca0 OSDMap.cc: prefer prefix ++operator for non-trivial iterator
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 22:51:43 +02:00
Danny Al-Gaaf
55624288fe OSDMonitor.cc: prefer prefix ++operator for non-trivial iterator
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 22:51:43 +02:00
Danny Al-Gaaf
e4b3109433 KeyValueStore: rename s/logger/perf_logger/
[src/os/KeyValueStore.h:368] -> [src/os/ObjectStore.h:100]: (warning) The class
 'KeyValueStore' defines member variable with name 'logger' also defined in its
 parent class 'ObjectStore'.

KeyValueStore logger is of type PerfCounters while ObjectStore logger is Logger.
Change the name in KeyValueStore to more obvious name perf_logger.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 22:51:43 +02:00
Danny Al-Gaaf
a84fed6101 crush/mapper.c: fix printf format for unsigned variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-04-30 22:51:43 +02:00
Alfredo Deza
82a3668e7c Merge pull request #1629 from ceph/wip-die-mkcephfs
remove mkcephfs (merge post-firefly?)

Reviewed-by:  Alfredo Deza <alfredo.deza@inktank.com>
2014-04-30 13:52:00 -04:00
Yan, Zheng
8979eb3945 Merge pull request #1741 from ceph/wip-early-reply
Wip early reply
2014-05-01 01:36:49 +08:00
Yan, Zheng
21bbdf5dd9 mds: avoid adding replicas of target dentry to rename witnesses
When the rename target dentry is NULL, we can use MDentryLink messages
instead of slave requests to update its replicas.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-05-01 01:33:14 +08:00
Yan, Zheng
3a7d668477 mds: allow early reply when request's witness list is empty
Early reply should be Ok when there were slave requests, but all
of them were for acquiring locks.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-05-01 01:32:39 +08:00
Sage Weil
b5d1dd8a68 Merge pull request #1121 from ceph/wip-no-anchor
mds: remove anchor table (merge post-firefly only)

Reviewed-by: Sage Weil <sage@inktank.com>
2014-04-30 10:11:42 -07:00
Sage Weil
0fa969b5c1 Merge pull request #1670 from yuyuyu101/wip-test-clone
Add clone test on store_test

Reviewed-by: Sage Weil <sage@inktank.com>
2014-04-30 10:10:24 -07:00
Yan, Zheng
41d93aabdb mds: include authority of the source inode in rename witnesses
rename updates source inode's ctime

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-04-30 18:31:23 +08:00
Yan, Zheng
f689e5f049 mds: remove discover ino
Anchor table was the main user of MDCache::discover_ino(), it has
been removed. MDCache::discover_path() can replace discover_ino()
in remaining places. This patch removes discover ino related code.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-04-29 13:58:26 +08:00
Yan, Zheng
913a5dd4ea mds: remove anchor table
use backtrace instead of anchors to find/open remote inodes

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-04-29 09:11:52 +08:00
Haomai Wang
f674f36f4c Copy range using fiemap not entire length
Under rbd usage, if a volume has tens of thousands of objects and each 4M
object only has several KB(run fio on this volume or other cases), this volume
will be very low performance during a long time after create snapshot on
this volume. The OSD will be busy with large bandwidth read/write although
the object actually has few bytes needed to be copied.

This commit try to use fiemap if backend fs support, it can skip unnecessary
range to write. It also can be beneficial to space effective, because the copied
object will be regard as snapshot object which is access infrequently.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-04-28 17:28:11 -07:00
Shawn Edwards
3920f40afc rbd-fuse: fix unlink
The path contains a leading / that needs to be ignored.

Fixes: #8197
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-04-28 17:08:12 -07:00
Sage Weil
915bd92f50 Merge pull request #1701 from ceph/wip-libkrbd
libkrbd convenience library

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-04-28 16:52:12 -07:00
Sage Weil
a0867dbdb0 Merge pull request #1648 from ceph/wip-client-sleep
Wip client sleep

Reviewed-by: Sage Weil <sage@inktank.com>
2014-04-28 16:51:33 -07:00
Josh Durgin
b3db3a5fd6 Merge pull request #1709 from dachary/wip-brag
brag : useability changes

Reviewed-by: Babu Shanmugam <anbu@enovance.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-04-28 15:51:43 -07:00
Josh Durgin
9021b35245 Merge branch 'wip-rbd-invalidate'
Reviewed-by: Sage Weil <sage@inktank.com>
2014-04-28 15:36:32 -07:00
Josh Durgin
818dde3120 Merge pull request #1737 from steveftaylor/add_rbd_fuse_image_restriction
Added a new command line parameter (-i or --image=) that allows rbd-fuse...

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2014-04-28 15:33:34 -07:00
Josh Durgin
11e060616d Merge pull request #1699 from chrisglass/python-api-cleanup
Simple mechanical cleanups

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-04-28 15:28:31 -07:00
Josh Durgin
5d340d26dd librbd: add an interface to invalidate cached data
This is useful for qemu to guarantee live migration with caching is
safe, by invalidating the cache on the destination before starting it.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-04-28 15:15:03 -07:00
Josh Durgin
e08b8b66c7 librbd: check return code and error out if invalidate_cache fails
This will only happen when shrinking or rolling back an image is done
while other I/O is in flight to the same ImageCtx. This is unsafe, so
return an error before performing the resize or rollback.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-04-28 15:14:47 -07:00
Stephen F Taylor
b1df2c379b Changed the -i parameter to -r in order to avoid a conflict with a generic flag interpreted by the common code. 2014-04-28 15:31:07 -06:00
Sage Weil
d8c5cc679e Merge pull request #1652 from ceph/wip-5170-firefly
Wip 5170 firefly
2014-04-28 14:13:24 -07:00
Sage Weil
8cc878e43b Merge pull request #1734 from ceph/wip-8202
rgw: fix url escaping

Reviewed-by: Sage Weil <sage@inktank.com>
2014-04-28 14:11:20 -07:00
Yehuda Sadeh
5544a51df0 Merge pull request #1736 from ceph/wip-7500-wusui
Fix s3 tests in the rgw workunit.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
2014-04-28 14:06:11 -07:00
Warren Usui
9e3b8609cb Fix s3 tests in the rgw workunit.
Make it possible to set RGW_PORT with ENV variable.

Fixes: 7500
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2014-04-28 13:56:29 -07:00
Stephen F Taylor
3ec0040699 Added a new command line parameter (-i or --image=) that allows rbd-fuse to specify a single image to be made available within
the mount directory. The purpose of this is to allow a single RBD to be "mounted" in userspace without opening (and locking)
the other RBDs in the pool.

This is accomplished by performing a case-sensitive string compare in enumerate_images() when an image name is
specified on the command line. If no image name is specified, all images appear in the mount directory. If a non-existent
image name is specified, the mount directory is empty.

Signed-off-by: Stephen F Taylor <steveftaylor@gmail.com>
2014-04-28 14:49:30 -06:00
Sage Weil
a60e15af8a doc/release-notes: v0.67.8 notes
Signed-off-by: Sage Weil <sage@inktank.com>
2014-04-28 12:40:04 -07:00
Yehuda Sadeh
bcf92c496a rgw: fix url escaping
Fixes: #8202
This fixes the radosgw side of issue #8202. Needed to cast value
to unsigned char, otherwise it'd get padded.

Backport: dumpling

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
2014-04-28 10:14:07 -07:00
Yan, Zheng
3e41f92b84 client: cleanup unsafe requests if MDS session is reset
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-04-27 21:40:06 +08:00
Yan, Zheng
70ab0793cc client: wake up cap waiters if MDS session is reset
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-04-27 21:40:06 +08:00
Yan, Zheng
b8aa58af79 client: drop dirty/flushing caps if auth MDS' session is reset
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-04-27 21:40:06 +08:00
Yan, Zheng
09a1bc5a46 client: add asok command to kick sessions that were remote reset
Fixes: #8021
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-04-27 21:40:00 +08:00
Yan, Zheng
c1bf7dbbe1 Merge pull request #1729 from ceph/wip-7966
readlink result in resapwn

Reviewed-by: Yan, Zheng <zheng.z.yan@intel.com>
2014-04-26 20:49:16 +08:00