Commit Graph

1135 Commits

Author SHA1 Message Date
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
sageweil
ed572c0cbf fixed port handling, nonce
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1108 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-17 23:29:37 +00:00
sageweil
0d081ba016 merged trunk changes r1084:1106 to branches/riccardo/monitor2 (namely, the mds updates merged back into trunk)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1107 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-17 23:04:24 +00:00
sageweil
92f7e6e053 merge from branches/sage/cephmds2
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1106 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-17 22:49:47 +00:00
sageweil
7df5fac90d iasdf
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1105 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-17 19:56:11 +00:00
sageweil
bc0d400c8b openc hack, works for now
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1104 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-17 19:03:06 +00:00
sageweil
e68d24c990 debug prefix
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1103 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-17 19:02:49 +00:00
sageweil
41dcb87442 pipe close bugfix
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1102 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-17 19:02:38 +00:00
anwleung
a734251516 added the extcap class
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1101 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-17 06:51:06 +00:00
anwleung
9ce10fb9e8 Client gets cap back and begins passing to OSD
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1100 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-17 06:22:05 +00:00
sageweil
9511a6e45c merged trunk changes r1047:1098 into branches/sage/cephmds2
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1099 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-16 18:08:49 +00:00
sageweil
b796b3026b move ip parsing into config.o, generic --bind option for all build targets
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1098 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-15 22:28:29 +00:00
sageweil
3d79d6112b fixed get_new_proposal_number
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1097 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-15 18:59:52 +00:00
riccardo80
f4e4556cf5 function skeletons
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1096 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-15 10:27:58 +00:00
riccardo80
58a1b3e4a4 paxos messages
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1095 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-15 10:27:21 +00:00
sageweil
53a7ffa3d4 create a mess of directories w/ a realistic nesting structure
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1094 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-14 22:29:40 +00:00
sageweil
bcb9b1e400 surviving exporter will recovery importer failure during export
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1093 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-10 00:48:40 +00:00
sageweil
ae472dbf87 some web page updates
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1092 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-09 19:13:52 +00:00
sageweil
a8f8019a0c osd ops tagged with reqid_t, which includes osd client (client|mds) incarnation. types.h files restructured/cleaned up somewhat.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1091 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-09 18:42:36 +00:00
sageweil
1b4868aaaa ginormous message layer refactoring, i want to die
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1090 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-09 00:38:02 +00:00
sageweil
49784fff3e monitorstore. paxos get_last_proposal_number.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1089 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-08 19:16:23 +00:00
sageweil
c434146bf6 paxos shell
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1088 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-08 04:42:13 +00:00
sageweil
8eef495427 elector bugfix 2
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1087 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-08 04:01:03 +00:00
sageweil
f2d75fa7c3 elector bugfix
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1086 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-08 03:57:02 +00:00