]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
15 years agopaxos: fix store_state fix
Sage Weil [Fri, 28 May 2010 20:21:19 +0000 (13:21 -0700)]
paxos: fix store_state fix

15 years agomsgr: print bind errors to stderr
Sage Weil [Fri, 28 May 2010 19:59:25 +0000 (12:59 -0700)]
msgr: print bind errors to stderr

15 years agopaxos: cleanup
Sage Weil [Fri, 28 May 2010 19:50:37 +0000 (12:50 -0700)]
paxos: cleanup

15 years agopaxos: only store committed values in store_state
Sage Weil [Fri, 28 May 2010 19:48:41 +0000 (12:48 -0700)]
paxos: only store committed values in store_state

The uncommitted value is handled specially by handle_last()

15 years agoinitscript: fix typo with $lockfile stuff
Sage Weil [Fri, 28 May 2010 19:41:41 +0000 (12:41 -0700)]
initscript: fix typo with $lockfile stuff

15 years agopaxos: set last_committed in share_state()
Sage Weil [Fri, 28 May 2010 19:37:24 +0000 (12:37 -0700)]
paxos: set last_committed in share_state()

It wasn't getting set for LAST message, which broke recovery somewhat.

Broken by 8e76c5a1d827e01f77149245679bd00ba27120e0.

15 years agomds: fix null dn deref during anchor_prepare
Sage Weil [Thu, 27 May 2010 23:32:43 +0000 (16:32 -0700)]
mds: fix null dn deref during anchor_prepare

15 years agoconfig: parse in $host from conf file
Sage Weil [Thu, 27 May 2010 21:59:12 +0000 (14:59 -0700)]
config: parse in $host from conf file

So you can do stuff like
log dir = /data/$host

15 years agoosdmaptool: include raw, up, acting mappings
Sage Weil [Thu, 27 May 2010 20:47:00 +0000 (13:47 -0700)]
osdmaptool: include raw, up, acting mappings

15 years agoosdmap: assert maxrep >= minrep
Sage Weil [Thu, 27 May 2010 20:46:51 +0000 (13:46 -0700)]
osdmap: assert maxrep >= minrep

15 years agomkcephfs: pass -c to cmon --mkfs
Sage Weil [Thu, 27 May 2010 19:59:41 +0000 (12:59 -0700)]
mkcephfs: pass -c to cmon --mkfs

15 years agoosd: warn, don't crash, on purged_snaps shrinkage
Sage Weil [Tue, 25 May 2010 22:23:19 +0000 (15:23 -0700)]
osd: warn, don't crash, on purged_snaps shrinkage

15 years agoinitscript: incorporate Josef's fedora fixes
Sage Weil [Thu, 27 May 2010 21:58:56 +0000 (14:58 -0700)]
initscript: incorporate Josef's fedora fixes

Add 'status' command.
Add chkconfig line.
Do lockfile stuff only if /var/run/subsys exists.

Still specifying the runlevels, though.  The init script bails out (with
success code) if the ceph.conf is missing.

15 years agoceph.spec: build-required libatomic_ops-devel, not libatomic_ops
Sage Weil [Thu, 27 May 2010 21:24:37 +0000 (14:24 -0700)]
ceph.spec: build-required libatomic_ops-devel, not libatomic_ops

And no perl-devel.

15 years agosample.ceph.conf: include debug options, commented out
Sage Weil [Thu, 27 May 2010 04:47:35 +0000 (21:47 -0700)]
sample.ceph.conf: include debug options, commented out

15 years agorados: you can now set the crush rule to use when creating a pool
Greg Farnum [Wed, 26 May 2010 23:58:31 +0000 (16:58 -0700)]
rados: you can now set the crush rule to use when creating a pool

15 years agolibrados: add crush_rule parameter to create_pool functions
Greg Farnum [Wed, 26 May 2010 23:44:33 +0000 (16:44 -0700)]
librados: add crush_rule parameter to create_pool functions

15 years agoobjecter: add optional crush_rule parameter; set in pool_op_submit as needed
Greg Farnum [Wed, 26 May 2010 23:44:17 +0000 (16:44 -0700)]
objecter: add optional crush_rule parameter; set in pool_op_submit as needed

15 years agomon: add crush_rule data member to MPoolOp; use it in new pool creation on mon
Greg Farnum [Wed, 26 May 2010 23:12:02 +0000 (16:12 -0700)]
mon: add crush_rule data member to MPoolOp; use it in new pool creation on mon

15 years agomds: LAYZIO is not liked, but it is allowed
Sage Weil [Wed, 26 May 2010 21:47:32 +0000 (14:47 -0700)]
mds: LAYZIO is not liked, but it is allowed

15 years agoclient: update ioctl.h (lazyio, invalidate_range)
Sage Weil [Wed, 26 May 2010 21:31:03 +0000 (14:31 -0700)]
client: update ioctl.h (lazyio, invalidate_range)

15 years agomds: include LAYZIO cap in sync->mix and mix->sync transitions
Sage Weil [Wed, 26 May 2010 21:30:49 +0000 (14:30 -0700)]
mds: include LAYZIO cap in sync->mix and mix->sync transitions

15 years agomds: include LAZYIO in CEPH_CAP_ANY set
Sage Weil [Wed, 26 May 2010 20:49:39 +0000 (13:49 -0700)]
mds: include LAZYIO in CEPH_CAP_ANY set

15 years agomon: warn to log, not just dout, on clock drift
Greg Farnum [Wed, 26 May 2010 21:35:05 +0000 (14:35 -0700)]
mon: warn to log, not just dout, on clock drift

15 years agomon: detect and warn on clock synchronization problems;
Greg Farnum [Wed, 26 May 2010 20:54:53 +0000 (13:54 -0700)]
mon: detect and warn on clock synchronization problems;
change MMonPaxos::lease_expire to lease_timestamp

15 years agoceph: add conversion to qemu coding style
Christian Brunner [Wed, 26 May 2010 20:38:14 +0000 (22:38 +0200)]
ceph: add conversion to qemu coding style

Hi Yehuda,

I've added a small hack to make push_to_qemu.pl convert tabs to spaces.

Christian

15 years agopaxos: use helper to store committed state; fix master mon catch up using stash
Sage Weil [Wed, 26 May 2010 17:59:21 +0000 (10:59 -0700)]
paxos: use helper to store committed state; fix master mon catch up using stash

The catch up logic in handle_last didn't handle the stashed state, so we
crashed and burned if it was the master that was behind and caught up.
Use a helper that does the work for handle_commit AND handle_last.

15 years agocfuse: bail out on mount() errors
Sage Weil [Wed, 26 May 2010 17:01:49 +0000 (10:01 -0700)]
cfuse: bail out on mount() errors

15 years agoMerge branch 'lazyio' into unstable
Sage Weil [Tue, 25 May 2010 23:40:34 +0000 (16:40 -0700)]
Merge branch 'lazyio' into unstable

Conflicts:
src/mds/locks.c

15 years agointerval_set: fix union_of, intersection_of size accounting
Sage Weil [Tue, 25 May 2010 21:44:05 +0000 (14:44 -0700)]
interval_set: fix union_of, intersection_of size accounting

15 years agoinit-ceph: use = not == for comparison operator
Sage Weil [Tue, 25 May 2010 20:47:14 +0000 (13:47 -0700)]
init-ceph: use = not == for comparison operator

15 years agoMerge branch 'mds_dentries' into unstable
Sage Weil [Tue, 25 May 2010 20:13:29 +0000 (13:13 -0700)]
Merge branch 'mds_dentries' into unstable

15 years agomds: better debugging on rmdir
Sage Weil [Tue, 25 May 2010 20:01:48 +0000 (13:01 -0700)]
mds: better debugging on rmdir

15 years agomds: fix scatterlock gather, writebehind
Sage Weil [Tue, 25 May 2010 20:01:37 +0000 (13:01 -0700)]
mds: fix scatterlock gather, writebehind

We stopped overloading the virutal is_updated() when we renamed to
is_dirty.

broken by 7f19ee1ac36095cd4d4c169858d93149f083318e

15 years agomds: make export targets stay in mdsmap for a while
Sage Weil [Mon, 24 May 2010 23:49:05 +0000 (16:49 -0700)]
mds: make export targets stay in mdsmap for a while

This limits the mdsmap churn some.  Keep old targets around for at least
min-max iterations before removing them.

15 years agomds: balancer cleanup
Sage Weil [Mon, 24 May 2010 23:08:50 +0000 (16:08 -0700)]
mds: balancer cleanup

15 years agomds: warn on dn release that dne
Sage Weil [Mon, 24 May 2010 22:50:20 +0000 (15:50 -0700)]
mds: warn on dn release that dne

15 years agorbd: modify rbd on-disk header
Yehuda Sadeh [Mon, 24 May 2010 23:11:29 +0000 (16:11 -0700)]
rbd: modify rbd on-disk header

15 years agorbd: fix push_to_qemu.pl
Yehuda Sadeh [Mon, 24 May 2010 22:58:36 +0000 (15:58 -0700)]
rbd: fix push_to_qemu.pl

15 years agomon: roll mkmonfs functionality into cmon --mkfs
Sage Weil [Mon, 24 May 2010 22:28:59 +0000 (15:28 -0700)]
mon: roll mkmonfs functionality into cmon --mkfs

15 years agofilestore: make mkfs() zap any file or dirs it finds
Sage Weil [Mon, 24 May 2010 22:24:16 +0000 (15:24 -0700)]
filestore: make mkfs() zap any file or dirs it finds

15 years agorbd: modify header, add utility to ease sync with qemu tree
Yehuda Sadeh [Mon, 24 May 2010 21:06:43 +0000 (14:06 -0700)]
rbd: modify header, add utility to ease sync with qemu tree

15 years agoosd: keep recovery ops in sync with pull
Sage Weil [Mon, 24 May 2010 20:50:00 +0000 (13:50 -0700)]
osd: keep recovery ops in sync with pull

Call start_recovery_op from pull() instead of fixing every caller (some
were wrong).  This keeps the recovery state in sync with pulling state,
even when pull() has to pull something different (head, snapdir) first.

Fixes this crash:
osd/PG.cc: In function 'void PG::finish_recovery_op(const sobject_t&, bool)':
osd/PG.cc:1842: FAILED assert(recovering_oids.count(soid))
 1: (PG::finish_recovery_op(sobject_t const&, bool)+0x14e) [0x74caf6]
 2: (ReplicatedPG::sub_op_push(MOSDSubOp*)+0x1da8) [0x669292]
 3: (ReplicatedPG::do_sub_op(MOSDSubOp*)+0x109) [0x671a73]
 4: (OSD::dequeue_op(PG*)+0x23c) [0x6bda00]
 5: (OSD::OpWQ::_process(PG*)+0x21) [0x7387c9]
 6: (ThreadPool::WorkQueue<PG>::_void_process(void*)+0x28) [0x6f5e12]
 7: (ThreadPool::worker()+0x23a) [0x7f2404]
 8: (ThreadPool::WorkThread::entry()+0x19) [0x73b783]
 9: (Thread::_entry_func(void*)+0x20) [0x64f92a]
 10: /lib/libpthread.so.0 [0x7f7a12cf473a]
 11: (clone()+0x6d) [0x7f7a11f1e69d]

15 years agomon: no need for 'whoami' file in store
Sage Weil [Mon, 17 May 2010 22:50:26 +0000 (15:50 -0700)]
mon: no need for 'whoami' file in store

The monitor rank is provided during startup.  No need to verify it against
the monitor store, especially since the stores are otherwise identical.

This makes it simpler to restore/duplicate/wahtever a monitor.. just copy
the files.

15 years agoreword blacklisted output so it's clearly discussing MDSes and not OSDs
Greg Farnum [Sun, 23 May 2010 22:13:33 +0000 (15:13 -0700)]
reword blacklisted output so it's clearly discussing MDSes and not OSDs

15 years agouclient: don't unlink null dentry when getting null linkage in mds reply
Sage Weil [Sat, 22 May 2010 16:56:27 +0000 (09:56 -0700)]
uclient: don't unlink null dentry when getting null linkage in mds reply

This broke semi-recently when the mds started returning null linkages (and
associated leases).

15 years agomon: trim pgmap states even when we don't have a full quorum
Sage Weil [Fri, 21 May 2010 23:17:48 +0000 (16:17 -0700)]
mon: trim pgmap states even when we don't have a full quorum

15 years agopaxos: recover using stashed latest when state histories don't overlap
Sage Weil [Fri, 21 May 2010 23:17:34 +0000 (16:17 -0700)]
paxos: recover using stashed latest when state histories don't overlap

If we don't have incremental states to catch up, jump to the latest.

15 years agomds: anchor multiversion inode before unlinking it
Sage Weil [Fri, 21 May 2010 21:55:38 +0000 (14:55 -0700)]
mds: anchor multiversion inode before unlinking it

If we are going to create a remote dentry linking to a multiversion inode
we're unlinking, make sure it's anchored!

This is a bit fugly because it mirrors the logic in journal_cow_dentry. No
obvious way to use a generic helper for that though.

15 years agolibrados.h: add other TMAP definitions
Yehuda Sadeh [Fri, 21 May 2010 20:44:40 +0000 (13:44 -0700)]
librados.h: add other TMAP definitions

also add a comment in rados.h about the defines in librados.h

15 years agomds: fix readdir pingpong on snapped dir with multiple mds
Sage Weil [Fri, 21 May 2010 19:08:17 +0000 (12:08 -0700)]
mds: fix readdir pingpong on snapped dir with multiple mds

Our traverse helper will follow the auth if we're looking at snapped
metadata, but we _don't_ want that for readdir because we check auth
ourselves, and want the dir's auth, not the inode's.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomonc: pick a different mon when repicking
Sage Weil [Thu, 20 May 2010 23:13:52 +0000 (16:13 -0700)]
monc: pick a different mon when repicking

15 years agomonc: hunting by default
Sage Weil [Thu, 20 May 2010 23:13:34 +0000 (16:13 -0700)]
monc: hunting by default

Otherwise if we fail to connect to the first mon we try, we never retry.

15 years agolibrados: update librados to define CEPH_OSD_TMAP_SET
Yehuda Sadeh [Thu, 20 May 2010 23:18:29 +0000 (16:18 -0700)]
librados: update librados to define CEPH_OSD_TMAP_SET

15 years agomon: fix mon injectargs, and simplify
Sage Weil [Thu, 20 May 2010 18:14:41 +0000 (11:14 -0700)]
mon: fix mon injectargs, and simplify

15 years agoosd: simplify --mkjournal, add --flush-journal
Sage Weil [Thu, 20 May 2010 17:58:56 +0000 (10:58 -0700)]
osd: simplify --mkjournal, add --flush-journal

15 years agoMerge branch 'osd_snapdir' into unstable
Sage Weil [Thu, 20 May 2010 17:39:57 +0000 (10:39 -0700)]
Merge branch 'osd_snapdir' into unstable

15 years agoosd: nicer debug output
Sage Weil [Thu, 20 May 2010 17:39:47 +0000 (10:39 -0700)]
osd: nicer debug output

15 years agointerval_set: fix union_of _size accounting; optimize ==
Sage Weil [Thu, 20 May 2010 17:33:55 +0000 (10:33 -0700)]
interval_set: fix union_of _size accounting; optimize ==

15 years agomds: fix interval_set copy of projected_free
Sage Weil [Wed, 19 May 2010 23:42:34 +0000 (16:42 -0700)]
mds: fix interval_set copy of projected_free

15 years agomds: fix interval_set copy of projected_free
Sage Weil [Wed, 19 May 2010 23:42:34 +0000 (16:42 -0700)]
mds: fix interval_set copy of projected_free

15 years agoosd: use blank reqid for snapdir events, too
Sage Weil [Wed, 19 May 2010 23:11:10 +0000 (16:11 -0700)]
osd: use blank reqid for snapdir events, too

Make reqid_is_indexed() less weird.

15 years agoosd: do not index by reqid if reqid not defined
Sage Weil [Wed, 19 May 2010 23:10:14 +0000 (16:10 -0700)]
osd: do not index by reqid if reqid not defined

15 years agoosd: update purged_snaps in PG::Info on trim completion; and replicate
Sage Weil [Wed, 19 May 2010 22:42:50 +0000 (15:42 -0700)]
osd: update purged_snaps in PG::Info on trim completion; and replicate

15 years agorbd: fix snap_seq type in rbd_header
Yehuda Sadeh [Wed, 19 May 2010 18:13:28 +0000 (11:13 -0700)]
rbd: fix snap_seq type in rbd_header

15 years agoinitscripts: remove 'flushoncommit' from default btrfs mount options
Sage Weil [Wed, 19 May 2010 18:49:15 +0000 (11:49 -0700)]
initscripts: remove 'flushoncommit' from default btrfs mount options

15 years agoosd: trim snaps via replicated osd ops
Sage Weil [Wed, 19 May 2010 17:53:32 +0000 (10:53 -0700)]
osd: trim snaps via replicated osd ops

15 years agoosd: make build_removed_snaps, is_removed_snap consistent
Sage Weil [Wed, 19 May 2010 17:42:20 +0000 (10:42 -0700)]
osd: make build_removed_snaps, is_removed_snap consistent

15 years agorados: update documentation to mention mkpool and rmpool
Greg Farnum [Wed, 19 May 2010 17:35:28 +0000 (10:35 -0700)]
rados: update documentation to mention mkpool and rmpool

15 years agoosd: fix peer_info updates on active primary
Sage Weil [Tue, 18 May 2010 22:04:17 +0000 (15:04 -0700)]
osd: fix peer_info updates on active primary

15 years agoautomake: some clean up
Sage Weil [Tue, 18 May 2010 15:01:03 +0000 (08:01 -0700)]
automake: some clean up

15 years agopoolop: fix MPoolOpReply decoding
Yehuda Sadeh [Mon, 17 May 2010 23:29:50 +0000 (16:29 -0700)]
poolop: fix MPoolOpReply decoding

15 years agothrottle: allow large items if we're under our max
Sage Weil [Fri, 14 May 2010 17:44:00 +0000 (10:44 -0700)]
throttle: allow large items if we're under our max

Normally we stay under max, but for large items, take it as long as we're
currently below max.  This avoids deadlock.

15 years agoosd: purged_snaps in PG::Info, queue snap trim on primary
Sage Weil [Sun, 16 May 2010 03:55:44 +0000 (20:55 -0700)]
osd: purged_snaps in PG::Info, queue snap trim on primary

15 years agoosd: include snapdir objects in pg log for proper replication, recovery
Sage Weil [Fri, 14 May 2010 21:18:21 +0000 (14:18 -0700)]
osd: include snapdir objects in pg log for proper replication, recovery

15 years agostrings: clean up pool op names
Sage Weil [Fri, 14 May 2010 18:36:41 +0000 (11:36 -0700)]
strings: clean up pool op names

15 years agomds: allow readdir result limit in bytes
Sage Weil [Fri, 14 May 2010 18:32:51 +0000 (11:32 -0700)]
mds: allow readdir result limit in bytes

This will allow the client to bound the size of the reply it gets

15 years agodebian: put proper distribution in debian changelog
Sage Weil [Fri, 14 May 2010 16:43:31 +0000 (09:43 -0700)]
debian: put proper distribution in debian changelog

15 years agoversion: use next version ~rc for unstable branch
Sage Weil [Fri, 14 May 2010 16:14:00 +0000 (09:14 -0700)]
version: use next version ~rc for unstable branch

This makes unstable always sort after stable, testing releases:
  0.21~rc-unstable... > 0.20.1-testing...

15 years agoradosgw_admin: die after first bad argument
Sage Weil [Thu, 13 May 2010 20:28:46 +0000 (13:28 -0700)]
radosgw_admin: die after first bad argument

15 years agoobjecter: separately track pgmap, osdmap state machine version
Sage Weil [Thu, 13 May 2010 17:47:33 +0000 (10:47 -0700)]
objecter: separately track pgmap, osdmap state machine version

Mixing these up can make our request hang on the monitor indefinitely.

15 years agomon: return correct state machine epoch in replies
Sage Weil [Thu, 13 May 2010 17:47:07 +0000 (10:47 -0700)]
mon: return correct state machine epoch in replies

15 years agotestrados: fix aio api usage
Sage Weil [Thu, 13 May 2010 17:46:47 +0000 (10:46 -0700)]
testrados: fix aio api usage

15 years agolibrados: implement rados_stat_pool()
Sage Weil [Thu, 13 May 2010 17:46:38 +0000 (10:46 -0700)]
librados: implement rados_stat_pool()

15 years agoMerge branch 'unstable' of ceph.newdream.net:git/ceph into unstable
Sage Weil [Wed, 12 May 2010 23:13:36 +0000 (16:13 -0700)]
Merge branch 'unstable' of ceph.newdream.net:git/ceph into unstable

15 years agorados: fix typo
Sage Weil [Wed, 12 May 2010 23:13:03 +0000 (16:13 -0700)]
rados: fix typo

15 years agoosd: add CEPH_PG_MAX_SIZE to header
Sage Weil [Wed, 12 May 2010 21:42:24 +0000 (14:42 -0700)]
osd: add CEPH_PG_MAX_SIZE to header

15 years agofilestore: update btrfs ioctl.h
Sage Weil [Wed, 12 May 2010 21:41:13 +0000 (14:41 -0700)]
filestore: update btrfs ioctl.h

15 years agoclient: un-"fix" u64 types in client/ioctl.h
Sage Weil [Wed, 12 May 2010 21:41:00 +0000 (14:41 -0700)]
client: un-"fix" u64 types in client/ioctl.h

15 years agomsgr: fix possible overflow when sending seq
Sage Weil [Tue, 11 May 2010 22:03:02 +0000 (15:03 -0700)]
msgr: fix possible overflow when sending seq

15 years agomsgr: print message encoding version to aid debugging
Sage Weil [Tue, 11 May 2010 22:02:52 +0000 (15:02 -0700)]
msgr: print message encoding version to aid debugging

15 years agoceph_strings: checkpatch fix
Yehuda Sadeh [Wed, 12 May 2010 22:09:28 +0000 (15:09 -0700)]
ceph_strings: checkpatch fix

15 years agoceph_fs.h: checkpatch fixes
Yehuda Sadeh [Wed, 12 May 2010 22:08:24 +0000 (15:08 -0700)]
ceph_fs.h: checkpatch fixes

15 years agocmpxattr: null termination fixes
Yehuda Sadeh [Wed, 12 May 2010 22:08:09 +0000 (15:08 -0700)]
cmpxattr: null termination fixes

15 years agorados: add 'tmap dump'
Sage Weil [Wed, 12 May 2010 18:56:03 +0000 (11:56 -0700)]
rados: add 'tmap dump'

15 years agoosd: set obs.exists in projected object state during recovery
Sage Weil [Wed, 12 May 2010 18:54:09 +0000 (11:54 -0700)]
osd: set obs.exists in projected object state during recovery

15 years agomds: warn, don't crash, on trailing garbage in dir objects
Sage Weil [Wed, 12 May 2010 18:53:50 +0000 (11:53 -0700)]
mds: warn, don't crash, on trailing garbage in dir objects

15 years agomsgr: put msgvec on heap
Sage Weil [Tue, 11 May 2010 23:52:48 +0000 (16:52 -0700)]
msgr: put msgvec on heap

It can get too big for the stack.

15 years agomsgr: tolerate incoming seq #'s that skip ahead
Sage Weil [Wed, 12 May 2010 04:14:39 +0000 (21:14 -0700)]
msgr: tolerate incoming seq #'s that skip ahead

This is necessary because the kclient may pull messages out of the out/sent
queues, and we can't renumber previously sent (and possibly received)
messages without breaking things entirely.

15 years agoceph: return error code returned by server
Sage Weil [Tue, 11 May 2010 21:46:01 +0000 (14:46 -0700)]
ceph: return error code returned by server