Commit Graph

10810 Commits

Author SHA1 Message Date
Yehuda Sadeh ea2ce9d4b5 cclass.in: fix libdir definition 2010-07-29 09:37:16 -07:00
Thomas Mueller fd4029cb0a debian/ceph.logrotate: enhance postrotate for "service" util
[ The following text is in the "UTF-8" character set. ]
    [ Your display is set for the "iso-8859-1" character set.  ]
    [ Some characters may be displayed incorrectly. ]

invoke-rc.d is debian specific.

run "service ceph reload" if invoke-rc.d fails.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-29 09:29:31 -07:00
Sage Weil 6db8975607 mon: trim old logm states
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-29 09:17:03 -07:00
Thomas Mueller e1a9768545 debian: ceph-cfuse: move ceph from Recommends to Suggests
on a standalone fuse client ceph serverside is not needed. if it's
"Recommended" the default behaviour is to install it too. Move it to "Suggests"
that it's not installed by default if one installs just ceph-fuse.

from debian policy:
Suggests:
This is used to declare that one package may be more useful with one or more
others. Using this field tells the packaging system and the user that the listed
packages are related to this one and can perhaps enhance its usefulness, but
that installing this one without them is perfectly reasonable.

- Thomas

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-29 09:14:11 -07:00
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