Commit Graph

10704 Commits

Author SHA1 Message Date
Sage Weil
e63d3f741f mount.ceph: add mount options/flags
noatime, nodiratime, relatime.  Some cleanup.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-02 07:49:23 -07:00
Sage Weil
9be976259a Makefile: add/fix ceph_ver.h dependencies
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-02 07:33:57 -07:00
Sage Weil
89a65548bd filejournal: make journal alignment max of block, page sizes
Alignment must be a multiple of page size.  At least currently.
2010-07-01 16:48:26 -07:00
Sage Weil
67b9fa6147 ceph: fix decoding of class incrementals 2010-07-01 15:46:33 -07:00
Sage Weil
9154b5fc10 msgr: handle ipv4 or ipv6 addresses (untested)
At some point we may want to bind to both v4 and v6 addrs.  Later!

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-01 15:46:33 -07:00
Yehuda Sadeh
640eaad433 osd: caps configuration file uses pool names
pool names instead of pool ids
2010-07-01 15:19:36 -07:00
Yehuda Sadeh
c6969f1216 vstart.sh: added -c to the cclass execution 2010-07-01 15:19:36 -07:00
Yehuda Sadeh
91088587b5 osd, class: introduce public class methods
public class methods don't need exec permissions in order to execute
2010-07-01 15:19:36 -07:00
Yehuda Sadeh
ece7098f34 osd: pgpool keeps pool name 2010-07-01 15:19:36 -07:00
Yehuda Sadeh
a08c6f7645 osd: modify caps calculation 2010-07-01 15:19:36 -07:00
Sage Weil
ed02afdf79 cfuse: log_per_instance by default
e.g., if run with --log-to-stdout=0,

lrwxrwxrwx  1 sage sage        11 Jul  1 14:22 cfuse4173 -> fatty.31362
2010-07-01 14:29:13 -07:00
Sage Weil
c2debcc623 man: install cclass, cclsinfo man pages; include in ceph.deb 2010-07-01 14:29:13 -07:00
Sage Weil
57aeed1fde debian: add logrotate.d/ceph 2010-07-01 14:29:13 -07:00
Paul Chiang
0233257bfe Makefile: link ssl to libceph
Signed-off-by: Paul Chiang <paul_chiang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-01 14:29:13 -07:00
Paul Chiang
7e5e519ae6 libceph: Add check before umount in deinitialize
Signed-off-by: Paul Chiang <paul_chiang@tcloudcomputing.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-01 14:29:13 -07:00
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
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