Commit Graph

15147 Commits

Author SHA1 Message Date
Sage Weil
902f699c38 qa: add clone_range tool
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-29 12:58:49 -07:00
Sage Weil
7d7544192f qa: file_layout.sh is kclient only
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-29 10:49:01 -07:00
Greg Farnum
8bcc639ab2 messenger: add a set_ip function to initialize the IP
Previously we only filled in IPs if they were set by the config file
(at startup) or after we connected to the monitor. Unfortunately this
could lead to conditions where the OSD connected to itself without
knowing that's what it was doing, because the cluster_addr IP wasn't
filled in until much too late. We've provided a mechanism for filling
in the IP and do so in OSD::boot_start.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-29 10:47:05 -07:00
Sage Weil
1247a22453 qa: fix file_layout.sh mode
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-29 09:48:26 -07:00
Sage Weil
92e0fac0a8 mds: fix snaprealm split for dir inode
The snaprealm root directory inode belongs to the snaprealm, at least
currently.  This make split_at() consistent with the non-directory case
at the top of the method, and prevents a crash later down the line when we
try to tear down the parent snaprealm and we aren't part of it.

Fixes: #1238
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-29 09:46:35 -07:00
Sage Weil
b5510a6641 qa: move file_layout into workunits/misc
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-29 09:51:36 -07:00
Yehuda Sadeh
c292cce309 radosgw_admin: fix cli test 2011-06-29 09:37:56 -07:00
Yehuda Sadeh
a97f5eebb5 Merge branch 'master' of ssh://ceph.newdream.net/git/ceph 2011-06-28 16:33:49 -07:00
Yehuda Sadeh
69952c18ec Merge branch 'master' into rgw 2011-06-28 16:32:43 -07:00
Sage Weil
f7fb547549 qa: make kernel_untar_build.sh output more helpful
- rm -rv
- list remaining files on failure

to help debug #1230

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-28 16:07:39 -07:00
Greg Farnum
016cf6739e testceph: test file opens with extra slashes
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-28 14:19:29 -07:00
Greg Farnum
f5cbe50eb8 testceph: expand test cases
Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-28 14:18:58 -07:00
Greg Farnum
a851a1556f filepath: don't parse multiple slashes as multiple dname bits.
This causes all kinds of trouble if it occurs because most of the
code isn't prepared for it. So prevent that from happening except
on messages that were explicitly created that way.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-28 14:13:55 -07:00
Greg Farnum
d1fcffad6c Resetter: Check return values from Journaler.
And clean up the shutdown a bit.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-28 12:37:48 -07:00
Greg Farnum
2c70bb8f7f Journaler: pay attention to return codes from read head.
Previously we ignored them, except for printing them out. This could
lead to bad things like creating new journals for non-existent MDSes
if you entered an invalid rank during --reset-journal.

Also assert that the stripe unit is valid
before using it as  a divisor.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-28 12:37:48 -07:00
Samuel Just
a440fd091e ReplicatedPG: Fix some obc leaks
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-28 11:23:50 -07:00
Samuel Just
33aa578656 PG: simplify merge_log, remove old objects
Previously, some old objects could escape removal during a log merge.
This patch also simplifies merge_log somewhat.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-28 11:23:50 -07:00
Samuel Just
b418896d43 PG: fix add_next_event and merge add_event
Previously, we would assume that we had an object at the prior_version
in the log event if we encounter it but don't see the object in missing.
Now, if prior_version < log_tail, we assume that we do not have the
object.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-28 11:23:50 -07:00
Sage Weil
fab24c8076 filestore: allow FIEMAP to be disabled via conf
The ext4 fiemap ioctl is buggy in some older kernels.  Allow the admin to
disable it.

Fixes: #1222
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-28 10:54:53 -07:00
Greg Farnum
033f2d6327 qa: add file_layout.sh workunit
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-28 10:36:26 -07:00
Greg Farnum
0568d5cb50 mds: make cast explicit to suppress compiler warning.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-28 10:36:26 -07:00
Sage Weil
7612c7629b Merge branch 'next' 2011-06-28 09:41:09 -07:00
Yehuda Sadeh
fb81442ca6 testradospp: fix compilation 2011-06-28 09:18:36 -07:00
Greg Farnum
1446d6de01 mon: Guard injectargs parsing to prevent crashes on bad input
While we're at it, reply to injectargs commands instead of
doing it silently.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-28 08:29:38 -07:00
Greg Farnum
6a7e635aaf mds: Explicitly initialize layout fields, and to the correct values.
We were previously encoding an fl_pg_preferred of 0, which did
horrible things to the kernel client since 0 is a valid osd to ask for!
To make such things easier to track down in the future, explicitly
fill in defaults when memsetting the struct here.

(There remain other places that memset the struct to zero without
a lot of checks. But we definitely don't want to force them all
to fill in the individual fields, as that's fragile, and since they
don't seem to be breaking anything yet I'm inclined to leave them as
they are.)

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-28 08:19:57 -07:00
Sage Weil
64b1b2c70f v0.30 2011-06-27 22:23:56 -07:00
Sage Weil
842ec2263a debian: drop python-support version req 2011-06-27 22:23:56 -07:00
Yehuda Sadeh
e27a893979 rados: encode bufferlist in watch-notify 2011-06-27 17:21:36 -07:00
Yehuda Sadeh
01118352b9 rados: encode bufferlist in watch-notify 2011-06-27 17:21:05 -07:00
Yehuda Sadeh
6d6b05d8b1 rgw: fix some issues with call to clone_range 2011-06-27 17:21:05 -07:00
Yehuda Sadeh
a0dcf682d3 rgw: fix clone_range 2011-06-27 17:21:05 -07:00
Yehuda Sadeh
e5801728c9 rgw: radosgw_admin --help typo 2011-06-27 17:21:05 -07:00
Yehuda Sadeh
d03404269d rgw: implement atomic multipart upload, atomic copy 2011-06-27 17:21:05 -07:00
Yehuda Sadeh
dbee699278 rgw: atomic put 2011-06-27 17:21:05 -07:00
Yehuda Sadeh
7bbdcdbaab rgw: radosgw_admin user rm --purge-data 2011-06-27 17:21:05 -07:00
Josh Durgin
ef25dbbd08 config: remove unused iat options
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-06-27 14:57:36 -07:00
Greg Farnum
19614bb868 testceph: actually call closedir on opened directory.
Otherwise testceph hangs because it's still got things open!
Fixes #1228

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-27 12:07:45 -07:00
Greg Farnum
92b0e8e8e4 qa: initial commit of file_layout.sh
This tests the file layout functionality. Right now you need to
check the comparisons yourself. Expect that to change shortly.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-06-27 12:07:45 -07:00
Sage Weil
58e4dc19d1 filer: no need for tid_t here
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-27 11:40:09 -07:00
Sage Weil
c6f2c32a65 client: print cache size during trim for debug
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-27 10:10:35 -07:00
Samuel Just
ea73a5cd77 FileStore: fix error in ALIGN and ALIGN_UP
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-25 01:22:23 -07:00
Sage Weil
034aa0868d radsogw_admin: fix clitest
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-24 21:04:38 -07:00
Sage Weil
f7b2555ea5 testrados_delete_pool_while_open: fix printf args
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-24 20:53:35 -07:00
Sage Weil
bd7e3e0190 radosgw_admin: --help/-h
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-24 20:39:49 -07:00
Colin Patrick McCabe
6a3626d373 create testrados_delete_pool_while_open
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-24 17:30:00 -07:00
Samuel Just
8ba05c44ec PG: assemble_backlog - fix comparison error, tail is non-inclusive
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-24 16:51:25 -07:00
Sage Weil
24a26c66fa client: fix trim_caps
We can't blindly remove caps from inodes because we need at least one cap
for any inode in our cache.  Try to trim non-essential caps (when there's
>1), otherwise try to drop referring dentries and indirectly release caps
that way.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-24 16:49:29 -07:00
Sage Weil
15dd4f722f client: fix mds touch 2011-06-24 16:49:29 -07:00
Sage Weil
4c47df35c3 client: prefer auth cap in caps_issued_mask()
If we have an auth cap, prefer to touch that one.  This helps consolidate
caps on a single mds and allows mds replicas to eventually recall their
state.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-24 16:49:29 -07:00
Sage Weil
4e2a8fab14 client: touch cap on lookup even if we use the dentry lease
Touch the dir cap for the lease's mds even if we use the lease to traverse.
This makes the trim_caps() behave better because it keeps the dentry and
session cap LRUs in sync.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-24 16:49:29 -07:00