]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/log
ceph.git
16 years agomsgr: rev protocol
Sage Weil [Thu, 19 Nov 2009 00:00:31 +0000 (16:00 -0800)]
msgr: rev protocol

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

16 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

16 years agoauth: change server side negotiation a bit
Sage Weil [Wed, 18 Nov 2009 18:12:10 +0000 (10:12 -0800)]
auth: change server side negotiation a bit

client is not fixed up yet

16 years agomonc: small cleanup
Sage Weil [Tue, 17 Nov 2009 18:46:32 +0000 (10:46 -0800)]
monc: small cleanup

avoid unnec finish_hunting call on get_monmap_privately

16 years agoauth: reuse global_id when requesting tickets
Yehuda Sadeh [Tue, 17 Nov 2009 00:45:53 +0000 (16:45 -0800)]
auth: reuse global_id when requesting tickets

16 years agovstart: fix overwrite conf
Yehuda Sadeh [Tue, 17 Nov 2009 00:00:23 +0000 (16:00 -0800)]
vstart: fix overwrite conf

16 years agomon: fix decode authmon stash on restart
Sage Weil [Mon, 16 Nov 2009 22:33:12 +0000 (14:33 -0800)]
mon: fix decode authmon stash on restart

16 years agomds: don't crap on !check_from, this doesn't happen with nolaggy
Sage Weil [Mon, 16 Nov 2009 22:25:30 +0000 (14:25 -0800)]
mds: don't crap on !check_from, this doesn't happen with nolaggy

16 years agomon: move misplaced parens
Sage Weil [Mon, 16 Nov 2009 22:25:13 +0000 (14:25 -0800)]
mon: move misplaced parens

16 years agomkmonfs: cleanup monmap fn arg
Sage Weil [Fri, 13 Nov 2009 19:10:36 +0000 (11:10 -0800)]
mkmonfs: cleanup monmap fn arg

16 years agoMakefile: include all the headers we need to build
Sage Weil [Fri, 13 Nov 2009 18:55:31 +0000 (10:55 -0800)]
Makefile: include all the headers we need to build

16 years agoconfig: accept list of possible conf file locations; include ./ceph.conf
Sage Weil [Fri, 13 Nov 2009 18:47:52 +0000 (10:47 -0800)]
config: accept list of possible conf file locations; include ./ceph.conf

This makes './ceph -w' work with './vstart.sh -x'.

16 years agovstart: -x to start up with cephx
Sage Weil [Fri, 13 Nov 2009 18:40:10 +0000 (10:40 -0800)]
vstart: -x to start up with cephx

16 years agomonc: fix race/deadlock for get_monmap_privately
Sage Weil [Fri, 13 Nov 2009 18:40:02 +0000 (10:40 -0800)]
monc: fix race/deadlock for get_monmap_privately

16 years agoauth: don't try to read keys if cephx not supported
Yehuda Sadeh [Fri, 13 Nov 2009 17:34:51 +0000 (09:34 -0800)]
auth: don't try to read keys if cephx not supported

16 years agoauth: use user admin as the default user
Yehuda Sadeh [Fri, 13 Nov 2009 00:53:46 +0000 (16:53 -0800)]
auth: use user admin as the default user

16 years agovstart: some cleanup
Sage Weil [Fri, 13 Nov 2009 00:12:20 +0000 (16:12 -0800)]
vstart: some cleanup

16 years agoconf: default to auth type 'none'
Sage Weil [Thu, 12 Nov 2009 23:29:36 +0000 (15:29 -0800)]
conf: default to auth type 'none'

16 years agoauth: fix compile errors, warnings
Sage Weil [Thu, 12 Nov 2009 23:29:26 +0000 (15:29 -0800)]
auth: fix compile errors, warnings

16 years agoauth: kill residual kernel/ files
Sage Weil [Thu, 12 Nov 2009 23:24:50 +0000 (15:24 -0800)]
auth: kill residual kernel/ files

16 years agoMerge branch 'unstable' into auth
Sage Weil [Thu, 12 Nov 2009 23:23:24 +0000 (15:23 -0800)]
Merge branch 'unstable' into auth

16 years agouclient: fewer msgs
Sage Weil [Tue, 10 Nov 2009 00:35:05 +0000 (16:35 -0800)]
uclient: fewer msgs

16 years agotodo
Sage Weil [Thu, 12 Nov 2009 23:12:18 +0000 (15:12 -0800)]
todo

16 years agoMerge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable
Sage Weil [Thu, 12 Nov 2009 22:55:26 +0000 (14:55 -0800)]
Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable

16 years agoput testing ceph.conf's in git
Sage Weil [Thu, 12 Nov 2009 22:17:18 +0000 (14:17 -0800)]
put testing ceph.conf's in git

16 years agoosd: print useful mode wait message
Sage Weil [Thu, 12 Nov 2009 22:16:31 +0000 (14:16 -0800)]
osd: print useful mode wait message

16 years agofilestore: skip sync_file_range if the full commit has started
Sage Weil [Thu, 12 Nov 2009 22:16:17 +0000 (14:16 -0800)]
filestore: skip sync_file_range if the full commit has started

Presumably btrfs commit_transaction is more effective than our per-file
flushing.  And we don't want to fight each other.

16 years agomds: recommit after commit if waiting for newer version
Sage Weil [Thu, 12 Nov 2009 22:54:22 +0000 (14:54 -0800)]
mds: recommit after commit if waiting for newer version

If there are waiters for a later version of the dir to hit
disk, then we need to recommit as soon as the prior commit
completes.  We auth_pin on adding the first waiter, and do
not unpin until removing the last waiter, so this doesn't
break auth_pin rules.

Previously we could stall because we didn't finish the
waiter (on the later version) but also never started the
commit.  Sometimes we would get lucky and someone else would
ask for a commit, but sometimes not.  We would then see old
LogSegments that would never get fully expired.

16 years agoauth: fix mds messages filtering
Yehuda Sadeh [Thu, 12 Nov 2009 22:31:36 +0000 (14:31 -0800)]
auth: fix mds messages filtering

16 years agorados: fix usage() and -p option checking
Greg Farnum [Thu, 12 Nov 2009 20:06:57 +0000 (12:06 -0800)]
rados: fix usage() and -p option checking

16 years agomds: warn, don't crash, on rfiles/rsubdirs underflow
Sage Weil [Thu, 12 Nov 2009 18:45:54 +0000 (10:45 -0800)]
mds: warn, don't crash, on rfiles/rsubdirs underflow

This doesn't fix the bug, but lets the mds at least start up.

16 years agomsg: don't die unconditionally when got unknown message type
Yehuda Sadeh [Thu, 12 Nov 2009 17:51:29 +0000 (09:51 -0800)]
msg: don't die unconditionally when got unknown message type

16 years agouclient: increase cache size
Sage Weil [Thu, 12 Nov 2009 00:10:14 +0000 (16:10 -0800)]
uclient: increase cache size

16 years agofilestore: flusher thread; commit snaps (disabled)
Sage Weil [Thu, 12 Nov 2009 00:09:52 +0000 (16:09 -0800)]
filestore: flusher thread; commit snaps (disabled)

16 years agoosd: avoid truncate, remove ops we know will fail
Sage Weil [Wed, 11 Nov 2009 18:20:12 +0000 (10:20 -0800)]
osd: avoid truncate, remove ops we know will fail

Now that we check return codes, these cause problems.

16 years agoosd: don't requeue pg removal if already removing
Sage Weil [Wed, 11 Nov 2009 18:19:28 +0000 (10:19 -0800)]
osd: don't requeue pg removal if already removing

16 years agotodo
Sage Weil [Wed, 11 Nov 2009 23:52:10 +0000 (15:52 -0800)]
todo

16 years agomds: force rdlock on any snapped inodes
Sage Weil [Wed, 11 Nov 2009 23:47:28 +0000 (15:47 -0800)]
mds: force rdlock on any snapped inodes

When the client has an excl lock on an inode, and it's
stating a snapped version of it, we can't expect it to
put 2 and 2 together and look at it's head metadata.  If
the cap does not follow the snapid we're trying to stat, do
the full rdlock to force the snapped values back to the
mds so we can do the cow.

If there is nothing cow, the cap will get reissued with an
accurate follows value, and we won't have to do this again.

16 years agosessionmap is an object, not a pointer
Greg Farnum [Wed, 11 Nov 2009 00:44:07 +0000 (16:44 -0800)]
sessionmap is an object, not a pointer

16 years agomds: fix typo; also only suicide if we have clients
Sage Weil [Wed, 11 Nov 2009 00:32:01 +0000 (16:32 -0800)]
mds: fix typo; also only suicide if we have clients

If we are the last MDS and have no clients we should be
able to stop cleanly....

16 years agomds: underwater is function of _loaded_ version, not in core version
Sage Weil [Wed, 11 Nov 2009 00:26:44 +0000 (16:26 -0800)]
mds: underwater is function of _loaded_ version, not in core version

We may load a dir version off disk that is older than the
in-core version (because we got newer data from the
journal, say).  When marking underwater items clean, do
so based on the _loaded_ version, not out in-core version.

16 years agotodo
Sage Weil [Mon, 9 Nov 2009 21:32:07 +0000 (13:32 -0800)]
todo

16 years agomds: If last MDS, suicide on stop rather than entering infinite requeue loop
Greg Farnum [Wed, 11 Nov 2009 00:02:04 +0000 (16:02 -0800)]
mds: If last MDS, suicide on stop rather than entering infinite requeue loop

16 years agoosd: do not apply_transaction in finish_recovery
Sage Weil [Tue, 10 Nov 2009 22:51:20 +0000 (14:51 -0800)]
osd: do not apply_transaction in finish_recovery

finish_recovery needs to set up a callback for when the current set of
changes commit to disk (to kickstart cleanup of strya replicas etc).  We
can't call apply_transaction this deep inside the call chain without
causing problems.  So, pass a list of completion contexts all the way down
so that we can set up the completion callback.

16 years agofilestore: don't croak on 0 op usertrans error
Sage Weil [Tue, 10 Nov 2009 22:51:33 +0000 (14:51 -0800)]
filestore: don't croak on 0 op usertrans error

16 years agofilestore: check return values
Sage Weil [Tue, 10 Nov 2009 21:12:33 +0000 (13:12 -0800)]
filestore: check return values

16 years agotest_trans
Sage Weil [Tue, 10 Nov 2009 16:23:38 +0000 (08:23 -0800)]
test_trans

16 years agofilestore: fix usertrans setxattr, print it out nicely
Sage Weil [Tue, 10 Nov 2009 16:09:18 +0000 (08:09 -0800)]
filestore: fix usertrans setxattr, print it out nicely

16 years agofilestore: clean up btrfs ioctls; use actual btrfs ioctl.h
Sage Weil [Tue, 10 Nov 2009 15:51:44 +0000 (07:51 -0800)]
filestore: clean up btrfs ioctls; use actual btrfs ioctl.h

16 years agosample.ceph.conf: include usertrans flag
Sage Weil [Tue, 10 Nov 2009 15:37:56 +0000 (07:37 -0800)]
sample.ceph.conf: include usertrans flag

16 years agofilestore: make FileStore btrfs ioctl tests more readable
Sage Weil [Tue, 10 Nov 2009 15:37:45 +0000 (07:37 -0800)]
filestore: make FileStore btrfs ioctl tests more readable

16 years agomon: ignore MAuth message when connection has no session
Sage Weil [Tue, 10 Nov 2009 05:31:51 +0000 (21:31 -0800)]
mon: ignore MAuth message when connection has no session

This happens if hte message is delayed, and the session meanwhile
is closed.  We need similar checks any time we take a Session
from the message->get_connection()....

16 years agoceph: default to admin user
Sage Weil [Tue, 10 Nov 2009 05:30:11 +0000 (21:30 -0800)]
ceph: default to admin user

16 years agoauth: make ~ in keyring search path subst in $HOME
Sage Weil [Tue, 10 Nov 2009 05:30:03 +0000 (21:30 -0800)]
auth: make ~ in keyring search path subst in $HOME

16 years agoMerge branch 'unstable' into auth
Sage Weil [Tue, 10 Nov 2009 05:12:16 +0000 (21:12 -0800)]
Merge branch 'unstable' into auth

Conflicts:
src/Makefile.am
src/mkmonfs.cc
src/msg/SimpleMessenger.cc

16 years agoauth: auth none encodes global_id at build_authorizer
Yehuda Sadeh [Tue, 10 Nov 2009 00:54:08 +0000 (16:54 -0800)]
auth: auth none encodes global_id at build_authorizer

16 years agoauth: pass global_id to the osd, mds verify-authorizers
Yehuda Sadeh [Tue, 10 Nov 2009 00:31:00 +0000 (16:31 -0800)]
auth: pass global_id to the osd, mds verify-authorizers

16 years agomds, osd: call monc->authenticate(), not wait_authenticate()
Sage Weil [Tue, 10 Nov 2009 00:08:50 +0000 (16:08 -0800)]
mds, osd: call monc->authenticate(), not wait_authenticate()

16 years agouclient: get keys, build authorizer
Sage Weil [Tue, 10 Nov 2009 00:07:59 +0000 (16:07 -0800)]
uclient: get keys, build authorizer

16 years agoauth: don't display auth incrementals in the ceph tool
Yehuda Sadeh [Mon, 9 Nov 2009 23:43:53 +0000 (15:43 -0800)]
auth: don't display auth incrementals in the ceph tool

16 years agoauth: fix global id alloc on peon monitors
Sage Weil [Mon, 9 Nov 2009 23:52:11 +0000 (15:52 -0800)]
auth: fix global id alloc on peon monitors

16 years agoauth: kill ClientMOnitor, MCLientMOunt*, etc.
Sage Weil [Mon, 9 Nov 2009 23:38:56 +0000 (15:38 -0800)]
auth: kill ClientMOnitor, MCLientMOunt*, etc.

16 years agomon: use g_conf.mon_globalid_prealloc
Sage Weil [Mon, 9 Nov 2009 22:31:55 +0000 (14:31 -0800)]
mon: use g_conf.mon_globalid_prealloc

16 years agoauth: added should_propose callback to auth mon
Yehuda Sadeh [Mon, 9 Nov 2009 23:00:49 +0000 (15:00 -0800)]
auth: added should_propose callback to auth mon

16 years agoauth: verify global_id with the one on the ticket
Yehuda Sadeh [Mon, 9 Nov 2009 22:02:11 +0000 (14:02 -0800)]
auth: verify global_id with the one on the ticket

16 years agoauth: increase max global id only when paxos is writable
Yehuda Sadeh [Mon, 9 Nov 2009 22:01:43 +0000 (14:01 -0800)]
auth: increase max global id only when paxos is writable

16 years agoosd: log misdirected ops; reply with -ENXIO
Sage Weil [Mon, 9 Nov 2009 21:17:29 +0000 (13:17 -0800)]
osd: log misdirected ops; reply with -ENXIO

This is more helpful than assert(0).  It's still bad (it means the client
and osd calculated different pg mappings) though, but this makes it easier
to identify and fix.

16 years agosample.ceph.conf: fix btrfs mountoptions
Sage Weil [Mon, 9 Nov 2009 21:01:08 +0000 (13:01 -0800)]
sample.ceph.conf: fix btrfs mountoptions

16 years agoauth: distribute global instance id to client
Yehuda Sadeh [Mon, 9 Nov 2009 18:16:04 +0000 (10:16 -0800)]
auth: distribute global instance id to client

16 years agoosdmap: clear out old hash distribution code
Sage Weil [Sun, 8 Nov 2009 17:21:16 +0000 (09:21 -0800)]
osdmap: clear out old hash distribution code

This screws up linkage because not everything that #Includes osdmap.h
links crush.

16 years agoosd: make pgids sort on (pool, preferred, ps)
Sage Weil [Sun, 8 Nov 2009 05:06:27 +0000 (21:06 -0800)]
osd: make pgids sort on (pool, preferred, ps)

This makes pg dump output easier to read, mainly.

16 years agocrushtool: small fix
Sage Weil [Sun, 8 Nov 2009 05:05:32 +0000 (21:05 -0800)]
crushtool: small fix

16 years agoRevert "crush: use spirit classic headers"
Sage Weil [Sun, 8 Nov 2009 04:49:37 +0000 (20:49 -0800)]
Revert "crush: use spirit classic headers"

This reverts commit 28ac4441b87907713ddaf1fe1dee62350f947cf3.

16 years agohash: small cleanup
Sage Weil [Sat, 7 Nov 2009 23:27:08 +0000 (15:27 -0800)]
hash: small cleanup

16 years agocrush: hrm fix up builder too
Sage Weil [Sun, 8 Nov 2009 04:12:21 +0000 (20:12 -0800)]
crush: hrm fix up builder too

fix

16 years agocrush: use spirit classic headers
Sage Weil [Sun, 8 Nov 2009 03:59:42 +0000 (19:59 -0800)]
crush: use spirit classic headers

This makes the 'deprecated' warnings go away.

16 years agocrush: make hash function selectable
Sage Weil [Sun, 8 Nov 2009 03:59:05 +0000 (19:59 -0800)]
crush: make hash function selectable

16 years agoosd: make object hash a pg_pool parameter
Sage Weil [Sat, 7 Nov 2009 05:36:43 +0000 (21:36 -0800)]
osd: make object hash a pg_pool parameter

16 years agoosdmaptool: test-map-object
Sage Weil [Sat, 7 Nov 2009 00:48:38 +0000 (16:48 -0800)]
osdmaptool: test-map-object

16 years agoosd: use stronger hash function for mapping objects -> pgs
Sage Weil [Sat, 7 Nov 2009 00:43:47 +0000 (16:43 -0800)]
osd: use stronger hash function for mapping objects -> pgs

The old hash (from linux dcache) was very weak, such that
least sig bits may not change and you could get lots of
consecutive objects on the same osds (because lsbits of the
pg weren't changing).

This is Robert Jenkin's hash and is quite strong.  Public
domain.

Rev osd disk format, protocol, since we're totally changing
object placement here.

16 years agocrush: no more static inline
Sage Weil [Fri, 6 Nov 2009 23:37:01 +0000 (15:37 -0800)]
crush: no more static inline

16 years agoauth: some cleanup, compilation fixes
Yehuda Sadeh [Sat, 7 Nov 2009 00:43:21 +0000 (16:43 -0800)]
auth: some cleanup, compilation fixes

16 years agoauth: manage global id in the auth mon
Yehuda Sadeh [Fri, 6 Nov 2009 22:30:38 +0000 (14:30 -0800)]
auth: manage global id in the auth mon

16 years agoosd: This logic is slightly less confusing without the always-true 'full' param
Greg Farnum [Fri, 6 Nov 2009 23:27:23 +0000 (15:27 -0800)]
osd: This logic is slightly less confusing without the always-true 'full' param

16 years agomon: don't delete stats when sending osdmap incremental
Sage Weil [Fri, 6 Nov 2009 21:54:53 +0000 (13:54 -0800)]
mon: don't delete stats when sending osdmap incremental

send_latest will delete m, and/or wait.  Instead call send_incremental
directly only when we know paxos is_readable.

16 years agoqa: test subdir mounts
Sage Weil [Fri, 6 Nov 2009 20:12:24 +0000 (12:12 -0800)]
qa: test subdir mounts

16 years agoinit-ceph: tell user we're mounting btrfs
Sage Weil [Fri, 6 Nov 2009 06:22:27 +0000 (22:22 -0800)]
init-ceph: tell user we're mounting btrfs

16 years agoosd: send single osd_boot on startup
Sage Weil [Fri, 6 Nov 2009 21:36:32 +0000 (13:36 -0800)]
osd: send single osd_boot on startup

16 years agomon: don't log dup osd boot msgs
Sage Weil [Fri, 6 Nov 2009 21:36:25 +0000 (13:36 -0800)]
mon: don't log dup osd boot msgs

16 years agomsgr: leave off ss_family when printing
Sage Weil [Fri, 6 Nov 2009 21:35:08 +0000 (13:35 -0800)]
msgr: leave off ss_family when printing

16 years agotodo
Sage Weil [Fri, 6 Nov 2009 06:21:22 +0000 (22:21 -0800)]
todo

16 years agoppc: do not copy_in unencoded __u32
Sage Weil [Fri, 6 Nov 2009 21:09:58 +0000 (13:09 -0800)]
ppc: do not copy_in unencoded __u32

Fixes big endian bugs.

16 years agobuffer: only define _XOPEN_SOURCE ifndef
Sage Weil [Fri, 6 Nov 2009 21:09:26 +0000 (13:09 -0800)]
buffer: only define _XOPEN_SOURCE ifndef

16 years agotodo
Sage Weil [Fri, 6 Nov 2009 07:03:59 +0000 (23:03 -0800)]
todo

16 years agomon: make initial monmap epoch match paxos version
Sage Weil [Fri, 6 Nov 2009 06:25:30 +0000 (22:25 -0800)]
mon: make initial monmap epoch match paxos version

16 years agomkmonfs: use common_init and parse regular args
Sage Weil [Fri, 6 Nov 2009 06:24:19 +0000 (22:24 -0800)]
mkmonfs: use common_init and parse regular args

16 years agodon't forget -standalone.git in release checklist
Sage Weil [Fri, 6 Nov 2009 05:53:15 +0000 (21:53 -0800)]
don't forget -standalone.git in release checklist

16 years agoOSD: Don't repeatedly send the same incremental map update to clients.
Greg Farnum [Thu, 5 Nov 2009 23:58:27 +0000 (15:58 -0800)]
OSD: Don't repeatedly send the same incremental map update to clients.

16 years agouclient: set NAME_MAX = PAGE_SIZE
Greg Farnum [Wed, 4 Nov 2009 00:43:53 +0000 (16:43 -0800)]
uclient: set NAME_MAX = PAGE_SIZE