Christian Brunner
19886eb6e0
ceph.spec.in: add logrotate configuration
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 09:38:11 -07:00
Christian Brunner
293299f0ca
ceph.spec.in: set correct path for rbd classes
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-09 09:38:10 -07:00
Sage Weil
9b74eb6f8a
osd: print debug write before adding to transaction
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 15:41:32 -07:00
Sage Weil
4701e8388c
msgr: return error and dethrottle if message decode fails
...
This was broken by the addition of the throttling stuff.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 14:55:53 -07:00
Sage Weil
b81273d5ec
debian: make helper scripts remember most recent release
...
So you don't have to cut&paste it on the command line
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 14:27:57 -07:00
Sage Weil
f456b51d60
osd: fix delayed pg creation use after free
...
Use local acting[], not the one stashed in creating_pgs[pgid]. And drop
the duplication .erase().
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 13:34:15 -07:00
Sage Weil
6612a1f15c
vstart: specify osd class tmp dir
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 11:34:48 -07:00
Sage Weil
9fd3f5932f
monc: make hunt, ping rates configuration
...
3s for hunt rate, 10s for ping rate.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 10:56:32 -07:00
Sage Weil
a396fcb224
client: increase client mount timeout
...
This needs to be longer than the monclient hunt rate (currently 10s) so
that we succeed if we initially pick a down monitor.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 10:49:51 -07:00
Sage Weil
89c7d920aa
filestore: improve lseek64 error checking, and use buffer::list::write_fd()
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 10:14:23 -07:00
Sage Weil
a3fa9660ba
buffer: make write_fd() const
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 10:09:21 -07:00
Sage Weil
303a1e3c06
mount.ceph: handle ipv6 addrs, colons, braces
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 09:49:50 -07:00
Sage Weil
25ff6e4c18
ceph.spec: require libedit
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 08:38:54 -07:00
Sage Weil
e0d443cce8
ceph.spec.in: require binutils
...
cclass needs /usr/bin/nm
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 08:36:46 -07:00
Sage Weil
c5d86f9d77
debian: require binutils
...
cclass needs 'nm' to extract symbols from rados classes.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 08:33:40 -07:00
Sage Weil
fd8ba5d5f2
debian: explicit postinst/postrm for shlibs
...
The dh_shlibdeps sees the .so in 'ceph' and incorrectly adds ldconfig to
postinst and postrm. Which is useless and upsets lintian. So do our
postinst/postrm magic explicitly.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-08 08:29:53 -07:00
Sage Weil
ae82dd5a5c
rbdtool: fix export
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 16:34:27 -07:00
Sage Weil
1e08e4bf1f
mon: create new pools using rjenkins hash
...
Otherwise they get -1, which always maps to an invalid (-1) pgid.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 16:33:05 -07:00
Yehuda Sadeh
0764630815
rbdtool: should support files larger than 2GB
2010-07-07 16:55:43 -07:00
Sage Weil
b977f4e579
debian: _do_ strip cosd
2010-07-07 15:56:25 -07:00
Sage Weil
cf38e86e81
class: make class tmp directory configurable, not /tmp
...
/tmp usually gets mounted with 'noexec', making it a poor choice.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 15:56:23 -07:00
Sage Weil
2096d8d77e
logger: shut up
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 14:41:15 -07:00
Yehuda Sadeh
d5e3962a72
config: can use '-' as a config option
2010-07-07 15:00:35 -07:00
Sage Weil
019899030a
msgr: remove fake orig_source_addr fakery
...
This makes get_orig_*() match get_*().
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 14:33:33 -07:00
Sage Weil
6ae95b6cf9
mon: fix message forwarding to use Connection to fake source addr
...
This make get_source_addr() work (not just get_orig_source_addr()).
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 14:32:48 -07:00
Sage Weil
243491ef7c
debian: do not strip cosd
2010-07-07 12:50:54 -07:00
Sage Weil
ed66dd578c
classhandler: print error when dlopen fails
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 12:50:53 -07:00
Sage Weil
cc5fcb99d5
ceph: drop version from ceph_fs.h, use autoconf VERSION macro instead
...
There's no reason to define this in the code anymore. Since the kernel
side doesn't use it it just confuses matters.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 08:24:13 -07:00
Fred Ar
6cca139f0a
shell script fixes
2010-07-07 07:47:57 -07:00
Sage Weil
9432a95889
mds: fix logger init on startup, rank symlink creation
...
Busted by 83d1ea6636
.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 07:38:55 -07:00
Sage Weil
f6e1fd53ce
debian: do not strip rados classes
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 07:36:50 -07:00
Sage Weil
a321ae432f
debian: add postinst, postrm for ceph package
...
This will keep debain from using the default, which thinks it needs to run
ldconfig. Which it doesn't.
2010-07-07 07:36:50 -07:00
Sage Weil
4fb67c3150
Makefile: cleanup
2010-07-07 07:36:50 -07:00
Sage Weil
0bf19e5a69
debian: put rbd classes in ceph, not librados1 package
...
The cluster classes are a server-side thing, not client lib thing.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 07:36:50 -07:00
Sage Weil
8d2393c0a5
osd: consolidate osd stats in _refresh_my_stats
...
Also keep local copy of osd_stat (send with pg stats update to monitor).
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 07:36:50 -07:00
Sage Weil
929f67215c
debian: include rados-classes
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-07 07:36:50 -07:00
Sage Weil
b0e6e4f173
cclass: $libdir/rados-classes
2010-07-07 07:36:50 -07:00
Sage Weil
83d1ea6636
logger: huge rewrite, cleanup
...
- name *.log
- name after name, not rank
- reopen on sighup
- remove pointer on shutdown
- clean up interface
- implement reset (truncate/reopen file)
- rotate logs
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-06 21:12:44 -07:00
Sage Weil
1ca446dd9a
auth: rename supported_auth -> auth_supported
...
It should be 'auth supported' for naming consistency.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-06 21:12:44 -07:00
Greg Farnum
74bd8d777d
client: handle_client_session now careful opening mds sessions while unmounting
2010-07-06 15:14:23 -07:00
Greg Farnum
0c345a9853
client: put MDSSession pointers in the msd_session map, rather than the sessions themselves.
...
This is a bit cleaner and clears the way to make it more closely mimic the kernel.
2010-07-06 15:14:23 -07:00
Sage Weil
c39ee59474
paxos: send summary if observer has fallen behind first_committed
...
This avoids a ceph crash like
mon/PGMap.h: In function 'void PGMap::apply_incremental(PGMap::Incremental&)':
mon/PGMap.h:77: FAILED assert(inc.version == version+1)
1: (PGMap::apply_incremental(PGMap::Incremental&)+0x50) [0x5a5f22]
2: (handle_notify(MMonObserveNotify*)+0x2c7) [0x567c53]
3: (Admin::ms_dispatch(Message*)+0x52) [0x5aa042]
4: (Messenger::ms_deliver_dispatch(Message*)+0x55) [0x5be389]
5: (SimpleMessenger::dispatch_entry()+0x50f) [0x5ad3fb]
6: (SimpleMessenger::DispatchThread::entry()+0x29) [0x597323]
7: (Thread::_entry_func(void*)+0x20) [0x5b91c8]
8: /lib/libpthread.so.0 [0x7f31185fd73a]
9: (clone()+0x6d) [0x7f311782769d]
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-06 15:00:19 -07:00
Sage Weil
5b097603e7
msgr: immediately drop messages with null dest
...
This avoids spawning a new pipe and then failing to connect to a bad
address.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-06 15:00:19 -07:00
Sage Weil
a40631fbda
mds: fix handle_dentry_unlink to handle remote unlink (no straydn)
...
The straydn is optional, and NULL if we're unlinking a remote dentry.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-06 14:48:37 -07:00
Sage Weil
0fbb8eebd0
mds: be less noisy about memory usage in log
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-06 14:34:04 -07:00
Sage Weil
08f740666b
ceph: --in-file, not --in-data
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-06 13:02:09 -07:00
Sage Weil
89a40b3ffb
osd: track pg_num by type in logger
...
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-06 12:47:19 -07:00
Sage Weil
013df04a70
librados: add pool set_snap_context
...
Set the snap context for a given pool handle.
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-06 12:27:32 -07:00
Greg Farnum
84bca03089
client: take the first inode as root, rather than whatever comes out
...
with ino=1.
Also, translate root inode properly in fuse_ll.
2010-07-06 12:02:33 -07:00
Sage Weil
4a80e5e080
ceph.spec: install /etc/logrotate.d/ceph
2010-07-06 11:53:11 -07:00