Commit Graph

1308 Commits

Author SHA1 Message Date
sageweil
6f36b1ef49 compiles, too
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1158 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-02 04:35:56 +00:00
sageweil
2f0aa628f4 wrote it out.. hmm..
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1157 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-02 04:27:44 +00:00
rsdio
8fa2c00f43 2007-03-01 Casey Marshall <csm@soe.ucsc.edu>
* config.cc (g_conf): initialize bdbstore_transactional.
	(parse_config_options): accept `--bdbstore-transactional' and
	`--debug-bdbstore'.
	* config.h (struct md_config_t): add `bdbstore_transactional.'
	* doc/bdb.txt: new file.
	* osbdb/OSBDB.cc (statfs): implemented.
	Added optional transactions to most methods.
	* osbdb/OSBDB.h: updated for transactions.
	* test/testosbdb.cc: new file.
	* test/testos.cc: updated.



git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1156 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-02 04:07:56 +00:00
anwleung
85fcea7759 minor fixes...i think we in a happy state (knock on wood)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1155 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-02 01:35:22 +00:00
sageweil
c3df762d44 fixed cache rejoin. --mds_dump_cache_on_map
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1154 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-02 00:54:03 +00:00
sageweil
3b8f05b8dd import/export failure recovery basically working!
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1153 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 22:25:08 +00:00
anwleung
f293d98f8f Cleaned up the mon key gen
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1152 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 20:55:54 +00:00
sageweil
dbac3102a4 merge trunk changes r1058:1150 into branches/aleung/security1/ceph
- new monitor key boostrapping


git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1151 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 19:56:54 +00:00
anwleung
ba197ffce1 passing of caps works to s degree...still some issues to resolve. About
to merge trunk into branch. note version number is case bad things 
happen.


git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1150 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 19:04:21 +00:00
sageweil
81de51359b more transplanted old guts. blood everywhere.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1149 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 16:58:37 +00:00
sageweil
27ac80ee91 comment
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1148 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 16:37:00 +00:00
sageweil
fa5e6eb9f6 newsyn fix for numclients>1, mds_beacon_* args for config.cc, simplemessenger now dies on dup register_entity, doesn't assert on missing local destination (still warns)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1147 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 16:36:23 +00:00
eestolan
42c9f1c813 Start of new interface to use Ceph under Hadoop
--Esteban



git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1146 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 03:55:53 +00:00
anwleung
11632e9bf6 More normal state...not that everything works yet but better
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1145 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 03:55:38 +00:00
sageweil
cd8c12797b more stuff
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1144 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 03:21:08 +00:00
sageweil
5b9186f74f stupid bug fix for _is_cached and _trim_from_cache
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1143 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 03:20:10 +00:00
anwleung
98b3943e95 little changed...still in weird state :)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1142 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 03:04:35 +00:00
anwleung
73f4d1c4e5 Stuffs kinda in a weird state...weird extcap compile error...cap caching
on client buffer not totally done


git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1141 29311d96-e01e-0410-9327-a35deaab8ce9
2007-03-01 02:05:46 +00:00
sageweil
1e0a427691 der
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1140 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-28 23:15:51 +00:00
sageweil
a476b85b8f make mds notice incarnation, even when it starts up as a specific mds# (e.g. via newsyn)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1139 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-28 23:05:17 +00:00
sageweil
9213a23f14 eek
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1138 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-28 18:42:55 +00:00
sageweil
4a10f2b963 hmm
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1137 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-28 04:05:31 +00:00
sageweil
f583f341c6 fixed stupid cache client shutdown bug
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1136 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-28 02:11:49 +00:00
sageweil
559d2bfa58 reverse_import works with 2 nodes. bystander subtree cleanup is going to be a little tricky.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1135 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-27 23:53:40 +00:00
sageweil
2038950ed4 online recovery from importer failure works. open_remote_dir fixed.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1134 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-27 18:22:19 +00:00
sageweil
6595ded2f6 yay! still need to test online recovery, and write reverse_import. cleaned out old crope crap.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1133 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-27 00:54:19 +00:00
sageweil
18ca629c13 import/export stable with new subtree infrastructure. now to fix recovery.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1132 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-26 18:13:44 +00:00
riccardo80
9c7f67de9a added basic implementation
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1131 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-26 08:12:03 +00:00
sageweil
edcf4c0d73 merge branches/riccardo/monitor1 changes into trunk (pg log storage fix, monitorstore, simplemssenger fixes, fakestore rewrite, and the latest monitor stuff)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1130 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-26 00:17:32 +00:00
sageweil
a32d6d32c1 fixed pg log storage (and the stupid recovery problems); fakestore cleanup
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1129 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-26 00:13:49 +00:00
sageweil
90c7ca30d6 minor set_dest_inst cleanup
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1128 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-26 00:13:23 +00:00
sageweil
54ce20a4ad fakestore rewrite. new dir layout. now only optionally fake collections or attrs. verify xattr support on mount.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1127 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-25 00:53:41 +00:00
sageweil
e9fb0a2ea2 mdsmon startup/shutdown cleanup. minor monitorstore fixup
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1126 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-24 21:52:10 +00:00
anwleung
3e5865809a Read caps are being received by OSD...write caps are next
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1125 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-24 00:00:16 +00:00
sageweil
93528d8d83 monitorstore fixes
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1124 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-23 23:27:19 +00:00
sageweil
fd9422edfe fixed osd failure reporting; monitorstore mkfs; monitorstore cleanup
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1123 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-23 22:47:21 +00:00
sageweil
3968ca40f0 merged trunk changes r1107:1121 into branches/riccardo/monitor1
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1122 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-23 21:57:05 +00:00
anwleung
432611ef46 Read cap is being passed through client
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1121 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-23 21:28:08 +00:00
anwleung
8dae85df5b Removed RC5 encryption, not compatible with older crypto libs
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1120 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-23 04:32:59 +00:00
anwleung
a60cdad6ff Changed cap cache handling
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1119 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-23 00:53:47 +00:00
anwleung
2d237693a4 Resolved some capability generation issues
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1118 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-23 00:22:12 +00:00
sageweil
ba38fe23b7 cmonctl; omg gobs of dir_auth import/export crap, that i am about to scrap anyway. fun times.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1117 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-22 23:26:15 +00:00
sageweil
2fb0b4f39a untested auth_pin changes; ctime changes (i am an idiot)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1116 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-22 04:37:22 +00:00
anwleung
9fe20ecf48 Modified extcap buffer management
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1115 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-21 07:03:58 +00:00
rsdio
e50846fead 2007-02-20 Casey Marshall <csm@soe.ucsc.edu>
* test/testos.cc: try to compute run times better.



git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1114 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-21 00:54:26 +00:00
sageweil
d8814bda4f minor cap bit handling fixes. should tide us over until there's time for a more thorough code review.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1113 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-20 23:23:35 +00:00
sageweil
ecd44c704f significant rework of export messaging. cache expire rewritten to dup expire messages to old and new auth during ambiguous phase. CDir.dir_auth_pending to track that. CDentry state properly migrated now. lots of related bugfixes.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1112 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-20 20:00:39 +00:00
rsdio
771f8f25fb 2007-02-19 Casey Marshall <csm@soe.ucsc.edu>
* config.cc (g_conf): set `bdbstore_cachesize' to 0 (== use
	default BDB cache size).
	(parse_config_options): handle `--bdbstore-cachesize'.
	* config.h (md_config_t): add `bdbstore_cachesize.'
	* osbdb/OSBDB.cc (binary_search): reimplemented, non-dumb like.
	(OSBDB::opendb): new method.
	(OSBDB::mount): handle db opening here.
	(OSBDB::umount): close the DB, dispose of Db pointer.
	(OSBDB::mkfs): handle db opening here.
	(OSBDB::pick_object_revision_lt): implemented.
	(OSBDB::stat): handle split between object data and object
	"inode."
	(OSBDB::remove): likewise; also remove attributes.
	(OSBDB::truncate): likewise; don't worry about large objects
	here.
	(OSBDB::read): handle data/inode split; only use DB_DBT_PARTIAL if
	we have to.
	(OSBDB::write): likewise.
	(OSBDB::clone): handle data/inode split; just read in the whole
	object.
	(OSBDB::create_collection): fix collections list move.
	(OSBDB::collection_add): fix objects list move.
	(OSBDB::_setattr): handle attribute key changes; fix attribute
	names move.
	(OSBDB::_getattr): new method.
	(OSBDB::getattr): new method.
	(OSBDB::getattrs): new method.
	(OSBDB::rmattr): new method.
	(OSBDB::listattr): fix attribute key types; fix reading
	attributes.
	(OSBDB::collection_setattr): implemented.
	(OSBDB::collection_rmattr): implemented.
	(OSBDB::collection_getattr): implemented.
	(OSBDB::collection_listattr): implemented.
	* osbdb/OSBDB.h: enforce POD types for DB keys; add << operator
	for DB key types. Make an "inode" type for object metadata, so we
	don't need to prepend an object length to the object data.
	(OSBDB::env, OSBDB::mounted, OSBDB::opened): new fields.
	(OSBDB::OSBDB): don't initialize `db' here.
	(OSBDB::~OSBDB): handle db closure.



git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1111 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-20 01:11:09 +00:00
rsdio
acea5fb42f 2007-02-17 Casey Marshall <csm@soe.ucsc.edu>
* config.cc (g_conf): add `bdbstore' variables.
	(parse_config_options): handle `bdbstore' arguments.
	* config.h (struct md_config_t): add `bdbstore' fields.
	* ebofs/Ebofs.cc: fix includes for Darwin.
	* Makefile (CFLAGS): add `-DUSE_OSBDB' if `want_bdb' is `yes'.
	(OSBDB_LIBS, OSBDB_OBJS, OSBDB_OBJ): define if `want_bdb'.
	(cosd): link in `osbdb.o'.
	(testos): new target.
	(osbdb.o): new target.
	* test/testos.cc: new file.
	* osd/OSD.cc: include `osbdb/OSBDB.h' if `USE_OSBDB' is defined.
	(OSD::OSD): create an OSBDB store if requested.
	* osbdb/OSBDB.h: new file.
	* osbdb/OSBDB.cc: new file.



git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1110 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-18 00:47:52 +00:00
sageweil
d872f20231 paxos message delivery, elector change
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1109 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-17 23:29:57 +00:00