Commit Graph

178 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
sageweil
6840a1b251 more darwin tweaks
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1051 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-30 16:54:43 +00:00
sageweil
e1a58442ea updates to build on darwin. fuse untested. need to edit Makefile to enable darwin cflags.
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1050 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-30 03:12:38 +00:00
sageweil
137c90ffcf mkmonmap; cmon can startup standalone or in a specific monitor rank (given an existing monmap); monmap file read/write moved into MonMap class
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1045 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-28 03:04:47 +00:00
sageweil
a36c509ef5 standalone synthetic client (csyn)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1034 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-25 00:32:26 +00:00
sageweil
37863843d1 fixed fakemessenger whoops
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1031 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-24 03:36:25 +00:00
sageweil
98b2658de1 NewerMessenger replaced with SimpleMessenger, which is much... simpler.
new build targets for standalone monitor and mds: cmon and cmds.
it's now possible to start up a distributed fs without mpi and newsyn.
some cleanup in other messenger code.  
client boot process modified to contact montior explicitly for client id.



git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1029 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-24 03:05:55 +00:00
sageweil
b54ffb0adb svn change
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1022 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-19 19:55:39 +00:00
sageweil
1a1b3f42ea new repository localtion
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1021 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-19 19:54:09 +00:00
sageweil
9b453154cf move into trunk
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1018 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-19 19:26:00 +00:00
sageweil
70327f3a9a move web into trunk
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1017 29311d96-e01e-0410-9327-a35deaab8ce9
2007-01-19 19:25:27 +00:00