]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
15 years agomds: Cleanup/doc updates
Greg Farnum [Thu, 3 Dec 2009 21:26:00 +0000 (13:26 -0800)]
mds: Cleanup/doc updates

15 years agomds: Add export killpoints
Greg Farnum [Thu, 3 Dec 2009 21:16:13 +0000 (13:16 -0800)]
mds: Add export killpoints

15 years agomds: Add killpoints for mds export
Greg Farnum [Thu, 3 Dec 2009 18:54:58 +0000 (10:54 -0800)]
mds: Add killpoints for mds export

15 years agomds: Add mds_kill_export_at asserts.
Greg Farnum [Thu, 3 Dec 2009 01:37:34 +0000 (17:37 -0800)]
mds: Add mds_kill_export_at asserts.
Create and begin documenting doc/killpoints.txt

15 years agoconfig: add kill arguments for mds import/export
Greg Farnum [Thu, 3 Dec 2009 01:25:03 +0000 (17:25 -0800)]
config: add kill arguments for mds import/export

15 years agomds: bracket mds journal events with {start,submit}_entry
Sage Weil [Thu, 3 Dec 2009 20:12:55 +0000 (12:12 -0800)]
mds: bracket mds journal events with {start,submit}_entry

This lets us catch nested journal events when they happen,
instead of down the line when dir/inode version numbers
look weird.

15 years agotodo
Sage Weil [Thu, 3 Dec 2009 00:57:07 +0000 (16:57 -0800)]
todo

snaprealm errors on kclient when ls -al .ceph/mds0/stray

15 years agodropped old aleung mds branch code
Sage Weil [Thu, 3 Dec 2009 00:56:07 +0000 (16:56 -0800)]
dropped old aleung mds branch code

See aleung_mds_security branch.

15 years agomon: fix allocation of low global_ids after mon restart
Sage Weil [Wed, 2 Dec 2009 23:03:50 +0000 (15:03 -0800)]
mon: fix allocation of low global_ids after mon restart

We need to set last_allocated in init().  Also avoid the
-1 casting and just use 0 instead.

15 years agotest_ioctls: print preferred_osd value from GET_LAYOUT ioctl
Sage Weil [Wed, 2 Dec 2009 22:46:13 +0000 (14:46 -0800)]
test_ioctls: print preferred_osd value from GET_LAYOUT ioctl

15 years agohash: fix whitespace
Sage Weil [Wed, 2 Dec 2009 20:03:53 +0000 (12:03 -0800)]
hash: fix whitespace

15 years agomds: set mdr->in[n] in rdlock_path_xlock_dentry
Sage Weil [Wed, 2 Dec 2009 20:00:19 +0000 (12:00 -0800)]
mds: set mdr->in[n] in rdlock_path_xlock_dentry

This keeps things consistent with what we'd get with
path_traverse.  Namely, it means that if done_locking gets
set to true, then a future call to rdlock_path_pin_ref can
bail out and return mdr->in[n] and get a correct value.

This fixes

 touch mnt/a
 ls mnt
 touch mnt/.ceph

mds hang on the create request.

15 years agomds: do not include /.ceph in readdir results
Sage Weil [Wed, 2 Dec 2009 19:26:24 +0000 (11:26 -0800)]
mds: do not include /.ceph in readdir results

15 years agolibrados: set id in messenger
Greg Farnum [Wed, 2 Dec 2009 01:31:18 +0000 (17:31 -0800)]
librados: set id in messenger

15 years agorados: read benchmark is asynchronous.
Greg Farnum [Tue, 1 Dec 2009 21:55:19 +0000 (13:55 -0800)]
rados: read benchmark is asynchronous.

15 years agoChange hump-backed variable names.
Greg Farnum [Tue, 1 Dec 2009 19:48:08 +0000 (11:48 -0800)]
Change hump-backed variable names.
Initialize data->in_flight!

15 years agorados: pull sequential benchmark into its own function
Greg Farnum [Sat, 21 Nov 2009 00:06:10 +0000 (16:06 -0800)]
rados: pull sequential benchmark into its own function

15 years agorados: remove iTime from object names for complete determinism
Greg Farnum [Fri, 20 Nov 2009 23:27:19 +0000 (15:27 -0800)]
rados: remove iTime from object names for complete determinism

15 years agorados: Handle errors slightly better
Greg Farnum [Fri, 20 Nov 2009 22:20:24 +0000 (14:20 -0800)]
rados: Handle errors slightly better

15 years agorados: split up function into more subfunctions
Greg Farnum [Fri, 20 Nov 2009 21:56:08 +0000 (13:56 -0800)]
rados: split up function into more subfunctions

15 years agorados: Deterministically fill data, reverse count:time order
Greg Farnum [Fri, 20 Nov 2009 18:48:18 +0000 (10:48 -0800)]
rados: Deterministically fill data, reverse count:time order

15 years agolibrados: minor comments
Greg Farnum [Fri, 20 Nov 2009 18:47:42 +0000 (10:47 -0800)]
librados: minor comments

15 years agorados: Move variables into data structure; rename to be generic
Greg Farnum [Fri, 20 Nov 2009 01:38:28 +0000 (17:38 -0800)]
rados: Move variables into data structure; rename to be generic

15 years agorados: Move benchmark functions into separate file
Greg Farnum [Thu, 19 Nov 2009 23:03:41 +0000 (15:03 -0800)]
rados: Move benchmark functions into separate file

15 years agoqa: Rename a file for future clarity.
Greg Farnum [Thu, 19 Nov 2009 23:02:58 +0000 (15:02 -0800)]
qa: Rename a file for future clarity.

15 years agoqa: specify test path as argument ot runallone.sh
Sage Weil [Wed, 2 Dec 2009 00:18:42 +0000 (16:18 -0800)]
qa: specify test path as argument ot runallone.sh

15 years agoconfig: preserve argv[0] if appropriate
Sage Weil [Wed, 2 Dec 2009 00:19:14 +0000 (16:19 -0800)]
config: preserve argv[0] if appropriate

This makes 'cfuse' show up in 'df' output.

15 years agoqa: test mdstable failures
Sage Weil [Wed, 2 Dec 2009 00:18:23 +0000 (16:18 -0800)]
qa: test mdstable failures

15 years agotodo
Sage Weil [Tue, 1 Dec 2009 22:59:57 +0000 (14:59 -0800)]
todo

the lockdep was probably due to the leak of request_mutex?

15 years agomds: inject mds failure during mdstable operations
Sage Weil [Tue, 1 Dec 2009 23:39:22 +0000 (15:39 -0800)]
mds: inject mds failure during mdstable operations

15 years agomds: log successful client reconnect
Sage Weil [Tue, 1 Dec 2009 22:47:52 +0000 (14:47 -0800)]
mds: log successful client reconnect

15 years agosepia: asdf
Sage Weil [Tue, 1 Dec 2009 22:45:14 +0000 (14:45 -0800)]
sepia: asdf

15 years agomds: journal/replay rollback on MDSTableServer
Sage Weil [Tue, 1 Dec 2009 22:43:07 +0000 (14:43 -0800)]
mds: journal/replay rollback on MDSTableServer

We journal prepare and commit; need to do rollback to!

15 years agomds: track _note_prepared/committed in normal path, too
Sage Weil [Tue, 1 Dec 2009 22:16:13 +0000 (14:16 -0800)]
mds: track _note_prepared/committed in normal path, too

This was broken by cd6f3817.

15 years agomds: pass do_eval through to adjsut_subtreeauth
Sage Weil [Tue, 1 Dec 2009 21:50:05 +0000 (13:50 -0800)]
mds: pass do_eval through to adjsut_subtreeauth

15 years agovstart: add [mds.a] section when no -x
Sage Weil [Tue, 1 Dec 2009 18:50:47 +0000 (10:50 -0800)]
vstart: add [mds.a] section when no -x

15 years agomds: drop requests on closed|closing|etc sessions
Sage Weil [Tue, 1 Dec 2009 18:38:47 +0000 (10:38 -0800)]
mds: drop requests on closed|closing|etc sessions

15 years agoceph.spec: mostly in line with .deb
Sage Weil [Thu, 26 Nov 2009 05:45:11 +0000 (21:45 -0800)]
ceph.spec: mostly in line with .deb

No packages for radosgw or libcrush/ceph/rados, though.

15 years agoobject: add missing include
Sage Weil [Thu, 26 Nov 2009 05:34:51 +0000 (21:34 -0800)]
object: add missing include

For sprintf().

15 years agomds: ignore reconnect if session state is closed
Sage Weil [Thu, 26 Nov 2009 05:23:57 +0000 (21:23 -0800)]
mds: ignore reconnect if session state is closed

On reconnect, if we didn't have a session from the journal, our Session
state will be 'closed'.  Act accordingly.

15 years agotodo
Sage Weil [Wed, 25 Nov 2009 03:01:54 +0000 (19:01 -0800)]
todo

15 years agomds: don't renew caps (or touch_session) on closed session
Sage Weil [Mon, 23 Nov 2009 23:55:35 +0000 (15:55 -0800)]
mds: don't renew caps (or touch_session) on closed session

Also assert that we're on the state list before touching.

15 years agomds: less --, more -
Sage Weil [Mon, 23 Nov 2009 23:44:28 +0000 (15:44 -0800)]
mds: less --, more -

15 years agomds: update pending_for_mds during table server replay
Sage Weil [Mon, 23 Nov 2009 23:43:36 +0000 (15:43 -0800)]
mds: update pending_for_mds during table server replay

Otherwise we our replay of AGREE after recovery is wrong; we just replay
what was saved, without taking additional journaled items into account.

15 years agomon: add 'mds set_state <gid> <stateid>'
Sage Weil [Mon, 23 Nov 2009 23:42:03 +0000 (15:42 -0800)]
mon: add 'mds set_state <gid> <stateid>'

For mdsmon disaster recovery :)

15 years agomon: avoid mds state update when clearing laggy flag
Sage Weil [Mon, 23 Nov 2009 22:45:00 +0000 (14:45 -0800)]
mon: avoid mds state update when clearing laggy flag

Do not clear laggy flag (or otherwise get into prepare_update) if the mds
hasn't seen the latest map.  Previously we could go to clear laggy and also
revert to an old mds state.

15 years agovstart.sh: fix -k for mds loading
Yehuda Sadeh [Mon, 23 Nov 2009 19:19:45 +0000 (11:19 -0800)]
vstart.sh: fix -k for mds loading

15 years agovstart.sh: fix -k (cmds init)
Yehuda Sadeh [Fri, 20 Nov 2009 23:55:13 +0000 (15:55 -0800)]
vstart.sh: fix -k (cmds init)

15 years agomsgr: fix bad unlock on tcp_write error
Sage Weil [Mon, 23 Nov 2009 22:23:13 +0000 (14:23 -0800)]
msgr: fix bad unlock on tcp_write error

15 years agomds: fix replay of hard links
Sage Weil [Mon, 23 Nov 2009 21:47:01 +0000 (13:47 -0800)]
mds: fix replay of hard links

Use dir->link_remote_inode, not raw function, so that the CDir accounting
gets set up.

15 years agomds: clear session before remove_session
Sage Weil [Sat, 21 Nov 2009 06:02:38 +0000 (22:02 -0800)]
mds: clear session before remove_session

remove_session may drop the last ref.

15 years agomds: do not eval subtree root during rename_prepare
Sage Weil [Sat, 21 Nov 2009 05:42:04 +0000 (21:42 -0800)]
mds: do not eval subtree root during rename_prepare

The eval may lead to a scatter_writebehind, which screws up the journal
ordering.  Since the inode is also locked, we will end up evaling it
later anyway, so don't worry about it.

I'm a bit unsure about the adjust_subtree_after_rename... that is during
the rename_apply stage (after the log entry committed), so i think it's
safe to do a scatter_writebehind here.. since we're not between a predirty
and submit_entry.

15 years agotodo
Sage Weil [Sat, 21 Nov 2009 00:22:34 +0000 (16:22 -0800)]
todo

15 years agomds: fix client purge crash
Sage Weil [Sat, 21 Nov 2009 00:20:02 +0000 (16:20 -0800)]
mds: fix client purge crash

set_state moves the session to the per-session lists; do
this _before_ remove_session (which removes the session
entirely).  Otherwise we fail an assert when deleting
the session:

mds/SessionMap.h: In function 'virtual Session::~Session()':
mds/SessionMap.h:141: FAILED assert(!session_list_item.is_on_xlist())
 1: ./cmds(_Z18__ceph_assert_failPKcS0_iS0_+0x36) [0x97fc87]
 2: ./cmds(_ZN7SessionD0Ev+0x47) [0x73d817]
 3: ./cmds(_ZN16RefCountedObject3putEv+0xdb) [0x712c3b]
 4: ./cmds(_ZN10ConnectionD0Ev+0x3a) [0x713f88]
 5: ./cmds(_ZN10Connection3putEv+0x3d) [0x71294b]
 6: ./cmds(_ZN15SimpleMessenger4PipeD1Ev+0x7f) [0x7130e1]
 7: ./cmds(_ZN15SimpleMessenger6reaperEv+0x228) [0x7048ba]
 8: ./cmds(_ZN15SimpleMessenger4waitEv+0x28) [0x7059dc]
 9: ./cmds(main+0x305) [0x6f9345]
 10: /lib/libc.so.6(__libc_start_main+0xe6) [0x7f2091e715c6]
 11: ./cmds [0x6f8e39]
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.

15 years agomon: fix use-after-free in mds mon blacklisting
Sage Weil [Fri, 20 Nov 2009 22:07:16 +0000 (14:07 -0800)]
mon: fix use-after-free in mds mon blacklisting

15 years agomds: warn if replay used ino doesn't match session's next
Sage Weil [Fri, 20 Nov 2009 21:04:02 +0000 (13:04 -0800)]
mds: warn if replay used ino doesn't match session's next

15 years agomds: fix reconnect race
Sage Weil [Fri, 20 Nov 2009 21:03:41 +0000 (13:03 -0800)]
mds: fix reconnect race

Don't ignore client replay or session msgs if we are
moving to reconnect state.  The client may get the mdsmap
before us and send things our way, so take them if we
are reconnect, or if we want reconnect.

15 years agomds: remove dead session request list trim waiter code
Sage Weil [Fri, 20 Nov 2009 18:15:29 +0000 (10:15 -0800)]
mds: remove dead session request list trim waiter code

I don't even remember what this was originally for.

15 years agomds: associate session with connection; clean up
Sage Weil [Fri, 20 Nov 2009 18:12:27 +0000 (10:12 -0800)]
mds: associate session with connection; clean up

Sessions always created on connect.  May or may not be
in then sessionmap, depending on the session open/close
commands.

15 years agovstart: include [mds.$name] for auth_none
Sage Weil [Fri, 20 Nov 2009 18:04:28 +0000 (10:04 -0800)]
vstart: include [mds.$name] for auth_none

15 years agoosd: don't crash on (and allow) messages sent to self
Sage Weil [Fri, 20 Nov 2009 16:22:43 +0000 (08:22 -0800)]
osd: don't crash on (and allow) messages sent to self

15 years agoconf: don't crash if conf file not specified and not found
Yehuda Sadeh [Fri, 20 Nov 2009 18:04:40 +0000 (10:04 -0800)]
conf: don't crash if conf file not specified and not found

15 years agofilestore: fix mkfs with no jourhal
Sage Weil [Fri, 20 Nov 2009 17:54:38 +0000 (09:54 -0800)]
filestore: fix mkfs with no jourhal

15 years agoauth: change error code when not supporting authentication
Yehuda Sadeh [Fri, 20 Nov 2009 00:48:43 +0000 (16:48 -0800)]
auth: change error code when not supporting authentication

15 years agorgw: ifdef out dead code
Sage Weil [Fri, 20 Nov 2009 00:14:48 +0000 (16:14 -0800)]
rgw: ifdef out dead code

15 years agoauth: set initial values in misc structs
Sage Weil [Fri, 20 Nov 2009 00:03:30 +0000 (16:03 -0800)]
auth: set initial values in misc structs

Fixes a bunch of valgrind warnings.

15 years agosepia: no valgrind on osds for now
Sage Weil [Thu, 19 Nov 2009 23:32:28 +0000 (15:32 -0800)]
sepia: no valgrind on osds for now

15 years agomon: allow mds injectargs on recovering mdss
Sage Weil [Thu, 19 Nov 2009 21:51:56 +0000 (13:51 -0800)]
mon: allow mds injectargs on recovering mdss

15 years agomds: use global_id as key in MDSMap
Sage Weil [Thu, 19 Nov 2009 23:30:27 +0000 (15:30 -0800)]
mds: use global_id as key in MDSMap

This makes the data structures less stupid (using an
entity_addr_t as a key is silly).

This is a protocol and disk format change.

15 years agofilestore: don't magically enable journal if ${osd_data}.journal exists
Sage Weil [Thu, 19 Nov 2009 22:37:14 +0000 (14:37 -0800)]
filestore: don't magically enable journal if ${osd_data}.journal exists

15 years agorados: kill unused ceph_fsid_set
Sage Weil [Thu, 19 Nov 2009 21:44:20 +0000 (13:44 -0800)]
rados: kill unused ceph_fsid_set

15 years agoauth: when renewing session, encrypt ticket
Yehuda Sadeh [Thu, 19 Nov 2009 22:15:20 +0000 (14:15 -0800)]
auth: when renewing session, encrypt ticket

15 years agorgw: fix base64 warnings (move impl to .c file)
Sage Weil [Thu, 19 Nov 2009 20:44:55 +0000 (12:44 -0800)]
rgw: fix base64 warnings (move impl to .c file)

15 years agomon: only remove_session if !s->closed
Sage Weil [Thu, 19 Nov 2009 19:45:17 +0000 (11:45 -0800)]
mon: only remove_session if !s->closed

15 years agoatomic: assert valid ref counts
Sage Weil [Thu, 19 Nov 2009 19:40:50 +0000 (11:40 -0800)]
atomic: assert valid ref counts

Make sure we catch ref counting errors!

15 years agoauth: initialize EntityName type in constructor
Sage Weil [Thu, 19 Nov 2009 19:38:35 +0000 (11:38 -0800)]
auth: initialize EntityName type in constructor

15 years agomon: fix session ref leak
Sage Weil [Thu, 19 Nov 2009 19:35:33 +0000 (11:35 -0800)]
mon: fix session ref leak

15 years agomonc: restart auth handshake each time we connect to mon
Sage Weil [Thu, 19 Nov 2009 20:42:29 +0000 (12:42 -0800)]
monc: restart auth handshake each time we connect to mon

15 years agomds: don't change directory size/rbytes from client cap update
Sage Weil [Thu, 19 Nov 2009 19:24:48 +0000 (11:24 -0800)]
mds: don't change directory size/rbytes from client cap update

This is wrong, and screws up the recursive accounting.

15 years agoauth: add ull to large constant
Sage Weil [Thu, 19 Nov 2009 19:05:17 +0000 (11:05 -0800)]
auth: add ull to large constant

so that we build on 32bit platforms

15 years agomds: fix inode rstat debug output
Sage Weil [Thu, 19 Nov 2009 19:05:04 +0000 (11:05 -0800)]
mds: fix inode rstat debug output

15 years agoauth: add missing virtual destructors
Sage Weil [Thu, 19 Nov 2009 18:57:01 +0000 (10:57 -0800)]
auth: add missing virtual destructors

15 years agoosdc: use __u64, not size_t
Sage Weil [Thu, 19 Nov 2009 18:11:19 +0000 (10:11 -0800)]
osdc: use __u64, not size_t

size_t is too small on 32 bit platforms.

15 years agomds: do not crash if m->connection == NULL
Sage Weil [Thu, 19 Nov 2009 17:28:22 +0000 (09:28 -0800)]
mds: do not crash if m->connection == NULL

15 years agomds: do not send MMDSMap to ourselves
Sage Weil [Thu, 19 Nov 2009 17:28:02 +0000 (09:28 -0800)]
mds: do not send MMDSMap to ourselves

15 years agoadd ceph_fsid_set helper
Sage Weil [Thu, 19 Nov 2009 00:51:24 +0000 (16:51 -0800)]
add ceph_fsid_set helper

15 years agofilejournal: use single shared zeroed buffer for alignment padding
Sage Weil [Wed, 18 Nov 2009 20:18:17 +0000 (12:18 -0800)]
filejournal: use single shared zeroed buffer for alignment padding

Avoids lots of mallocs and memsets (one for every journal event).

15 years agobuffer: add create_static constructor
Sage Weil [Wed, 18 Nov 2009 20:17:35 +0000 (12:17 -0800)]
buffer: add create_static constructor

15 years agovstart.sh: fix -k
Yehuda Sadeh [Thu, 19 Nov 2009 00:20:18 +0000 (16:20 -0800)]
vstart.sh: fix -k

15 years agoMerge commit 'd00b917143e2afd72851bfd0400b2c2a1f3fc018' into auth
Sage Weil [Thu, 19 Nov 2009 00:01:20 +0000 (16:01 -0800)]
Merge commit 'd00b917143e2afd72851bfd0400b2c2a1f3fc018' into auth

15 years agovstart: fix errors on auth none
Sage Weil [Thu, 19 Nov 2009 00:00:42 +0000 (16:00 -0800)]
vstart: fix errors on auth none

15 years agomsgr: rev protocol
Sage Weil [Thu, 19 Nov 2009 00:00:31 +0000 (16:00 -0800)]
msgr: rev protocol

15 years agoauth: fix monclient startup issue
Yehuda Sadeh [Wed, 18 Nov 2009 23:29:56 +0000 (15:29 -0800)]
auth: fix monclient startup issue

15 years agoauth: fix client and server side negotiation
Yehuda Sadeh [Wed, 18 Nov 2009 22:19:01 +0000 (14:19 -0800)]
auth: fix client and server side negotiation

15 years agouclient: replace C_Cond with C_SafeCond
Sage Weil [Wed, 18 Nov 2009 20:25:46 +0000 (12:25 -0800)]
uclient: replace C_Cond with C_SafeCond

15 years agotodo
Sage Weil [Wed, 18 Nov 2009 19:56:26 +0000 (11:56 -0800)]
todo

15 years agotodo
Sage Weil [Tue, 17 Nov 2009 19:49:37 +0000 (11:49 -0800)]
todo

15 years agoosd: allow reinitialization of osd journal
Sage Weil [Wed, 18 Nov 2009 18:49:38 +0000 (10:49 -0800)]
osd: allow reinitialization of osd journal

(without hosing osd data)

15 years agorados: Move array to heap. Prevent segfault when you use too-large a write size
Greg Farnum [Wed, 18 Nov 2009 18:13:29 +0000 (10:13 -0800)]
rados: Move array to heap. Prevent segfault when you use too-large a write size

15 years agorados: remove unused paramater, add very primitive read bench in verify step
Greg Farnum [Wed, 18 Nov 2009 18:08:05 +0000 (10:08 -0800)]
rados: remove unused paramater, add very primitive read bench in verify step