Commit Graph

10806 Commits

Author SHA1 Message Date
Thomas Mueller
183984e110 ceph.spec.in: create /var/log/ceph/stat dir
the logrotate config expects a var/log/ceph/stat dir - create it.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-29 09:14:11 -07:00
Sage Weil
ce07f280c7 ceph.spec.in: rbdtool -> rbd
Reported-by: markn1
2010-07-28 21:04:36 -07:00
Sage Weil
b0616f8516 debian: drop gcc, g++ build deps 2010-07-28 16:28:37 -07:00
Sage Weil
9c6ae54c30 release: drop wildcard 2010-07-28 16:25:46 -07:00
Sage Weil
487f0e8550 debian: remove gcc/g++ build-depends
(as per Clint Byrum)
2010-07-28 16:25:46 -07:00
Sage Weil
58181fe584 debian: add trailing newline 2010-07-28 16:25:46 -07:00
Sage Weil
39a3db6be8 debian: fix debhelper depend version
dh_lintian was introduced in 6.0.7
2010-07-28 16:25:46 -07:00
Sage Weil
07d880ea57 debian: update to latest standards version 2010-07-28 16:25:46 -07:00
Sage Weil
47688a433d debian: fix weak-library-dev-dependency
E: ceph source: weak-library-dev-dependency librados1-dev on librados1
E: ceph source: weak-library-dev-dependency libceph1-dev on libceph1
2010-07-28 16:25:46 -07:00
Sage Weil
3ed08a330a check_version: don't globber .git_version if we're not in a git repo
namely, when you extract the release tarball!
2010-07-28 15:41:31 -07:00
Sage Weil
8b0bf8e1c1 filestore: add option to disable use of btrfs clone range ioctl 2010-07-28 15:00:54 -07:00
Sage Weil
eb1f58743a filestore: fix fallback clone_range implementation on short files
If we read less data from the source, don't loop forever... return -ERANGE
instead.
2010-07-28 14:57:11 -07:00
Sage Weil
43d28dbc7b release: put .git_version in release tarball 2010-07-28 13:57:43 -07:00
Greg Farnum
9b8e2b4f76 pgmon: Remove creating_pgs which are from deleted pools. 2010-07-28 13:37:14 -07:00
Sage Weil
425e052e4b osd: drop broken (and useless) PG::merge_log assert
The assert should be olog.backlog, not log.backlog.  But it's the same
condition as the if guard that's 3 lines up, making it pretty useless.
Just drop it.
2010-07-28 12:47:21 -07:00
Greg Farnum
05a18e20b7 mds: handle this log replay error better:
Log it to the central log so it gets noticed, and
delete the "wrong inode" instead of just unlinking it, to prevent later crashiness.

Should at least band-aid over #312.
2010-07-28 11:55:12 -07:00
Yehuda Sadeh
b01cc38fe4 rgw: set default log level to 20 2010-07-28 11:41:36 -07:00
Yehuda Sadeh
593937d600 librados: quiet down some log messages 2010-07-28 11:41:36 -07:00
Wido den Hollander
801150a723 rgw: Support loglevel settings
The gateway now supports changing the verbosity of the logging, this can be achieved by changing the
RGW_LOG_LEVEL envirioment parameter.

For Apache running systems, this can be done with mod_env: SetEnv RGW_LOG_LEVEL 20

This will change the loglevel to the highest level and produce a lot of usefull output for debugging purposes.

For now, all the messages will go to webservers logfile (For Apache: error_log)
2010-07-28 11:41:36 -07:00
Sage Weil
6bd40ac96e qa: consistent snaptest-%d.sh naming 2010-07-27 13:22:36 -07:00
Sage Weil
9127cd9d5e mds: fix uninitialized LeaseStat for null lease
./include/encoding.h: In member function void
Locker::issue_client_lease(CDentry*, client_t, ceph::bufferlist&, utime_t,
Session*):
 ./include/encoding.h:80: warning: e.LeaseStat::duration_ms may be used
uninitialized in this function
2010-07-27 12:53:20 -07:00
Sage Weil
5c714bfb21 osd: log when we get marked down but aren't 2010-07-27 12:49:20 -07:00
Sage Weil
7fbe16559b debug: no name symlink when explicit --log-file 2010-07-27 12:49:20 -07:00
Sage Weil
3de9c8d297 client: some whitespace cleanup 2010-07-27 12:49:20 -07:00
Greg Farnum
8195899a15 qa: add localized version of Thomas Mueller's snaptest-2.sh
http://github.com/vinzent/ceph-testsuite/blob/master/tests/snaptest-2
2010-07-27 12:13:47 -07:00
Yehuda Sadeh
2d35d24784 rgw: exit after 5 seconds from SIGUSR1 anyway 2010-07-27 11:18:06 -07:00
Wido den Hollander
a48b15040f rgw: fix that we return data when partial content is requested 2010-07-27 10:28:47 -07:00
Yehuda Sadeh
50a89fcb52 rgw: handle sigusr1, get notified for shutdown requests 2010-07-27 10:28:47 -07:00
Yehuda Sadeh
3d1f3072eb rgw: fix returned error code in If-None-Match 2010-07-27 10:28:47 -07:00
Wido den Hollander
58cf95bbc6 rgw: Make sure all times are converted to GMT, so we can compare them correctly 2010-07-27 10:28:47 -07:00
Yehuda Sadeh
a2ba0d35ed rgw: make sure error structure is initialized 2010-07-27 10:28:47 -07:00
Wido den Hollander
b628ba19a2 rgw: fix date/time format string 2010-07-27 10:28:46 -07:00
Yehuda Sadeh
d9ff7e09fc rgw: fix return code for prepare_get_obj() on the fs storage 2010-07-27 10:28:46 -07:00
Yehuda Sadeh
577095b35b rgw: fix error status code 2010-07-27 10:28:46 -07:00
Wido den Hollander
017588edb8 We should sent back the Last-Modified header in GMT as specified by RFC2616 2010-07-27 10:28:46 -07:00
Wido den Hollander
234b6916a4 We shoud always return the Accept-Ranges header, with a GET or HEAD request, even when the client is not requesting for partial content.
This is to let the client know we accept requests for partial content.

On HEAD requests we should also return the Content-Length header.

And we should also return the Last-Modified header with GET and HEAD requests, this way browsers and proxy's can cache content.
2010-07-27 10:28:46 -07:00
Yehuda Sadeh
0acfd014ae rgw: support partial content (206) response
Couldn't get this one to work yet, as apache (or probably one of
the apache filters) rewrites the content-length value and sets
it to zero.
2010-07-27 10:28:46 -07:00
Greg Farnum
e2b1a4ee11 mds: Use get_oldest_snap() (not first) in handle_client_lssnap. 2010-07-26 16:43:16 -07:00
Greg Farnum
49c21837fd rgw: remove unused label 'done' (compiler warning) 2010-07-26 16:13:11 -07:00
Sage Weil
0ae06c81de msgr: fix direct send to loopback connection
If we send directly to the local/loopback connection, we need to
queue it for local delivery, not go through the usual send paths.

This fixes lost replies to messages sent to self (e.g., reply to
local anchortable).

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-26 15:58:54 -07:00
Sage Weil
997d67e5b1 mon: revamp subscribe protocol [backward compatible protocol change]
Before, we would provide "have" and a bool "onetime" flag.  The struct was
also screwed up with an extra __le64.  Then have=0 was a special case
that meant "give me the latest".

The problem is this is ambiguous between the usual "give me everything
since X" and "give me your latest", because you might actually have 0 and
want 1..current.

Changes protocol and cleans up the struct:

 - now "start" and "flags", where only 1 flag (ONETIME) is defined
 - clean up sub_want_* methods throughout
 - fix all sub_want callers to ask for _start_ (not have) epoch, or 0 for
   any/latest
 - add a feature bit; talks old clients w/o that bit

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-26 15:03:11 -07:00
Sage Weil
fa48a1a8d9 mds: restore CInode::get_oldest_snap()
It's either 'first', for the first for the oldest old_inode.
2010-07-26 11:44:59 -07:00
Sage Weil
bc9a795572 mds: defer anchortable updates before CLIENTREPLAY, not ACTIVE
Otherwise we hang trying to replay an op that interacts with the
anchortable.
2010-07-26 10:27:50 -07:00
Sage Weil
ad6f92c0f9 Merge remote branch 'origin/large_objects' into unstable 2010-07-26 10:24:43 -07:00
Sage Weil
0775c30b15 mds: get rid of old lease mask cruft
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-26 10:24:24 -07:00
Sage Weil
ac9305f89e mds: fix lease revocation mask vs type 2010-07-26 10:24:20 -07:00
Sage Weil
9932e4b407 osd: on dups, reply if committed, or wait until ondisk 2010-07-24 09:50:31 -07:00
Sage Weil
47fd7fe2f2 osd: helper should reply with ACK on error, op flags on success 2010-07-24 09:49:52 -07:00
Sage Weil
fb359c8e93 osd: map indexed caller_ops back to relevant entry
This let's us look up a version from the osd_reqid_t.
2010-07-24 09:37:42 -07:00
Sage Weil
b033259015 osd: maintain pg last_update_ondisk
Only defined when is_active().  Only printed when it lags (i.e. we are
in the process of replicating and/or writing an update.
2010-07-24 09:37:42 -07:00