Commit Graph

15122 Commits

Author SHA1 Message Date
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
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
Sage Weil
00fa99b9b6 client: touch dentries during path traversal
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-24 16:49:29 -07:00
Colin Patrick McCabe
283da88513 testrados: add NUM_THREADS
We can now test librados access with multiple simultaneous threads from
a single process.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-24 16:38:23 -07:00
Josh Durgin
008e02f5ea .gitignore: update for test_libceph_build
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-06-24 16:41:54 -07:00
Colin Patrick McCabe
13909c2423 global_init: make global_init_set_globals static
Now that the libraries have been de-globalized, this funtion should only
be used by global_init itself.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-24 14:30:36 -07:00
Colin Patrick McCabe
7dd919c2b4 CephFSInterface: de-globalize
CephFSInterface: de-globalize

liceph: add ceph_get_mount_context

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-24 14:08:10 -07:00
Colin Patrick McCabe
1ddc5521c6 Fix C_NotifyComplete::notify
C_NotifyComplete::notify was broken in an earlier change where I removed
a derr() without removing the if statement before it.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-24 11:55:13 -07:00
Sage Weil
0115855abb debian: obsync depends on python-xattr
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-24 11:05:23 -07:00
Sage Weil
a1c9bb3570 cleanup 2011-06-24 11:00:11 -07:00
Sage Weil
5c65661bb0 mon: order degraded before unfound
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-24 11:00:10 -07:00
Sage Weil
b00eb9f9a2 osd: clean up pool/pg_stat_t structs slightly
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-24 11:00:10 -07:00
Samuel Just
178d63e44e FileStore: ensure that CLONE_RANGE ranges are aligned
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-24 11:15:28 -07:00
Samuel Just
2fbf215b5b PG: assemble_backlog - fix comparison error, tail is non-inclusive
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-24 11:15:27 -07:00
Samuel Just
5175851af2 ReplicatedPG: make sure that rollback target is not degraded
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-24 11:15:27 -07:00
Samuel Just
f6320fee3c ReplicatedPG,OSD: clone srces need to be non-degraded
do_op: check that clone_range src sobjects are present on
replicas as well.  Also, clean up src_obc map if we encounter an error
before returning.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-06-24 11:15:27 -07:00
Colin Patrick McCabe
6696b0ff69 libceph: build without globals
libceph, libosdc, libclient: depend on libcommon rather than libglobal.
No more globals in libceph.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-24 10:52:25 -07:00
Colin Patrick McCabe
5af5b9f05e libceph: de-globalize
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-24 10:52:25 -07:00
Yehuda Sadeh
bfef6c86b9 filestore: remove warning 2011-06-24 10:44:54 -07:00
Colin Patrick McCabe
00c5539dec Filer, Journaler: deglobalize
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-24 10:35:42 -07:00
Colin Patrick McCabe
86b41ff96e ObjectCacher.cc: de-globalize
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-23 17:25:50 -07:00
Yehuda Sadeh
757926a19f rgw: restructure permissions verification
apparently 100-continue was broken
2011-06-23 17:06:30 -07:00
Yehuda Sadeh
1fc60a2baa filestore: don't bother doing fiemap on small ranges 2011-06-23 17:06:30 -07:00
Sage Weil
bd5b62aacf Merge remote branch 'origin/osd_metrics' 2011-06-23 16:27:29 -07:00
Sage Weil
c260b2541e update .gitignore 2011-06-23 16:26:23 -07:00
Colin Patrick McCabe
f347ea14d9 client/Client.cc: deglobalize
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-06-23 16:17:27 -07:00
Sage Weil
81900994f8 qa: wget -q for kenrel_untar_build.sh
Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-23 15:57:35 -07:00