Commit Graph

52373 Commits

Author SHA1 Message Date
Matt Benjamin
5d8b656136 rgw_file: force move semantics on rvalue refs in emplace_attrs
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:13:18 -04:00
Matt Benjamin
b9ce8405a5 rgw_file: remove RGWLibFS::mkdir() (no longer called)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:13:10 -04:00
Matt Benjamin
917a25d047 rgw_file: fix nfsns unit test when !created and !create
Avoid dereferencing unitialized top-level objects when !found and the
create option not present (when means we cannot create them).

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:13:00 -04:00
Matt Benjamin
bd2c681837 rgw_file: check for leaf dir objects and restore their state
This change makes Unix/NFS attributes persistent.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:12:50 -04:00
Matt Benjamin
9830f95878 rgw_file: use emplace_attr in both paths in mkdir2()
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:12:42 -04:00
Matt Benjamin
601b193874 rgw_file: use emplace_attr in RGWCreateBucket and RGWCopyObj
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:12:33 -04:00
Matt Benjamin
7a7de9b752 rgw_file: use emplace_attr in RGWPostObj and RGWPutMetadataBucket
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:12:23 -04:00
Matt Benjamin
8b2616b639 rgw_file: remove unused label in mkdir2()
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:12:15 -04:00
Matt Benjamin
6bda1e03e2 rgw_file: use emplace_attr in RGWPutObj::execute()
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:11:58 -04:00
Matt Benjamin
6a86ed9f8e rgw_file: encode ux attrs in mkdir2
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:11:09 -04:00
Matt Benjamin
8f5ff953c8 rgw_file: implement new mkdir2 with atomicity
Re-order lookup_fh, FLAG_CREATE and remote create operations,
and provide FLAG_LOCK, to get atomicity.

Other ops which need to linearize at lookup_fh still need to be
converted.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:11:00 -04:00
Matt Benjamin
34ba7c02ad rgw_file: add encode/decode hooks, emplace_attr
This change implements attr encode/decode glue for RGWGetObj and
RGWPutObj.  Both now have attr maps as member variables.

To save copies, callers producing attrs can use emplace_attr to
move attrs into the map.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:10:52 -04:00
Matt Benjamin
2dbefba0d8 rgw_file: move internals of rgw_read into RGWLibFS::read(...)
Initially, all RGWRequest logic was open coded, but it's all
moving into RGWLibFS to get better encapsulation (e.g., for atomicity).

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:10:44 -04:00
Matt Benjamin
8b01e12860 rgw_file: declare encoder for Unix object attributes
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:10:22 -04:00
Matt Benjamin
f87af2547f rgw_file: declare an attribute for all Unix/rgw_file attrs
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-04-12 16:09:57 -04:00
Sage Weil
77276aa709 Merge pull request #8559 from liewegas/wip-15643
rgw: fix unsafe c_str() usage

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-04-12 14:03:56 -04:00
Jenkins Build Slave User
4a2a6f7264 10.1.2 2016-04-12 17:42:56 +00:00
Sage Weil
489324f113 doc/configuration/filesystem-recommendations: recommend against ext4
Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-12 13:24:56 -04:00
Sage Weil
a8e286915d doc/release-notes: mention ext4 in the release notes
Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-12 13:07:50 -04:00
Sage Weil
112649fc02 doc/start/os-recommendations: drop ancient 'syncfs' note
...and with it it's mention of ext4.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-12 13:07:49 -04:00
Sage Weil
638fd2ec2b doc/rados/configuration: minor cleanup of inline xattr description
- whitespace
- it's not omap

Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-12 11:19:13 -04:00
Sage Weil
2601e2fb7e rgw/rgw_rados: use to_str() instead of c_str()
bufferlist::c_str() doesn't guarantee null termination.

Fixes: http://tracker.ceph.com/issues/15463
Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-12 11:15:14 -04:00
Sage Weil
d56e43950c buffer: add list::to_str()
Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-12 11:15:14 -04:00
Kefu Chai
0785c17a60 Merge pull request #8552 from tchaikov/wip-15426
PG: set epoch_created and parent_split_bits for child pg

Reviewed-by: Sage Weil <sage@redhat.com>
2016-04-12 23:09:55 +08:00
Kefu Chai
b9157310ea Merge pull request #8521 from stiopaa1/checkgenerated
check-generated.sh: can't source bash from sh

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-04-12 22:57:44 +08:00
Greg Farnum
507e7edbcf Merge branch 'jewel' 2016-04-12 07:32:48 -07:00
Greg Farnum
735f4be9e2 Merge remote-tracking branch 'origin/greg-fs-testing-411' into jewel 2016-04-12 07:32:34 -07:00
Sage Weil
bcfce592a2 doc: do not include ext4 as an example
Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-12 08:49:55 -04:00
Sage Weil
2c72c9aa52 doc/8/ceph-deploy: do not include ext4 as an example value
Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-12 08:48:46 -04:00
Sage Weil
61c4c1c99b doc: list ext4 last
Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-12 08:48:25 -04:00
Sage Weil
ae97840fa1 doc/dev: remove ancient filestore-filesystem-compat doc
This describes a problem we fixed years ago.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-04-12 08:39:00 -04:00
Avner BenHanoch
d5bc886fb8 xio: refactor release_xio_req -> release_xio_msg
avoid names that are misleading with accelio's terminology
(msg - is one way notification, req - is 2 ways notification)

Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
2016-04-12 15:21:28 +03:00
Avner BenHanoch
262d85c2cb xio: refactor flush_input_queue -> flush_out_queues
avoid misleading names

Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
2016-04-12 15:21:28 +03:00
Avner BenHanoch
81622185ae xio: refactor on_msg_req -> on_msg
avoid names that are misleading with accelio's terminology
(msg - is one way notification, req - is 2 ways notification)

Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
2016-04-12 15:21:28 +03:00
Avner BenHanoch
bde87d3a63 xio: fix invalid access to member pointer before it is being initialized
Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
2016-04-12 15:21:28 +03:00
Avner BenHanoch
5a746e6990 xio: use const for input argument in 2 functions' prototype
Signed-off-by: Avner BenHanoch <avnerb@mellanox.com>
2016-04-12 15:21:28 +03:00
Kefu Chai
8b985561ba PG: set epoch_created and parent_split_bits for child pg
if we have a wrong "created", OSD receiving an osd_pg_create message
could fail to project its history and crash. a bad split_bits could
mislead the monitor and osd, and hence cause problems.
* set child.info.history.epoch_created to osdmap.get_epoch() instead of
  using the parent's epoch_created
* set child.info.stats.parent_split_bits to the calculated split_bits
  instead using the parent's split_bits

Fixes: http://tracker.ceph.com/issues/15426
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-04-12 19:43:11 +08:00
Kefu Chai
2be6017c95 pybind/Makefile.am: fix build with ccache
as a work-around of https://bugs.python.org/issue8027, pass ${CC} and
${LDSHARED} to distutils, so we can still have a working compiling
command line even ${CC} is "ccache gcc".

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-04-12 12:47:48 +08:00
xie xingguo
142610aff8 os/filestore: fix return type mismatch for lfn parse
According to 755c685f2d,
we shall return a int value instead of bool now.
So if we fail to parse an object, we shall reset "false" into "-EINVAL" instead,
as "false" is always translated into 0, which is supposed to indicate a success.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-04-12 11:13:43 +08:00
Kefu Chai
5f9c77bd10 Merge pull request #8544 from xiexingguo/xxg-wip-15464
test: fix ut test failure caused by lfn change

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-04-12 10:50:52 +08:00
xie xingguo
bd1c548afa test: fix ut test failure caused by lfn change
"755c685f2d"
change the lfn_parse_object_name() return type from bool to int but does not
change the relevant test correspondingly.

Fixes: http://tracker.ceph.com/issues/15464
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-04-12 09:06:36 +08:00
Jason Dillaman
8087cfa8e9 librbd: do not return a failure if a peer cannot be notified of update
Maintenance ops that fail to notify a peer of the update should not
report a failure to the original user.

Fixes: http://tracker.ceph.com/issues/15351
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-04-11 20:58:50 -04:00
Greg Farnum
b922788841 Merge branch 'jewel-15402' of git://github.com/ukernel/ceph into greg-fs-testing
Do not ignore standby_for_fscid when selecting a standby.

https://github.com/ceph/ceph/pull/8536

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-04-11 14:13:07 -07:00
John Wilkins
45219e0e2a Fixed ceph-common install.
Fixes: #15438

Signed-off-by: John Wilkins <jowilkin@redhat.com>
2016-04-11 09:54:02 -07:00
Jason Dillaman
5e6783cce5 librbd: fixed bug in disabling non-primary image mirroring
librbd: fixed bug in disabling non-primary image mirroring

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-04-11 12:33:25 -04:00
Sage Weil
210d5d82ab Merge pull request #8496 from athanatos/wip-15312
os/filestore: force lfn attrs to be written atomically, restructure name length limits
2016-04-11 11:49:58 -04:00
Yan, Zheng
fd2f4555f9 mds: take standby_for_fscid into account in FSMap::find_unused()
Fixes: http://tracker.ceph.com/issues/15402
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-04-11 22:43:25 +08:00
Casey Bodley
f6820c0003 Merge pull request #8529 from oritwas/wip-rgw-fix-zone-set
radosgw-admin: allow
2016-04-11 09:56:47 -04:00
Ricardo Dias
b6d8c32ae8 librbd: Fixed bug in disabling non-primary image mirroring
It is only possible to remove image from rbd_mirroring object if the
mirroring image state is set to DISABLING.

Signed-off-by: Ricardo Dias <rdias@suse.com>
2016-04-11 14:50:30 +01:00
Karol Mroz
0b98b4fc87 rgw-rados: return RGWSystemMetaObj init directly
Signed-off-by: Karol Mroz <kmroz@suse.com>
2016-04-11 14:54:54 +02:00