Commit Graph

10860 Commits

Author SHA1 Message Date
CC Lien
139e82094c hostname override option for ceph init script 2010-07-01 14:29:13 -07:00
Henry C Chang
10476adaea buffer: fix logic in write_fd()
Reset iovec after finishing writev operation.
This bug occurs when buffer list size is larger than IOV_MAX.
2010-07-01 14:29:13 -07:00
Henry C Chang
2c2502995b mon: break loop if config file parsed successfully 2010-07-01 13:56:08 -07:00
Sage Weil
e006e7951a msgr: fix dispatch throttler release
We need to release the same amount back to the throttler as we originally
reserved.  Store that amount in the Message, and catch all the error
paths.  This fixes the case where messages get fed back into dispatch
locally (i.e. not via read_message()).
2010-07-01 12:46:18 -07:00
Sage Weil
bbbf24068f cfuse: daemonize by default
We have to fork, then start client, to avoid killing our pthreads.  Use
a socketpair to tell the parent process about mount success/failure.
2010-07-01 11:15:39 -07:00
Sage Weil
a7d4987f3a config: -f just means foreground; do not change log output
Before it would set log_to_stdout = false, but the default might be true.
2010-07-01 11:01:18 -07:00
Sage Weil
21432ec8ef client: start/stop objectcacher thread in init/shutdown, not constructor 2010-07-01 10:57:21 -07:00
Sage Weil
e38ed5192b config: disallow -d|--daemonize
Either we can daemonize, and do that by default, or we can't, and
shouldn't, even if you pass -d.
2010-07-01 09:33:02 -07:00
Sage Weil
2c7cd49bd9 common: break init into set_defaults and init steps
This will let us tweak the default daemon/non-daemon settings as needed,
e.g. in the case of cfuse.
2010-07-01 09:25:43 -07:00
Sage Weil
8043ee277c debug: fixup 2010-07-01 09:10:41 -07:00
Sage Weil
85e626d178 common: disable logger by default; make daemon settings explicit in (3) callers 2010-07-01 08:55:52 -07:00
Sage Weil
c2538732d2 debug: add max count for name symlinks 2010-07-01 08:47:35 -07:00
Sage Weil
633af0453d vstart: normalize pid file names 2010-07-01 08:47:35 -07:00
Sage Weil
79991ed498 debug: revamp debug/logging
- By default, append to $type.$name.log.
- Get old $hostname.$pid + $type.$name symlink behavior only with
  g_conf.log_per_instance
- Add new g_conf.log_file option to force a particular file.
2010-07-01 08:47:35 -07:00
Greg Farnum
1bd46c0480 client: set MetaRequest::inode to the inode or directory inode whenever possible.
Provides link to caps, useful when requests come back ESTALE or similar.
2010-06-30 16:10:12 -07:00
Greg Farnum
e5b60faac7 client: set inode/dentry fields where available 2010-06-30 16:10:11 -07:00
Greg Farnum
beeb08bb09 client: remove now-unused authority and pick_replica functions 2010-06-30 16:10:09 -07:00
Greg Farnum
fa62e9db4b client: rewrite choose_target_mds to more closely mirror kclient logic and be correct. 2010-06-30 16:08:56 -07:00
Greg Farnum
39796b4794 client: make fragmap updates a little more space efficient.
If the auth is the same as the parent, don't add to the map (and remove if
it's already there). Absence is interpreted the same as a value of -1.
2010-06-30 16:08:07 -07:00
Greg Farnum
60f2672ee2 client: add mds_num to MDSSession struct 2010-06-30 16:08:07 -07:00
Greg Farnum
0992001c1e client: clean up Inode::authority 2010-06-30 16:06:52 -07:00
Greg Farnum
4f2f78dd0e client: move all mds selection code into choose_target_mds 2010-06-30 16:06:52 -07:00
Greg Farnum
060d22d043 client: remove dead code 2010-06-30 16:06:52 -07:00
Greg Farnum
194986a3a1 client: remove Inode::dir_auth data member 2010-06-30 16:06:52 -07:00
Greg Farnum
abd26eea23 client: initialize auth_caps in Inode! Prevents bad pointer derefs. 2010-06-30 16:06:52 -07:00
Greg Farnum
18c305abb8 qa: set runoncfuse.sh to run cfuse in background and kill at end of tests.
This is an imperfect solution at best, since it doesn't handle errors at all,
but it'll have to do for now.
2010-06-30 16:06:52 -07:00
Yehuda Sadeh
bfd335c2b1 rbd: some header cleanup 2010-06-30 16:06:57 -07:00
Yehuda Sadeh
77a1664af6 rbdtool: implement snap rollback 2010-06-30 16:06:50 -07:00
Sage Weil
2fdd43e71f buffer: handle write_fd() on empty bufferlist 2010-06-30 15:44:38 -07:00
Sage Weil
8410e6a65a osd: fix, cleanup ack/disk reply logic
There was a bug where we would get no reply if we could send ondisk but
the client didn't want it.  This simplifies and cleans up the checks
to make more sense, removing the can_* helpers that were hiding which
checks were being done.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-30 14:40:20 -07:00
Sage Weil
aa30dd18aa buffer: make write_fd() tolerate zero length ptrs in the bufferlist 2010-06-30 14:18:06 -07:00
Sage Weil
3235abe918 msgr: clean up aborted message handling
No need for a dummy message.  Make the (single) caller handle returning
no message as a non-error.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-30 12:09:32 -07:00
Sage Weil
7cedafd3e3 msgr: release bytes reserved from throttlers in failure paths
If we don't release those bytes, the throttler count eventually fills up
with bytes we were going to read but didn't (due to socket errors, etc)
until we can't read anything.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-30 12:09:31 -07:00
Sage Weil
3c80b9dafe uclient: rename make_path; cleanup/move make_request_from_Meta
Document, make it clear what kind of "path" it's really building.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-30 11:14:50 -07:00
Yehuda Sadeh
e76ce44131 man: add man pages for cclass and cclsinfo 2010-06-30 10:32:21 -07:00
Sage Weil
2f9ea76fba filejournal: fix buffer realignment condition; useful debug output on error
We don't care about contiguous, only about page alignment.
2010-06-30 08:34:26 -07:00
Yehuda Sadeh
134a0d0f72 rbdtool: fix uninitialized variable 2010-06-29 22:58:52 -07:00
Yehuda Sadeh
0627965198 rbdtool: implement rename 2010-06-29 17:23:18 -07:00
Yehuda Sadeh
015faa8853 config: update __isarg before reading config param 2010-06-29 17:23:18 -07:00
Sage Weil
4d9f49a725 debian: include cclsinfo 2010-06-29 16:25:27 -07:00
Sage Weil
013f9e52e3 Makefile: include cclsinfo; lose the old .cc 2010-06-29 16:23:11 -07:00
Sage Weil
0812b8f4d9 Makefile: include cclass.in in dist 2010-06-29 16:08:33 -07:00
Yehuda Sadeh
f9dc4b9091 buffer: write_fd should skip empty buffers 2010-06-29 16:00:05 -07:00
Yehuda Sadeh
96b1db80d0 rbdtool: init rbd block id, later will be used for rename 2010-06-29 16:00:05 -07:00
Yehuda Sadeh
c9930900e6 cclass.in: LIBDIR=.libs in certain cases 2010-06-29 16:00:05 -07:00
Yehuda Sadeh
0f4ddbac3b cls: cls_read, cls_cxx_read return the number of bytes read 2010-06-29 16:00:05 -07:00
Sage Weil
2ec729d1fe config: use <<20 for MB 2010-06-29 14:40:30 -07:00
Sage Weil
2df8b9fd49 script/plot.pl: don't pause
Run like so:

 $ script/plot.pl path/to/log osd c_wrb [smooth bezier] | gnuplot -persist
2010-06-29 14:40:23 -07:00
Sage Weil
fcc39c8113 msgr: use dedicated reaper thread
We were calling the reaper from the wait() loop.  The problem is that
the OSD has two messengers, and only the first was in wait().. the second
wait() was only called after the first terminated (i.e, when the OSD was
shutting down).

Instead, launch a separate reaper thread when we bind, and close it out
on shutdown right after the accepter.
2010-06-29 14:40:23 -07:00
Sage Weil
3e334024f4 osd: removed unused RepGather::indata
Signed-off-by: Sage Weil <sage@newdream.net>
2010-06-29 14:38:39 -07:00