Commit Graph

1162 Commits

Author SHA1 Message Date
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
sageweil
e4f8d29840 beginnings of monitorstore thinger
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1085 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-08 03:41:56 +00:00
sageweil
18268f7793 merged trunk changes r1068:1083 into branches/riccardo/monitor2
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1084 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-08 03:29:55 +00:00
sageweil
feb103f7d2 try to close bound socket to avoid TIME_WAIT after control-c
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1083 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-08 03:27:59 +00:00
sageweil
7856be3d20 tweak to cache purge thing
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1082 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-08 03:27:34 +00:00
anwleung
61a7f7bcdb client key distro is close to done
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1081 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-07 02:07:35 +00:00
anwleung
d1cb0f52e3 Passing of keys is working...but not finished
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1080 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-06 23:48:46 +00:00
sageweil
7978d899c4 elector signedness cleanup
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1079 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-05 18:59:31 +00:00
sageweil
87c47f752e only use ar -rc for darwin, ld is faster the rest of the time
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1078 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-05 18:59:17 +00:00
sageweil
809da8bfc4 ebofs trim_from_cache(object, start, len)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1077 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-05 18:08:27 +00:00
sageweil
133ed04ecd statvfs in client, as per newer fuse api
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1076 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-05 00:33:41 +00:00
sageweil
a73bbfac36 basic mds recovery now working, mostly missing graceful handling of surviving mds; synclient 'walk' tweaks
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1075 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-04 03:26:56 +00:00
anwleung
7426f9f937 Waiting for ClientMonitor to respond with ACK
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1074 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-02 02:29:44 +00:00
anwleung
e7619b6135 Ticket's are updated and supposedly passable
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1073 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-02 01:40:08 +00:00
sageweil
83e1102a96 client blocking to get a user ticket
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1072 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-01 23:36:57 +00:00
anwleung
ccddcb48a9 First steps towards client auth
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1071 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-01 20:58:58 +00:00
sageweil
32ade6da6c user auth messages
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1070 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-01 07:24:44 +00:00
sageweil
a5dd88593a fixed htons goof in SimpleMessenger; mkmonmap now works; monitor elector sorta working!
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1069 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-01 06:47:48 +00:00
riccardo80
07ac5d3e74 creating branch for distributed monitor
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1068 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-01 05:43:23 +00:00
sageweil
cf298fcfe4 elector stuff for distributed monitor
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1067 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-01 05:38:43 +00:00
anwleung
e08a9eb1bd A bit mote on the user.h
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1066 29311d96-e01e-0410-9327-a35deaab8ce9
2007-02-01 00:44:38 +00:00
anwleung
f113ad3e64 Modified the monmap to have keys
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1065 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-31 23:33:14 +00:00
anwleung
d60308fc7d Added the (empty) user class
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1064 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-31 23:28:11 +00:00
sageweil
31d854b727 ebofs sync() tweaks (untested!); first pass at is_cached interface (with half-assed implementation)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1063 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-31 22:51:08 +00:00