]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
16 years agoclass: osd can request and receive class data
Yehuda Sadeh [Wed, 13 May 2009 21:52:52 +0000 (14:52 -0700)]
class: osd can request and receive class data

16 years agoMerge branch 'c3' into rados
Sage Weil [Tue, 12 May 2009 15:07:51 +0000 (08:07 -0700)]
Merge branch 'c3' into rados

16 years agotestrados: C, not C++
Sage Weil [Tue, 12 May 2009 15:07:00 +0000 (08:07 -0700)]
testrados: C, not C++

16 years agolibrados: fix up #includes; use C for testrados
Sage Weil [Tue, 12 May 2009 04:16:02 +0000 (21:16 -0700)]
librados: fix up #includes; use C for testrados

16 years agorados: build librados, libcrush using libtool
Sage Weil [Tue, 12 May 2009 04:06:14 +0000 (21:06 -0700)]
rados: build librados, libcrush using libtool

Finally?

16 years agolibrados: drop librados/ dir.
Sage Weil [Mon, 11 May 2009 23:23:33 +0000 (16:23 -0700)]
librados: drop librados/ dir.

16 years agolibrados: build the .so
Sage Weil [Mon, 11 May 2009 23:22:08 +0000 (16:22 -0700)]
librados: build the .so

16 years agolibrados: rename c3 -> librados
Sage Weil [Mon, 11 May 2009 22:48:00 +0000 (15:48 -0700)]
librados: rename c3 -> librados

16 years agoc3: remove unnecessary include
Yehuda Sadeh [Mon, 11 May 2009 22:40:22 +0000 (15:40 -0700)]
c3: remove unnecessary include

16 years agoclass: partial implementation of class osd mon messages
Sage Weil [Mon, 11 May 2009 22:38:03 +0000 (15:38 -0700)]
class: partial implementation of class osd mon messages

16 years agoclass: remove redundant fields from the class library
Yehuda Sadeh [Mon, 11 May 2009 20:36:59 +0000 (13:36 -0700)]
class: remove redundant fields from the class library

16 years agoclass: add class name to the library list
Yehuda Sadeh [Mon, 11 May 2009 17:47:50 +0000 (10:47 -0700)]
class: add class name to the library list

16 years agoclass: fix class decoding
Yehuda Sadeh [Mon, 11 May 2009 17:30:51 +0000 (10:30 -0700)]
class: fix class decoding

16 years agoclass: add a class monitor for the paxos services
Yehuda Sadeh [Fri, 8 May 2009 23:33:30 +0000 (16:33 -0700)]
class: add a class monitor for the paxos services

16 years agoc3: exec op string
Yehuda Sadeh [Thu, 7 May 2009 22:55:29 +0000 (15:55 -0700)]
c3: exec op string

16 years agoc3: handle unhandled message
Yehuda Sadeh [Thu, 7 May 2009 22:47:50 +0000 (15:47 -0700)]
c3: handle unhandled message

16 years agoc3: rados merges issues
Yehuda Sadeh [Thu, 7 May 2009 22:33:33 +0000 (15:33 -0700)]
c3: rados merges issues

16 years agoc3: implement exec poc
Yehuda Sadeh [Wed, 6 May 2009 05:45:00 +0000 (22:45 -0700)]
c3: implement exec poc

16 years agoc3: fix rank
Yehuda Sadeh [Tue, 5 May 2009 18:56:13 +0000 (11:56 -0700)]
c3: fix rank

16 years agoc3: fix rank static allocation
Yehuda Sadeh [Mon, 4 May 2009 23:40:29 +0000 (16:40 -0700)]
c3: fix rank static allocation

16 years agoosd: add an exec op
Yehuda Sadeh [Mon, 4 May 2009 22:53:41 +0000 (15:53 -0700)]
osd: add an exec op

16 years agoc3: create a very simple interface
Yehuda Sadeh [Fri, 1 May 2009 22:42:16 +0000 (15:42 -0700)]
c3: create a very simple interface

16 years agoc3: mount through MonClient
Yehuda Sadeh [Fri, 1 May 2009 00:08:00 +0000 (17:08 -0700)]
c3: mount through MonClient

16 years agoc3: add mount/umount to mon client
Sage Weil [Mon, 11 May 2009 22:29:11 +0000 (15:29 -0700)]
c3: add mount/umount to mon client

16 years agos3: add read to unitest
Yehuda Sadeh [Thu, 30 Apr 2009 20:21:22 +0000 (13:21 -0700)]
s3: add read to unitest

16 years agoc3: ceph simple interface
Sage Weil [Mon, 11 May 2009 22:28:56 +0000 (15:28 -0700)]
c3: ceph simple interface

16 years agoosd: based reported eversion in pg_stat_t on same_primary_since
Sage Weil [Sun, 10 May 2009 05:13:37 +0000 (22:13 -0700)]
osd: based reported eversion in pg_stat_t on same_primary_since

This ensures the value increases when the primary changes.

16 years agoosd: skip initial bit of peering if already have_master_log
Sage Weil [Sun, 10 May 2009 05:12:50 +0000 (22:12 -0700)]
osd: skip initial bit of peering if already have_master_log

Once we have settled on the master log, we want to skip that
step of peer().  Namely because peer() can be called on an
active PG if an osd shows up with stray content.  We still want
to peer() in that case in case there are missing objects to be
found.

16 years agotodo
Sage Weil [Mon, 11 May 2009 17:35:56 +0000 (10:35 -0700)]
todo

16 years agoMerge branch 'unstable' into rados
Sage Weil [Fri, 8 May 2009 21:05:31 +0000 (14:05 -0700)]
Merge branch 'unstable' into rados

16 years agomon: check for osd exists before up/down
Sage Weil [Fri, 8 May 2009 20:37:06 +0000 (13:37 -0700)]
mon: check for osd exists before up/down

16 years agoosd: maintain up_epoch AND boot_epoch; revise OSDSuperblock accordingly
Sage Weil [Fri, 8 May 2009 21:04:03 +0000 (14:04 -0700)]
osd: maintain up_epoch AND boot_epoch; revise OSDSuperblock accordingly

In order to make the superblock clean interval meaningful after we
are marked down and then up again (over the life of a single
cosd process insance), we track both boot_epoch and up_epoch,
and keep [boot_epoch,clean_thru] in the superblock.

This avoids seeing crashed pgs when and osd is wrongly marked down
and the osd marks itself up again.

16 years agoosd: add back in support for unversioned sobject_t (.snap=0)
Sage Weil [Fri, 8 May 2009 04:45:53 +0000 (21:45 -0700)]
osd: add back in support for unversioned sobject_t (.snap=0)

16 years agoosd: use / in sobject_t output
Sage Weil [Fri, 8 May 2009 04:00:04 +0000 (21:00 -0700)]
osd: use / in sobject_t output

16 years agoosd: adjust heartbeat peer lock
Sage Weil [Fri, 8 May 2009 19:55:37 +0000 (12:55 -0700)]
osd: adjust heartbeat peer lock

Need it to protect heartbeat_from_stamp.

16 years agoosd: reset heartbeat peer set on osd down
Sage Weil [Fri, 8 May 2009 19:55:16 +0000 (12:55 -0700)]
osd: reset heartbeat peer set on osd down

This clears out the timers.

16 years agobuffer: add malloc raw buffer type
Sage Weil [Fri, 8 May 2009 19:20:13 +0000 (12:20 -0700)]
buffer: add malloc raw buffer type

16 years agoosd: adjust snap collection memberships during pg split
Sage Weil [Fri, 8 May 2009 04:42:19 +0000 (21:42 -0700)]
osd: adjust snap collection memberships during pg split

16 years agoosd: adjust pg_stats during pg split
Sage Weil [Fri, 8 May 2009 04:38:26 +0000 (21:38 -0700)]
osd: adjust pg_stats during pg split

16 years agoosd: generate correct child pg when doing pg split
Sage Weil [Fri, 8 May 2009 04:32:53 +0000 (21:32 -0700)]
osd: generate correct child pg when doing pg split

16 years agoceph: don't choke on unexpected MMonMap
Sage Weil [Fri, 8 May 2009 04:13:39 +0000 (21:13 -0700)]
ceph: don't choke on unexpected MMonMap

16 years agoosd: factor out clear_recovery_state from {cancel,finish}_recovery
Sage Weil [Fri, 8 May 2009 03:49:51 +0000 (20:49 -0700)]
osd: factor out clear_recovery_state from {cancel,finish}_recovery

Also kill OSD::num_pulling counter, which is wrong anyway,
lacking locking, and probably not needed anyway with the more
general recovery_op accounting.

16 years agoosd: make sure _finish_recovery only completes when it's supposed to
Sage Weil [Fri, 8 May 2009 03:47:31 +0000 (20:47 -0700)]
osd: make sure _finish_recovery only completes when it's supposed to

Because the finish_recovery does a sync, the final cleanup is
deferred, and we have to make sure we are still done (and we
haven't, say, repeered or something).

In this case, we thus make sure we don't clear out pg
recovery_ops when we actually have ops in progress.

16 years agofilestore: fix object filename parsing
Sage Weil [Fri, 8 May 2009 00:38:46 +0000 (17:38 -0700)]
filestore: fix object filename parsing

16 years agocosd: debug filestore
Sage Weil [Thu, 7 May 2009 23:32:11 +0000 (16:32 -0700)]
cosd: debug filestore

16 years agomon: don't send mdsmap on client mount
Sage Weil [Fri, 8 May 2009 00:38:11 +0000 (17:38 -0700)]
mon: don't send mdsmap on client mount

Client can request it on first mds op.

16 years agokclient: don't wait for mdsmap on mount
Sage Weil [Fri, 8 May 2009 00:33:28 +0000 (17:33 -0700)]
kclient: don't wait for mdsmap on mount

We just need the monmap.  And osdmap, since osd_client doesn't like a
null pointer atm.

16 years agoosd: set snapid in read requests
Sage Weil [Thu, 7 May 2009 23:06:50 +0000 (16:06 -0700)]
osd: set snapid in read requests

16 years agouclient: use MonClient for mount + unmount
Sage Weil [Thu, 7 May 2009 21:21:16 +0000 (14:21 -0700)]
uclient: use MonClient for mount + unmount

16 years agomonc: add mount/umount to mon client
Sage Weil [Wed, 6 May 2009 23:28:42 +0000 (16:28 -0700)]
monc: add mount/umount to mon client

16 years agoobjecter: fix osdmap requesting
Sage Weil [Wed, 6 May 2009 23:27:37 +0000 (16:27 -0700)]
objecter: fix osdmap requesting

16 years agoosd: fix pg splits vs lockdep
Sage Weil [Wed, 6 May 2009 22:23:12 +0000 (15:23 -0700)]
osd: fix pg splits vs lockdep

PG splits create+lock the child while the parent is still locked.
Disable lockdep in that case only so that we don't crash and burn.

16 years agomon: 'osd pool create foo'
Sage Weil [Wed, 6 May 2009 21:41:42 +0000 (14:41 -0700)]
mon: 'osd pool create foo'

16 years agotodo
Sage Weil [Wed, 6 May 2009 20:51:33 +0000 (13:51 -0700)]
todo

16 years agoosd: move .snap out of object_t
Sage Weil [Wed, 6 May 2009 20:12:29 +0000 (13:12 -0700)]
osd: move .snap out of object_t

This makes the snap versioning completely orthogonal to the logical
object name (object_t).  This is key since eventually object_t
won't be structured.  And the old way made for an awkward interface
anyway.

Also killed the .snap = 0 special casing, which AFAICS was
useless.

16 years agoosd: do not use ebofs
Sage Weil [Wed, 6 May 2009 18:56:08 +0000 (11:56 -0700)]
osd: do not use ebofs

Don't compile or use ebofs.

16 years agoceph: break up ceph_fs.h header into msgr.h, rados.h
Sage Weil [Fri, 1 May 2009 13:43:53 +0000 (06:43 -0700)]
ceph: break up ceph_fs.h header into msgr.h, rados.h

16 years agokclient: recalculate pgid each time request is sent
Sage Weil [Thu, 7 May 2009 21:39:47 +0000 (14:39 -0700)]
kclient: recalculate pgid each time request is sent

The pg calculation depends on osdmap parameters that are transient.  In
contrast, the rest of calc_layout is concerned with file striping, which
is fixed (at least over the lifetime of the request).

16 years agomds: include CAP_PIN in caps_liked()
Sage Weil [Thu, 7 May 2009 21:14:29 +0000 (14:14 -0700)]
mds: include CAP_PIN in caps_liked()

Among other things, this prevents confusion in the uclient.

16 years agoosd: fix bug in recovery ops accounting
Sage Weil [Thu, 7 May 2009 20:56:14 +0000 (13:56 -0700)]
osd: fix bug in recovery ops accounting

Adjust osd global counter too!

16 years agokclient: a few sparse fixes
Yehuda Sadeh [Thu, 7 May 2009 17:47:32 +0000 (10:47 -0700)]
kclient: a few sparse fixes

16 years agomds: only issue sensible caps on directories
Sage Weil [Wed, 29 Apr 2009 23:50:02 +0000 (16:50 -0700)]
mds: only issue sensible caps on directories

16 years agomds: make eval take a mask; kill try_*_eval
Sage Weil [Wed, 29 Apr 2009 23:27:24 +0000 (16:27 -0700)]
mds: make eval take a mask; kill try_*_eval

This will eventually help us deal with all locks as a group.

Also, simplify the eval_subtree_root bits.

16 years agostart v0.8
Sage Weil [Fri, 1 May 2009 14:27:32 +0000 (07:27 -0700)]
start v0.8

16 years agomsgr: kill static instance 'rank' of SimpleMessenger v0.7.3
Sage Weil [Fri, 1 May 2009 14:11:46 +0000 (07:11 -0700)]
msgr: kill static instance 'rank' of SimpleMessenger

16 years agomsgr: clean up refs to static 'rank'
Sage Weil [Fri, 1 May 2009 13:55:54 +0000 (06:55 -0700)]
msgr: clean up refs to static 'rank'

16 years agouclient: clean up mount wrt osdmap, mdsmap
Sage Weil [Thu, 30 Apr 2009 22:24:43 +0000 (15:24 -0700)]
uclient: clean up mount wrt osdmap, mdsmap

16 years agojournaler: store layout in journal header
Sage Weil [Thu, 30 Apr 2009 18:14:31 +0000 (11:14 -0700)]
journaler: store layout in journal header

This means we won't fall over if the 'default' layout changes.  Specify
the layout during journal creation, as you'd expect.

16 years agomds: clean up layouts
Sage Weil [Thu, 30 Apr 2009 17:42:26 +0000 (10:42 -0700)]
mds: clean up layouts

16 years agoosd: more pg_pool, pg changes
Sage Weil [Thu, 30 Apr 2009 16:44:39 +0000 (09:44 -0700)]
osd: more pg_pool, pg changes

Remove 'type' from pg_t.  It's implied based on the pool.

Clean out file_layout.  The pool implies a type and namespace.

16 years agokclient: fix page_mkwrite for 2.6.30
Sage Weil [Thu, 30 Apr 2009 14:12:07 +0000 (07:12 -0700)]
kclient: fix page_mkwrite for 2.6.30

This will change again soon when Nick's other fix gets merged.  Also, we
probably need to stop doing write_begin/end due to some differences in
behavior (e.g., no extending file size? see btrfs as a reference).

16 years agoosd: typo
Sage Weil [Wed, 29 Apr 2009 22:37:39 +0000 (15:37 -0700)]
osd: typo

16 years agoconfig: fix pg pools in default file layouts
Sage Weil [Wed, 29 Apr 2009 19:50:07 +0000 (12:50 -0700)]
config: fix pg pools in default file layouts

16 years agoosd: fix up recovery op accounting
Sage Weil [Wed, 29 Apr 2009 22:33:31 +0000 (15:33 -0700)]
osd: fix up recovery op accounting

Fix varous rop accounting bugs.  Add assertions.  Log recovery
ops.

16 years agotodo
Sage Weil [Wed, 29 Apr 2009 19:06:42 +0000 (12:06 -0700)]
todo

16 years agokclient: retry 2x on ESTALE; fix up mds reply error paths
Sage Weil [Wed, 29 Apr 2009 18:47:13 +0000 (11:47 -0700)]
kclient: retry 2x on ESTALE; fix up mds reply error paths

Also fix error paths, which weren't handling the snap_rwsem
properly.

16 years agokclient: fix symbol names without 'ceph_' prefix
Sage Weil [Wed, 29 Apr 2009 18:44:03 +0000 (11:44 -0700)]
kclient: fix symbol names without 'ceph_' prefix

16 years agokclient: add missing parameter
Yehuda Sadeh [Wed, 29 Apr 2009 19:00:08 +0000 (12:00 -0700)]
kclient: add missing parameter

16 years agoconf: added missing allocations
Yehuda Sadeh [Wed, 29 Apr 2009 18:41:44 +0000 (11:41 -0700)]
conf: added missing allocations

16 years agomon: track per-pg_pool usage
Sage Weil [Wed, 29 Apr 2009 18:38:11 +0000 (11:38 -0700)]
mon: track per-pg_pool usage

16 years agoconfig: make uninit var warning go away
Sage Weil [Wed, 29 Apr 2009 18:13:13 +0000 (11:13 -0700)]
config: make uninit var warning go away

16 years agoosd: push pg_num etc into pg_pool
Sage Weil [Wed, 29 Apr 2009 18:13:01 +0000 (11:13 -0700)]
osd: push pg_num etc into pg_pool

16 years agoosd: clean up assemble_backlog
Sage Weil [Tue, 28 Apr 2009 23:44:12 +0000 (16:44 -0700)]
osd: clean up assemble_backlog

16 years agokclient: don't allow to pass max file size
Yehuda Sadeh [Tue, 28 Apr 2009 23:45:10 +0000 (16:45 -0700)]
kclient: don't allow to pass max file size

16 years agotodo
Sage Weil [Tue, 28 Apr 2009 23:30:34 +0000 (16:30 -0700)]
todo

16 years agoosd: make osd mark itself back up if it is marked down
Sage Weil [Tue, 28 Apr 2009 23:30:12 +0000 (16:30 -0700)]
osd: make osd mark itself back up if it is marked down

We may still want a way to tell an osd to exit.

16 years agomon: optionally dump specific osdmap epoch
Sage Weil [Tue, 28 Apr 2009 23:29:15 +0000 (16:29 -0700)]
mon: optionally dump specific osdmap epoch

16 years agouclient: update dir inode, cap from reply
Sage Weil [Tue, 28 Apr 2009 21:08:57 +0000 (14:08 -0700)]
uclient: update dir inode, cap from reply

16 years agovstart: --nodaemon to run via crun and -f (so that gprof works)
Sage Weil [Tue, 28 Apr 2009 20:42:49 +0000 (13:42 -0700)]
vstart: --nodaemon to run via crun and -f (so that gprof works)

16 years agouclient: take inode ref when dirtying inode
Sage Weil [Tue, 28 Apr 2009 20:22:29 +0000 (13:22 -0700)]
uclient: take inode ref when dirtying inode

16 years agoinitscript: default btrfs mount options notreelog,flushoncommit
Sage Weil [Tue, 28 Apr 2009 19:12:05 +0000 (12:12 -0700)]
initscript: default btrfs mount options notreelog,flushoncommit

16 years agocosd: use \ in dev list in .conf
Sage Weil [Mon, 27 Apr 2009 20:54:23 +0000 (13:54 -0700)]
cosd: use \ in dev list in .conf

16 years agoosd: fix merge_log split point
Sage Weil [Mon, 27 Apr 2009 20:54:10 +0000 (13:54 -0700)]
osd: fix merge_log split point

Look at full eversion, not just .version (part 2).

16 years agomon: order log entries as they're committed
Sage Weil [Tue, 28 Apr 2009 20:10:50 +0000 (13:10 -0700)]
mon: order log entries as they're committed

This doesn't fully order them (across commits), but it helps.

16 years agomon: adjust log levels
Sage Weil [Tue, 28 Apr 2009 05:37:09 +0000 (22:37 -0700)]
mon: adjust log levels

16 years agotodo
Sage Weil [Tue, 28 Apr 2009 05:34:52 +0000 (22:34 -0700)]
todo

16 years agoassert: turn off tls in assert macro
Sage Weil [Tue, 28 Apr 2009 19:54:02 +0000 (12:54 -0700)]
assert: turn off tls in assert macro

About 3% cpu time

16 years agokclient: mark caps sync in check_caps writeback path too
Sage Weil [Tue, 28 Apr 2009 05:16:35 +0000 (22:16 -0700)]
kclient: mark caps sync in check_caps writeback path too

We are already doing so in try_flush_caps().

16 years agokclient: added missing include
Sage Weil [Tue, 28 Apr 2009 05:01:52 +0000 (22:01 -0700)]
kclient: added missing include

16 years agotodo
Sage Weil [Mon, 27 Apr 2009 23:32:43 +0000 (16:32 -0700)]
todo