]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
John Spray [Fri, 27 Jan 2017 16:32:49 +0000 (17:32 +0100)]
Merge pull request #12440 from runsisi/wip-fix-fp-exception
include/fs_types: fix unsigned integer overflow
Reviewed-by: Sage Weil <sage@redhat.com>
John Spray [Fri, 27 Jan 2017 14:39:41 +0000 (15:39 +0100)]
Merge pull request #13088 from jcsp/wip-16397-unpin
qa: unpin knfs from ubuntu
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Dan Mick [Fri, 27 Jan 2017 03:43:34 +0000 (19:43 -0800)]
Merge pull request #13148 from tchaikov/wip-18692
packaging: install libceph-common.so* not libceph-common.so.*
Reviewed-by: Dan Mick <dmick@redhat.com>
Kefu Chai [Fri, 27 Jan 2017 02:43:36 +0000 (10:43 +0800)]
packaging: install libceph-common.so* not libceph-common.so.*
Fixes: http://tracker.ceph.com/issues/18692
Signed-off-by: Kefu Chai <kchai@redhat.com>
Josh Durgin [Thu, 26 Jan 2017 23:50:53 +0000 (15:50 -0800)]
Merge pull request #13087 from athanatos/wip-17831-18583
osd/PrimaryLogPG::try_lock_for_read: give up if missing
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Thu, 26 Jan 2017 23:14:45 +0000 (15:14 -0800)]
Merge pull request #12934 from athanatos/wip-18529
test/pybind/test_rados.py: tolerate TimedOut in test_ping_monitor
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Mykola Golub [Thu, 26 Jan 2017 21:44:01 +0000 (23:44 +0200)]
Merge pull request #13110 from dillaman/wip-18666
librbd: prevent self-blacklisting during break lock
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Marcus Watts [Wed, 11 Jan 2017 05:06:15 +0000 (00:06 -0500)]
radosgw/swift: clean up flush / newline behavior.
The current code emits a newline after swift errors, but fails
to account for it when it calculates 'content-length'. This results in
some clients (go github.com/ncw/swift) producing complaints about the
unsolicited newline such as this,
Unsolicited response received on idle HTTP channel starting with "\n"; err=<nil>
This logic eliminates the newline on flush. This makes the content length
calculation correct and eliminates the stray newline.
There was already existing separator logic in the rgw plain formatter
that can emit a newline at the correct point. It had been checking
"len" to decide if previous data had been emitted, but that's reset to 0
by flush(). So, this logic adds a new per-instance variable to separately
track state that it emitted a previous item (and should emit a newline).
Fixes: http://tracker.ceph.com/issues/18473
Signed-off-by: Marcus Watts <mwatts@redhat.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Samuel Just [Sat, 14 Jan 2017 00:14:46 +0000 (16:14 -0800)]
test/pybind/test_rados.py: tolerate empty output from mon ping
Fixes: http://tracker.ceph.com/issues/18529
Signed-off-by: Samuel Just <sjust@redhat.com>
Yehuda Sadeh [Thu, 26 Jan 2017 19:34:38 +0000 (11:34 -0800)]
Merge pull request #13007 from Werkov/rgw-fix-tempurl-url-encoding-master
rgw: Use decoded URI when verifying TempURL
Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
Yehuda Sadeh [Thu, 26 Jan 2017 18:49:41 +0000 (10:49 -0800)]
Merge pull request #12444 from oritwas/wip-rgw-fix-secondary_versioning
rgw: complete versioning enablement after sending it to meta master
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Sage Weil [Thu, 26 Jan 2017 17:21:15 +0000 (11:21 -0600)]
Merge pull request #13074 from liewegas/wip-bluestore-crc-error
os/bluestore: include logical object offset in crc error
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Kefu Chai [Thu, 26 Jan 2017 15:59:36 +0000 (23:59 +0800)]
Merge pull request #12878 from tchaikov/wip-cmake
cmake: link ceph-{mgr,mon,mds,osd} against libcommon statically
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Kefu Chai [Thu, 26 Jan 2017 11:23:09 +0000 (19:23 +0800)]
Merge pull request #13122 from orendu/fix-rdma-compilation
cmake: Fix broken async/rdma compilation since move to libceph-common
Reviewed-by: Adir Lev <adirl@mellanox.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Amir Vadai <amir@vadai.me>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Haomai Wang [Thu, 26 Jan 2017 10:25:54 +0000 (18:25 +0800)]
Merge pull request #13101 from Adirl/fix_mem_leak
msg/async/rdma: Fix memory leak of OSD
Reviewed-by: Haomai Wang <haomai@xsky.com>
Oren Duer [Thu, 26 Jan 2017 07:48:20 +0000 (07:48 +0000)]
cmake: Fix broken async/rdma compilation since move to libceph-common
Was broken since merge of pull request #12840
Signed-off-by: Oren Duer <oren@mellanox.com>
Kefu Chai [Thu, 26 Jan 2017 07:28:01 +0000 (15:28 +0800)]
Merge pull request #13075 from tchaikov/wip-zstd
compressor/zstd: add zstd compression plugin
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Jason Dillaman [Wed, 25 Jan 2017 19:45:56 +0000 (14:45 -0500)]
librbd: prevent self-blacklisting during break lock
Fixes: http://tracker.ceph.com/issues/18666
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Mykola Golub [Wed, 25 Jan 2017 17:08:47 +0000 (19:08 +0200)]
Merge pull request #13086 from dillaman/wip-librbd-lock-init-race
librbd: race initializing exclusive lock and configuring IO path
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Sage Weil [Thu, 19 Jan 2017 18:57:33 +0000 (12:57 -0600)]
compressor/zstd: add zstd compressor
Build/link of zstd itself is maybe not ideal, but it works fine.
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Tue, 20 Sep 2016 14:44:32 +0000 (09:44 -0500)]
add src/zstd submodule
Signed-off-by: Sage Weil <sage@redhat.com>
Sarit Zubakov [Sun, 22 Jan 2017 14:25:32 +0000 (16:25 +0200)]
msg/async/rdma: Fix memory leak of OSD
We can delete qp only in RDMADispatcher::handle_async_event() which call
"erase_qpn" to enable deletion.
issue: 959004
Change-Id: Iab69cb365b37a09e9608d4b3c595e05278bbe021
Signed-off-by: Sarit Zubakov <saritz@mellanox.com>
Kefu Chai [Wed, 25 Jan 2017 14:32:13 +0000 (22:32 +0800)]
Merge pull request #13090 from dzafman/wip-18624
Revert "PrimaryLogPG::failed_push: update missing as well"
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Haomai Wang [Wed, 25 Jan 2017 14:22:22 +0000 (22:22 +0800)]
Merge pull request #13096 from amirv/new_connect_arg
msg/RDMA: Fix broken compilation due to new argument in net.connect()
Reviewed-by: Haomai Wang <haomai@xsky.com>
Sage Weil [Wed, 25 Jan 2017 12:35:36 +0000 (06:35 -0600)]
Merge pull request #9348 from LiumxNL/fix-mksnap
mon/OSDMonitor: make snaps on tier pool should not be allowed
Sage Weil [Wed, 25 Jan 2017 12:35:10 +0000 (06:35 -0600)]
Merge pull request #12937 from chendave/auth_method
auth: Enhancement for the supported auth methods
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 25 Jan 2017 12:34:52 +0000 (06:34 -0600)]
Merge pull request #12992 from tchaikov/wip-demangle-on-freebsd
common/BackTrace: demangle on FreeBSD also
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Sage Weil [Wed, 25 Jan 2017 12:34:24 +0000 (06:34 -0600)]
Merge pull request #12620 from varadakari/wip-rocksdb-histogram
os/bluestore: kvdb histogram
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Sage Weil [Wed, 25 Jan 2017 12:33:48 +0000 (06:33 -0600)]
Merge pull request #13031 from dzafman/wip-calc-stats
osd: Calculate degraded and misplaced more accurately
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 25 Jan 2017 12:24:30 +0000 (06:24 -0600)]
Merge pull request #13032 from liewegas/wip-bluefs-append
os/bluestore/BlueFS: tune flushing of writes
Tested-by: Chagam, Anjaneya <anjaneya.chagam@intel.com>
Sage Weil [Wed, 25 Jan 2017 12:22:41 +0000 (06:22 -0600)]
Merge pull request #13072 from wido/issue-18638
osd: Return correct osd_objectstore in OSD metadata
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Sage Weil [Wed, 25 Jan 2017 12:22:15 +0000 (06:22 -0600)]
Merge pull request #13018 from songbaisen/s11
global: we need to handle the init_on_startup return value when global_init.
Reviewed-by: Kefu Chai <kchai@redhat.com>
Amir Vadai [Wed, 25 Jan 2017 08:36:00 +0000 (10:36 +0200)]
msg/RDMA: Fix broken compilation due to new argument in net.connect()
Fixes: 6e4ed291afc3 ("msg: add ms_bind_before_connect to bind before connect")
Change-Id: Ia45f215b5d59dfc8545017518e5162404059829e
Signed-off-by: Amir Vadai <amir@vadai.me>
David Zafman [Wed, 25 Jan 2017 00:30:24 +0000 (16:30 -0800)]
Revert "PrimaryLogPG::failed_push: update missing as well"
This reverts commit
dd48b972afde2dfa9ab1a6942c7961750222986d .
Fixes: http://tracker.ceph.com/issues/18624
Signed-off-by: David Zafman <dzafman@redhat.com>
John Spray [Tue, 24 Jan 2017 22:06:29 +0000 (22:06 +0000)]
qa: unpin knfs from ubuntu
We have an updated nfs-utils that is no longer
generating spurious selinux warnings on CentOS.
Fixes: http://tracker.ceph.com/issues/16397
Signed-off-by: John Spray <john.spray@redhat.com>
Adam C. Emerson [Tue, 24 Jan 2017 20:16:44 +0000 (15:16 -0500)]
Merge pull request #12445 from pritha-srivastava/wip_glob_func
rgw: Added a globbing method for AWS Policies.
Matt Benjamin [Tue, 24 Jan 2017 19:58:58 +0000 (14:58 -0500)]
Merge pull request #13084 from linuxbox2/wip-librgw-parentref
rgw_file: interned RGWFileHandle objects need parent refs
Sage Weil [Tue, 24 Jan 2017 19:52:52 +0000 (13:52 -0600)]
Merge pull request #13083 from dachary/wip-15653-crush-weights
crush: verify weights is influenced by the number of replicas
Reviewed-by: Sage Weil <sage@redhat.com>
Mykola Golub [Tue, 24 Jan 2017 19:32:13 +0000 (21:32 +0200)]
Merge pull request #13076 from dillaman/wip-18617
test: use librados API to retrieve config params
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
David Zafman [Tue, 24 Jan 2017 19:02:38 +0000 (11:02 -0800)]
Merge pull request #12866 from dzafman/wip-18471
qa/workunits/ceph-helpers: wait_for_clean() races with pg creation
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Matt Benjamin [Sat, 31 Dec 2016 04:30:16 +0000 (23:30 -0500)]
rgw_file: interned RGWFileHandle objects need parent refs
RGW NFS fhcache/RGWFileHandle operators assume existence of the
full chain of parents from any object to the its fs_root--this is
a consequence of the weakly-connected namespace design goal, and
not a defect.
This change ensures the invariant by taking a parent ref when
objects are interned (when a parent ref is guaranteed). Parent
refs are returned when objects are destroyed--essentially by the
invariant, such a ref must exist.
The extra ref is omitted when parent->is_root(), as that node is
not in the LRU cache.
Fixes: http://tracker.ceph.com/issues/18650
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Matt Benjamin [Tue, 24 Jan 2017 17:15:12 +0000 (12:15 -0500)]
Merge pull request #13038 from linuxbox2/wip-librgw-invalidate
rgw_file: add timed namespace invalidation
Jason Dillaman [Tue, 24 Jan 2017 15:34:05 +0000 (10:34 -0500)]
librbd: race initializing exclusive lock and configuring IO path
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Kefu Chai [Tue, 24 Jan 2017 15:20:16 +0000 (23:20 +0800)]
Merge pull request #12916 from Liuchang0812/xmlformatter-fix
common/xmlformatter: turn on underscored and add unittest
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Jason Dillaman [Tue, 24 Jan 2017 14:48:43 +0000 (09:48 -0500)]
librbd: improve debug logging for lock / watch state machines
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 24 Jan 2017 02:24:41 +0000 (21:24 -0500)]
test: use librados API to retrieve config params
The CephContext object is not ABI-stable, so it is necessary to
use the "conf_get" librados methods to safely retrieve a setting.
Fixes: http://tracker.ceph.com/issues/18617
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Loic Dachary [Tue, 24 Jan 2017 12:08:32 +0000 (13:08 +0100)]
crush: verify weights is influenced by the number of replicas
Refs: http://tracker.ceph.com/issues/15653
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
Matt Benjamin [Thu, 19 Jan 2017 23:14:30 +0000 (18:14 -0500)]
rgw_file: add timed namespace invalidation
With change, librgw/rgw_file consumers can provide an invalidation
callback, which is used by the library to invalidate directories
whose contents should be forgotten.
The existing RGWLib GC mechanism is being used to drive this. New
configuration params have been added. The main configurable is
rgw_nfs_namespace_expire_secs, the expire timeout.
Updated post Yehuda review.
Fixes: http://tracker.ceph.com/issues/18651
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Haomai Wang [Tue, 24 Jan 2017 10:07:05 +0000 (18:07 +0800)]
Merge pull request #12956 from liuhongtong/wip-nvmedevice
os/bluestore: fix NVMEDevice::open failure if serial number ends with a …
Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Pan liu <liupan1111@gmail.com>
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Wido den Hollander [Mon, 23 Jan 2017 20:06:05 +0000 (21:06 +0100)]
osd: Return correct osd_objectstore in OSD metadata
Do not simply read the configuration value as it might have changed
during OSD startup by reading the type from disk.
Fixes: http://tracker.ceph.com/issues/18638
Signed-off-by: Wido den Hollander <wido@42on.com>
Haomai Wang [Tue, 24 Jan 2017 04:01:27 +0000 (12:01 +0800)]
Merge pull request #13055 from optimistyzy/2017123_random_read
os/bluestore/NVMEDevice.cc: fix the random read issue.
Reviewed-by: Haomai Wang <haomai@xsky.com>
optimistyzy [Mon, 23 Jan 2017 01:56:03 +0000 (09:56 +0800)]
os/bluestore/NVMEDevice.cc: use aio_wake in both read and read_random
There are some issues with random read, it seems that
we did not call aio_wake.
Signed-off-by: optimistyzy <optimistyzy@gmail.com>
Sage Weil [Tue, 24 Jan 2017 03:16:21 +0000 (21:16 -0600)]
Merge pull request #12929 from wjwithagen/wip-wjw-empty-cluster_network
common/pick_address.cc: Copy public_netw to cluster_netw if cluster empty
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 24 Jan 2017 03:16:09 +0000 (21:16 -0600)]
Merge branch 'master' into wip-wjw-empty-cluster_network
Sage Weil [Tue, 24 Jan 2017 00:51:06 +0000 (18:51 -0600)]
os/bluestore: include logical object offset in crc error message
This is more useful to the user.
Signed-off-by: Sage Weil <sage@redhat.com>
Yuri Weinstein [Mon, 23 Jan 2017 23:00:26 +0000 (15:00 -0800)]
Merge pull request #12901 from yuyuyu101/wip-msgr-client-bind
msg: client bind
Reviewed-by: Sage Weil <sage@redhat.com>
Nathan Cutler [Mon, 23 Jan 2017 21:25:34 +0000 (22:25 +0100)]
Merge pull request #13036 from SUSE/wip-michal-koutny
mailmap: Michal Koutny affiliation
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Jason Dillaman [Mon, 23 Jan 2017 15:39:16 +0000 (10:39 -0500)]
Merge pull request #12326 from vshankar/wip-15028
librbd: create fewer empty objects during copyup
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Mon, 23 Jan 2017 15:24:40 +0000 (10:24 -0500)]
os/bluestore/BlueFS: tolerate longer tail
The important requirement here is that we have enough buffer to write the
whole page.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 20 Jan 2017 18:59:56 +0000 (13:59 -0500)]
os/bluestore/BlueFS: increase size threshold before we flush (and generate io)
Having this too high means you might be more bursty. In practice,
though, the commit path is doing explicit syncs on small chunks
anyway. And compaction work should probably stay reasonably chunky.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 20 Jan 2017 18:57:42 +0000 (13:57 -0500)]
os/bluestore/BlueFS: preallocate larger write buffer
Signed-off-by: Sage Weil <sage@redhat.com>
Ramesh Chander [Mon, 2 Jan 2017 08:01:55 +0000 (00:01 -0800)]
unittest_bit_alloc race fix
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Haomai Wang [Mon, 23 Jan 2017 14:44:07 +0000 (22:44 +0800)]
Merge pull request #13056 from optimistyzy/123_logic
NVMEDevice.cc: cleanup the logic in data_buf_next_sge
Reviewed-by: Haomai Wang <haomai@xsky.com>
Kefu Chai [Mon, 23 Jan 2017 12:07:35 +0000 (20:07 +0800)]
Merge pull request #12938 from LiumxNL/fix-process-osd-failure
mon/OSDMonitor: fix process osd failure
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 23 Jan 2017 11:43:35 +0000 (19:43 +0800)]
Merge pull request #9419 from songbaisen/a4
osdmaptool: show all the pg map to osds info
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Mon, 23 Jan 2017 11:42:14 +0000 (19:42 +0800)]
Merge pull request #12828 from donglinpeng/dlppull
common/buffer: close pipe fd if set nonblocking fails.
Reviewed-by: Kefu Chai <kchai@redhat.com>
optimistyzy [Mon, 23 Jan 2017 02:53:32 +0000 (10:53 +0800)]
NVMEDevice.cc: cleanup the logic in data_buf_next_sge
Signed-off-by: optimistyzy <optimistyzy@gmail.com>
Sage Weil [Sun, 22 Jan 2017 16:45:37 +0000 (10:45 -0600)]
Merge pull request #12980 from liewegas/wip-osdop-printer
osd/osd_types: clean up OSDOp printers
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Thu, 19 Jan 2017 12:57:29 +0000 (06:57 -0600)]
osd/osd_types: clean up OSDOp printers
Specify which ones get offset~length instead of blacklisting those that
don't.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 22 Jan 2017 16:44:04 +0000 (10:44 -0600)]
Merge pull request #12950 from liewegas/wip-omap-getkeys
osd: extend OMAP_GETKEYS and GETVALS to include a 'more' output field
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Sun, 22 Jan 2017 16:43:27 +0000 (10:43 -0600)]
Merge pull request #12961 from songbaisen/s10
crush: when osd_location_hook does not exist, we should exit error.
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 22 Jan 2017 16:43:00 +0000 (10:43 -0600)]
Merge pull request #12975 from wonzhq/fix-pgstats-down
mon: don't set last_osd_report when the pg stats msg is ignored
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Sun, 22 Jan 2017 16:42:33 +0000 (10:42 -0600)]
Merge pull request #12976 from LiumxNL/wip-170118
osd/OSDMap: get_previous_up_osd_before() may run into endless loop
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 22 Jan 2017 16:42:08 +0000 (10:42 -0600)]
Merge pull request #12981 from liewegas/wip-crush-move-osd
mon/OSDMonitor: make 'osd crush move ...' work on osds
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Sun, 22 Jan 2017 16:41:55 +0000 (10:41 -0600)]
Merge pull request #13008 from athanatos/wip-clone-range
osd,librados: remove clone_range and associated multi-object cruft
Reviewed-by: Sage Weil <sage@redhat.com>
Mykola Golub [Sun, 22 Jan 2017 12:52:32 +0000 (14:52 +0200)]
Merge pull request #13033 from dillaman/wip-18618
journal: don't hold future lock during assignment
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Hongtong Liu [Tue, 17 Jan 2017 07:41:08 +0000 (15:41 +0800)]
bluestore: Release segs before delete task when write fails
Fix assert failure in ~Task().
Signed-off-by: Hongtong Liu <hongtong.liu@istuary.com>
Hongtong Liu [Sun, 22 Jan 2017 09:25:04 +0000 (17:25 +0800)]
os/bluestore: fix NVMEDevice::open failure if serial number ends with a number
buf in effect is the serial number in ceph.conf and
the serial number consists of 16 hexadecimal characters.
1. In order to avoid ignoring the numbers, scan buf
with isxdigit.
2. In order to ignore all the potential garbage,
scan buf from the beginning.
Signed-off-by: Hongtong Liu <hongtong.liu@istuary.com>
Kefu Chai [Thu, 19 Jan 2017 04:36:06 +0000 (12:36 +0800)]
common/BackTrace: demangle on FreeBSD also
the output on FreeBSD/clang looks like:
1: 0x44bfb3 <_Z3foov+0x413> at /usr/srcs/Ceph/work/ceph/build/bin/unittest_back_trace
2: 0x44c23e <_ZN20BackTrace_Basic_Test8TestBodyEv+0x1e> at /usr/srcs/Ceph/work/ceph/build/bin/unittest_back_trace
3: 0x4d068a <_ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc+0x7a> at /usr/srcs/Ceph/work/ceph/build/bin/unittest_back_trace
4: 0x4b5977 <_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc+0x77> at /usr/srcs/Ceph/work/ceph/build/bin/unittest_back_trace
...
and update the test accordingly, as FreeBSD/clang uses '<>' to enclose
the mangled function and offset.
also, only demangle the C++ mangled names. those names always start with
"_Z". on FreeBSD, after demangling, "main" is turned into "unsigned
long", which does not make sense.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Xie Xingguo [Sun, 22 Jan 2017 05:35:50 +0000 (13:35 +0800)]
Merge pull request #13051 from chuanhong-wang/dev_conf_clean
common: delete unused conf "filestore_debug_disable_sharded_check"
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
chuanhong.wang [Sun, 22 Jan 2017 03:26:57 +0000 (11:26 +0800)]
common: delete unused conf "filestore_debug_disable_sharded_check"
Signed-off-by: Chuanhong Wang <chuanhong.wang@163.com>
Mingxin Liu [Fri, 27 May 2016 10:42:52 +0000 (18:42 +0800)]
test: cannot create pool snap on tier
Signed-off-by: Mingxin Liu <mingxin@xsky.com>
Mingxin Liu [Thu, 26 May 2016 10:53:34 +0000 (18:53 +0800)]
OSDMonitor: make pool snaps on cache tier should be not allowed
Signed-off-by: Mingxin Liu <mingxin@xsky.com>
Mykola Golub [Sat, 21 Jan 2017 15:52:42 +0000 (17:52 +0200)]
Merge pull request #13042 from dillaman/wip-librbd-compile-warning
librbd: fixed initializer list ordering
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Jason Dillaman [Fri, 20 Jan 2017 19:26:43 +0000 (14:26 -0500)]
journal: don't hold future lock during assignment
It's possible that the future raced with its owner and reaches
an empty reference count. This was resulting in the future being
destructed while its lock was still held.
Fixes: http://tracker.ceph.com/issues/18618
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sat, 21 Jan 2017 14:17:36 +0000 (09:17 -0500)]
librbd: fixed initializer list ordering
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Venky Shankar [Mon, 5 Dec 2016 08:43:23 +0000 (14:13 +0530)]
test / librbd: create few empty objects during flatten
Fixes: http://tracker.ceph.com/issues/15028
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Venky Shankar [Thu, 1 Dec 2016 05:00:25 +0000 (10:30 +0530)]
test / librbd: Write ones instead of zeroes to test images
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Venky Shankar [Thu, 1 Dec 2016 04:57:30 +0000 (10:27 +0530)]
librbd: Create few empty objects during copyup
This is based out of Doug's (@fullerdj) work (PR #9329)
as an attempt to avoid creating empty objects when
flattening an image and otherwise whenever unnecessary.
This gives good optimization benefit when a parent image
is sparsely populated. Moreover, this change is required
for correct behavior when checking disk usage of a clone
(which used to report fully allocated image due to all,
including empty objects being created during flatten).
Signed-off-by: Douglas Fuller dfuller@redhat.com
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Venky Shankar [Mon, 5 Dec 2016 09:20:06 +0000 (14:50 +0530)]
librbd: make has_parent() prone to callers from copyup
This is required when CopyupRequest would need to invoke
pre_object_map_update() as part of upcoming changes to
create fewer child image objects whenever possible.
CopyupRequest constructor accepts image extents as an
rvalue forcing the caller to transfer ownership to it
and leaving the original variable in an unspecified
stated making has_parent() return incorrect state when
invoked from CopyupRequest. Therefore, introduce a
private tracking state that can be used in place of
checking emptiness of parent image extents.
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Sage Weil [Wed, 18 Jan 2017 13:07:08 +0000 (07:07 -0600)]
PendingReleaseNotes: mention old clients vs new OSDs
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 16 Jan 2017 21:51:13 +0000 (16:51 -0500)]
rados: use bare omap_get_keys op
This handles the client-side looping on 'more' if the OSD limits
the response size.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 16 Jan 2017 20:17:03 +0000 (15:17 -0500)]
ceph_test_rados: pass nullptr for pmore for omap fetch
Assume OSD limits are hugh enough.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 16 Jan 2017 20:16:46 +0000 (15:16 -0500)]
rados: omap bench: pass null for pmore for omap fetch
Assume OSD limits are high enough for us.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 16 Jan 2017 20:16:20 +0000 (15:16 -0500)]
ceph_test_rados_*: use new omap methods
Make these tests pass nullptr for pmore. This codifies our
assumption that the OSD limits are high enough.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 16 Jan 2017 20:14:00 +0000 (15:14 -0500)]
librados: add omap_get_{keys,vals}2 with pmore output arg
Expose public methods that include a new output argument to indicate
whether there are more keys to fetch or not.
Mark the old interfaces deprecated.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 20 Jan 2017 03:09:35 +0000 (21:09 -0600)]
osdc/Objecter: infer ptruncated on old OSDs via max_entries
If we do not get an explicit 'more' value from the OSD, infer it by
checking whether we got the max requested entries. On old OSDs, which
don't enforce a limit, this will work. On new OSDs, we will get the
explicit result.
Signed-off-by: Sage Weil <sage@redhat.com>
Michal Koutný [Wed, 18 Jan 2017 19:15:29 +0000 (20:15 +0100)]
rgw: Use decoded URI when verifying TempURL
Instead of calliing url_decode directly, we reuse s->decoded_uri that is
initialized in RGWREST::preprocess().
Fixes: http://tracker.ceph.com/issues/18590
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Nathan Cutler [Fri, 20 Jan 2017 21:35:43 +0000 (22:35 +0100)]
doc: Michal Koutny affiliation
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Willem Jan Withagen [Mon, 16 Jan 2017 23:03:05 +0000 (00:03 +0100)]
PendingReleaseNotes: Specify the change in behaviour of assigning to public_netw
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>