]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agoceph.spec.in: fix docdir paths
Sage Weil [Wed, 4 Aug 2010 16:56:05 +0000 (09:56 -0700)]
ceph.spec.in: fix docdir paths

_docdir is /usr/share/doc, not /usr/share/doc/ceph (as it is with debian).

14 years agoceph.spec.in: fix sample.ceph.conf chown
Sage Weil [Wed, 4 Aug 2010 16:32:48 +0000 (09:32 -0700)]
ceph.spec.in: fix sample.ceph.conf chown

Reported-by: Xiaoguang Liu <syslxg@gmail.com>
14 years agorados: fix usage
Takuya ASADA [Wed, 4 Aug 2010 16:30:03 +0000 (09:30 -0700)]
rados: fix usage

14 years agoosd: fix heartbeat to/from map updates
Sage Weil [Wed, 4 Aug 2010 16:51:12 +0000 (09:51 -0700)]
osd: fix heartbeat to/from map updates

- always make _inst match _to and _from (don't adjust in note_down_osd)
- only mark down old hb connection in update_heartbeat_peers
- if old peer isn't down, send them a map
- don't print dup new/old messages

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: fix replies to dup/already-committed requests
Sage Weil [Tue, 3 Aug 2010 18:07:58 +0000 (11:07 -0700)]
osd: fix replies to dup/already-committed requests

We can safely reply if oldv is _older_ than what's on disk.  Otherwise the
request ends up on the list and never gets removed again.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoassert: only include acconfig.h ifdef __CEPH__
Sage Weil [Tue, 3 Aug 2010 16:42:26 +0000 (09:42 -0700)]
assert: only include acconfig.h ifdef __CEPH__

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibrados.hpp fix
Takuya ASADA [Tue, 3 Aug 2010 12:21:10 +0000 (21:21 +0900)]
librados.hpp fix

[ 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. ]

Hi,

I just realized librados.hpp could compile only if "using namespace
std;" is declared before "#include <rados/librados.hpp>", because
"vector" used without std namespace, and I think it's wrong.
It can fix following patch.

syuu

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomon: fix signed/unsigned compile warning
Sage Weil [Thu, 29 Jul 2010 18:37:17 +0000 (11:37 -0700)]
mon: fix signed/unsigned compile warning

14 years agoosd: fix map sharing with old heartbeat peers
Sage Weil [Tue, 3 Aug 2010 16:36:55 +0000 (09:36 -0700)]
osd: fix map sharing with old heartbeat peers

The addr is in old_inst, since it's an old peer.  Fixes a crash like

osd/OSD.cc: In function 'void OSD::_share_map_outgoing(const entity_inst_t&)':
osd/OSD.cc:1791: FAILED assert(inst.name.is_osd())
 1: (OSD::update_heartbeat_peers()+0x1d3f) [0x4da66f]
 2: (OSD::activate_map(ObjectStore::Transaction&, std::list<Context*, std::allocator<Context*> >&)+0x8ee) [0x4db61e]
 3: (OSD::handle_osd_map(MOSDMap*)+0x233a) [0x4e506a]
 4: (OSD::_dispatch(Message*)+0x230) [0x4ef400]
 5: (OSD::ms_dispatch(Message*)+0x39) [0x4efe39]
 6: (SimpleMessenger::dispatch_entry()+0x749) [0x461fa9]
 7: (SimpleMessenger::DispatchThread::entry()+0x1c) [0x458f6c]
 8: (Thread::_entry_func(void*)+0xa) [0x46cf1a]
 9: (()+0x69ca) [0x7f978d6fb9ca]
 10: (clone()+0x6d) [0x7f978c91b6cd]

introduced by 9bfb8da9f925642bca46528a999124cd8b28ba2a.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: fix cap encoding skipping when snaprealm differs
Sage Weil [Mon, 2 Aug 2010 23:27:18 +0000 (16:27 -0700)]
mds: fix cap encoding skipping when snaprealm differs

We were avoiding adding a new cap, but _any_ issue is problematic, not just
adds (which we can't really be sure about anyway due to races with client
cap release).

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agodebian: move fuse-utils dep to ceph-fuse
Sage Weil [Mon, 2 Aug 2010 20:26:09 +0000 (13:26 -0700)]
debian: move fuse-utils dep to ceph-fuse

Reported-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocclass: fix .so loading file
Christian Brunner [Mon, 2 Aug 2010 19:58:30 +0000 (21:58 +0200)]
cclass: fix .so loading file

The only thing I've found, is that the *.so files are included in the -devel
rpm. This leads to the fact that the 'find' in cclass doesn't return any
files. I'd suggest the attached change in the script.

Christian

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: send latest osdmap when we stop sending heartbeats to peer
Sage Weil [Mon, 2 Aug 2010 20:11:22 +0000 (13:11 -0700)]
osd: send latest osdmap when we stop sending heartbeats to peer

Otherwise, they may still expect them, and may mark us down.

14 years agoosd: avoid most of handle_osd_map if there are no new maps in message
Sage Weil [Mon, 2 Aug 2010 19:57:36 +0000 (12:57 -0700)]
osd: avoid most of handle_osd_map if there are no new maps in message

We don't want to take the time to flush things to disk and shut down all
the worker threads if there is nothing new in the osdmap update (as is
usually the case).

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomove logrotate conf out of debian/ to fix ceph.spec
Sage Weil [Mon, 2 Aug 2010 16:15:34 +0000 (09:15 -0700)]
move logrotate conf out of debian/ to fix ceph.spec

15 years agocauthtool: correct man page sample of minimal fs client caps
Sage Weil [Fri, 30 Jul 2010 23:35:59 +0000 (16:35 -0700)]
cauthtool: correct man page sample of minimal fs client caps

15 years agomove mkcephfs to /sbin
Sage Weil [Fri, 30 Jul 2010 19:06:10 +0000 (12:06 -0700)]
move mkcephfs to /sbin

15 years agodebian: more cleanups
Sage Weil [Fri, 30 Jul 2010 19:05:55 +0000 (12:05 -0700)]
debian: more cleanups

https://code.launchpad.net/~clint-fewbar/review-new-branches/ceph-new-pkg/+merge/31303

15 years agoredirect stdout to /dev/null when reloading
Thomas Mueller [Fri, 30 Jul 2010 06:14:16 +0000 (08:14 +0200)]
redirect stdout to /dev/null when reloading

the reload command prints to stdout. example:

# service ceph reload
=== mon.0 ===
Reloading Ceph mon0 on hoe001...kill -1 22197...done
=== osd.0 ===
Reloading Ceph osd0 on hoe001...kill -1 22263...done

"properly" configured systems will send the output by mail to
the administrator - this is not desired in case of successfull
reloading.

Signed-off-by: Thomas Mueller <thomas@chaschperli.ch>
Signed-off-by: Sage Weil <sage@newdream.net>
15 years agov0.21 v0.21
Sage Weil [Tue, 27 Jul 2010 19:43:16 +0000 (12:43 -0700)]
v0.21

15 years agocclass.in: fix libdir definition
Yehuda Sadeh [Wed, 28 Jul 2010 20:59:00 +0000 (13:59 -0700)]
cclass.in: fix libdir definition

15 years agodebian/ceph.logrotate: enhance postrotate for "service" util
Thomas Mueller [Thu, 29 Jul 2010 15:58:17 +0000 (15:58 +0000)]
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>
15 years agomon: trim old logm states
Sage Weil [Thu, 29 Jul 2010 16:16:57 +0000 (09:16 -0700)]
mon: trim old logm states

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agodebian: ceph-cfuse: move ceph from Recommends to Suggests
Thomas Mueller [Thu, 29 Jul 2010 13:02:07 +0000 (15:02 +0200)]
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>
15 years agoceph.spec.in: create /var/log/ceph/stat dir
Thomas Mueller [Thu, 29 Jul 2010 15:52:05 +0000 (15:52 +0000)]
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>
15 years agoceph.spec.in: rbdtool -> rbd
Sage Weil [Thu, 29 Jul 2010 03:39:52 +0000 (20:39 -0700)]
ceph.spec.in: rbdtool -> rbd

Reported-by: markn1
15 years agodebian: drop gcc, g++ build deps
Sage Weil [Wed, 28 Jul 2010 23:28:27 +0000 (16:28 -0700)]
debian: drop gcc, g++ build deps

15 years agorelease: drop wildcard
Sage Weil [Wed, 28 Jul 2010 23:06:42 +0000 (16:06 -0700)]
release: drop wildcard

15 years agodebian: remove gcc/g++ build-depends
Sage Weil [Wed, 28 Jul 2010 23:01:49 +0000 (16:01 -0700)]
debian: remove gcc/g++ build-depends

(as per Clint Byrum)

15 years agodebian: add trailing newline
Sage Weil [Wed, 28 Jul 2010 22:58:43 +0000 (15:58 -0700)]
debian: add trailing newline

15 years agodebian: fix debhelper depend version
Sage Weil [Wed, 28 Jul 2010 22:51:24 +0000 (15:51 -0700)]
debian: fix debhelper depend version

dh_lintian was introduced in 6.0.7

15 years agodebian: update to latest standards version
Sage Weil [Wed, 28 Jul 2010 22:48:49 +0000 (15:48 -0700)]
debian: update to latest standards version

15 years agodebian: fix weak-library-dev-dependency
Sage Weil [Wed, 28 Jul 2010 22:47:27 +0000 (15:47 -0700)]
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

15 years agocheck_version: don't globber .git_version if we're not in a git repo
Sage Weil [Wed, 28 Jul 2010 22:41:31 +0000 (15:41 -0700)]
check_version: don't globber .git_version if we're not in a git repo

namely, when you extract the release tarball!

15 years agofilestore: add option to disable use of btrfs clone range ioctl
Sage Weil [Wed, 28 Jul 2010 22:00:54 +0000 (15:00 -0700)]
filestore: add option to disable use of btrfs clone range ioctl

15 years agofilestore: fix fallback clone_range implementation on short files
Sage Weil [Wed, 28 Jul 2010 21:57:11 +0000 (14:57 -0700)]
filestore: fix fallback clone_range implementation on short files

If we read less data from the source, don't loop forever... return -ERANGE
instead.

15 years agorelease: put .git_version in release tarball
Sage Weil [Wed, 28 Jul 2010 20:57:43 +0000 (13:57 -0700)]
release: put .git_version in release tarball

15 years agopgmon: Remove creating_pgs which are from deleted pools.
Greg Farnum [Wed, 28 Jul 2010 20:37:02 +0000 (13:37 -0700)]
pgmon: Remove creating_pgs which are from deleted pools.

15 years agoosd: drop broken (and useless) PG::merge_log assert
Sage Weil [Wed, 28 Jul 2010 19:47:21 +0000 (12:47 -0700)]
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.

15 years agomds: handle this log replay error better:
Greg Farnum [Wed, 28 Jul 2010 18:54:40 +0000 (11:54 -0700)]
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.

15 years agorgw: set default log level to 20
Yehuda Sadeh [Wed, 28 Jul 2010 18:40:59 +0000 (11:40 -0700)]
rgw: set default log level to 20

15 years agolibrados: quiet down some log messages
Yehuda Sadeh [Wed, 28 Jul 2010 18:35:14 +0000 (11:35 -0700)]
librados: quiet down some log messages

15 years agorgw: Support loglevel settings
Wido den Hollander [Wed, 28 Jul 2010 16:48:33 +0000 (18:48 +0200)]
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)

15 years agoqa: consistent snaptest-%d.sh naming
Sage Weil [Tue, 27 Jul 2010 20:22:36 +0000 (13:22 -0700)]
qa: consistent snaptest-%d.sh naming

15 years agomds: fix uninitialized LeaseStat for null lease
Sage Weil [Tue, 27 Jul 2010 19:53:20 +0000 (12:53 -0700)]
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

15 years agoosd: log when we get marked down but aren't
Sage Weil [Tue, 27 Jul 2010 19:18:56 +0000 (12:18 -0700)]
osd: log when we get marked down but aren't

15 years agodebug: no name symlink when explicit --log-file
Sage Weil [Tue, 27 Jul 2010 18:20:02 +0000 (11:20 -0700)]
debug: no name symlink when explicit --log-file

15 years agoclient: some whitespace cleanup
Sage Weil [Tue, 27 Jul 2010 17:05:27 +0000 (10:05 -0700)]
client: some whitespace cleanup

15 years agoqa: add localized version of Thomas Mueller's snaptest-2.sh
Greg Farnum [Tue, 27 Jul 2010 19:13:04 +0000 (12:13 -0700)]
qa: add localized version of Thomas Mueller's snaptest-2.sh

http://github.com/vinzent/ceph-testsuite/blob/master/tests/snaptest-2

15 years agorgw: exit after 5 seconds from SIGUSR1 anyway
Yehuda Sadeh [Tue, 27 Jul 2010 18:18:06 +0000 (11:18 -0700)]
rgw: exit after 5 seconds from SIGUSR1 anyway

15 years agorgw: fix that we return data when partial content is requested
Wido den Hollander [Tue, 27 Jul 2010 07:46:37 +0000 (09:46 +0200)]
rgw: fix that we return data when partial content is requested

15 years agorgw: handle sigusr1, get notified for shutdown requests
Yehuda Sadeh [Mon, 26 Jul 2010 23:32:26 +0000 (16:32 -0700)]
rgw: handle sigusr1, get notified for shutdown requests

15 years agorgw: fix returned error code in If-None-Match
Yehuda Sadeh [Mon, 26 Jul 2010 22:34:31 +0000 (15:34 -0700)]
rgw: fix returned error code in If-None-Match

15 years agorgw: Make sure all times are converted to GMT, so we can compare them correctly
Wido den Hollander [Mon, 26 Jul 2010 20:58:26 +0000 (22:58 +0200)]
rgw: Make sure all times are converted to GMT, so we can compare them correctly

15 years agorgw: make sure error structure is initialized
Yehuda Sadeh [Mon, 26 Jul 2010 22:22:41 +0000 (15:22 -0700)]
rgw: make sure error structure is initialized

15 years agorgw: fix date/time format string
Wido den Hollander [Fri, 23 Jul 2010 22:00:13 +0000 (15:00 -0700)]
rgw: fix date/time format string

15 years agorgw: fix return code for prepare_get_obj() on the fs storage
Yehuda Sadeh [Fri, 23 Jul 2010 21:07:02 +0000 (14:07 -0700)]
rgw: fix return code for prepare_get_obj() on the fs storage

15 years agorgw: fix error status code
Yehuda Sadeh [Fri, 23 Jul 2010 21:01:47 +0000 (14:01 -0700)]
rgw: fix error status code

15 years agoWe should sent back the Last-Modified header in GMT as specified by RFC2616
Wido den Hollander [Fri, 23 Jul 2010 14:40:48 +0000 (16:40 +0200)]
We should sent back the Last-Modified header in GMT as specified by RFC2616

15 years agoWe shoud always return the Accept-Ranges header, with a GET or HEAD request, even...
Wido den Hollander [Fri, 23 Jul 2010 13:39:49 +0000 (15:39 +0200)]
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.

15 years agorgw: support partial content (206) response
Yehuda Sadeh [Thu, 22 Jul 2010 23:48:38 +0000 (16:48 -0700)]
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.

15 years agomds: Use get_oldest_snap() (not first) in handle_client_lssnap.
Greg Farnum [Mon, 26 Jul 2010 23:43:16 +0000 (16:43 -0700)]
mds: Use get_oldest_snap() (not first) in handle_client_lssnap.

15 years agorgw: remove unused label 'done' (compiler warning)
Greg Farnum [Fri, 23 Jul 2010 23:29:50 +0000 (16:29 -0700)]
rgw: remove unused label 'done' (compiler warning)

15 years agomsgr: fix direct send to loopback connection
Sage Weil [Mon, 26 Jul 2010 22:56:33 +0000 (15:56 -0700)]
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>
15 years agomon: revamp subscribe protocol [backward compatible protocol change]
Sage Weil [Mon, 26 Jul 2010 22:03:11 +0000 (15:03 -0700)]
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>
15 years agomds: restore CInode::get_oldest_snap()
Sage Weil [Mon, 26 Jul 2010 18:44:59 +0000 (11:44 -0700)]
mds: restore CInode::get_oldest_snap()

It's either 'first', for the first for the oldest old_inode.

15 years agomds: defer anchortable updates before CLIENTREPLAY, not ACTIVE
Sage Weil [Mon, 26 Jul 2010 17:27:50 +0000 (10:27 -0700)]
mds: defer anchortable updates before CLIENTREPLAY, not ACTIVE

Otherwise we hang trying to replay an op that interacts with the
anchortable.

15 years agoMerge remote branch 'origin/large_objects' into unstable
Sage Weil [Mon, 26 Jul 2010 17:24:43 +0000 (10:24 -0700)]
Merge remote branch 'origin/large_objects' into unstable

15 years agomds: get rid of old lease mask cruft
Sage Weil [Sat, 24 Jul 2010 04:02:47 +0000 (21:02 -0700)]
mds: get rid of old lease mask cruft

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomds: fix lease revocation mask vs type
Sage Weil [Sat, 24 Jul 2010 03:51:58 +0000 (20:51 -0700)]
mds: fix lease revocation mask vs type

15 years agoosd: on dups, reply if committed, or wait until ondisk
Sage Weil [Sat, 24 Jul 2010 16:50:31 +0000 (09:50 -0700)]
osd: on dups, reply if committed, or wait until ondisk

15 years agoosd: helper should reply with ACK on error, op flags on success
Sage Weil [Sat, 24 Jul 2010 16:49:52 +0000 (09:49 -0700)]
osd: helper should reply with ACK on error, op flags on success

15 years agoosd: map indexed caller_ops back to relevant entry
Sage Weil [Fri, 23 Jul 2010 23:23:15 +0000 (16:23 -0700)]
osd: map indexed caller_ops back to relevant entry

This let's us look up a version from the osd_reqid_t.

15 years agoosd: maintain pg last_update_ondisk
Sage Weil [Fri, 23 Jul 2010 23:19:13 +0000 (16:19 -0700)]
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.

15 years agoinitscripts: fix type.id check in ceph.conf
Sage Weil [Fri, 23 Jul 2010 23:05:20 +0000 (16:05 -0700)]
initscripts: fix type.id check in ceph.conf

15 years agoMerge branch 'unstable' into large_objects
Sage Weil [Fri, 23 Jul 2010 22:53:47 +0000 (15:53 -0700)]
Merge branch 'unstable' into large_objects

15 years agoosd: make assemble_backlog more tolerant of races
Sage Weil [Fri, 23 Jul 2010 19:57:52 +0000 (12:57 -0700)]
osd: make assemble_backlog more tolerant of races

The assemble_backlog is merging data generated while racing with online
updates.  It needs to tolerate races with things like delete.  For example,
- generate_backlog identifies object A
- client deletes+logs A
- assemble_backlog sees A deletion entry.
We may want to merge the backlog entry in this case.

15 years agoosd: skip degraded objects we're already recoverying in recover_replicas
Sage Weil [Thu, 22 Jul 2010 23:24:54 +0000 (16:24 -0700)]
osd: skip degraded objects we're already recoverying in recover_replicas

Otherwise we'll start_recovery_op, dup the push, etc.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoosd: create missing temp collection/dir
Sage Weil [Thu, 22 Jul 2010 23:03:53 +0000 (16:03 -0700)]
osd: create missing temp collection/dir

15 years agoosd: populate in-memory snapset context with just-pulled SnapSet
Sage Weil [Thu, 22 Jul 2010 21:58:43 +0000 (14:58 -0700)]
osd: populate in-memory snapset context with just-pulled SnapSet

This can come from the SNAPDIR or NOSNAP (head) object.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agoosd: clean up size learning during pull
Sage Weil [Thu, 22 Jul 2010 21:44:24 +0000 (14:44 -0700)]
osd: clean up size learning during pull

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomds: drop remove_client_lease return value
Sage Weil [Fri, 23 Jul 2010 22:41:46 +0000 (15:41 -0700)]
mds: drop remove_client_lease return value

Unused

15 years agomds: fix dentry lease mask/lockid disconnect
Sage Weil [Fri, 23 Jul 2010 22:39:53 +0000 (15:39 -0700)]
mds: fix dentry lease mask/lockid disconnect

There is only one lock here, no need to be tricky with the mask.

15 years agomds: no return value for issue_client_lease()
Sage Weil [Fri, 23 Jul 2010 22:15:40 +0000 (15:15 -0700)]
mds: no return value for issue_client_lease()

Return value is unused.  Also drop obsolete inode lease method declaration.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomds: fix lease issue mask
Sage Weil [Fri, 23 Jul 2010 22:14:43 +0000 (15:14 -0700)]
mds: fix lease issue mask

We define 1 to be the only lease "mask" we currently support (for dentry)
and divorce ourselves from the CEPH_LOCK namespace for this purpose.  We
did this in c8d7c970e864e9f130b7c44b29c322771067026e, but screwed up the
issue function.  Fix the caller, and pay attention to @mask here.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agomds: create leases with non-zero seq
Sage Weil [Fri, 23 Jul 2010 21:54:44 +0000 (14:54 -0700)]
mds: create leases with non-zero seq

We want to avoid the situation:

- mds issues lease, seq 0
- mds times out lease, seq 0
- client sends seq 0 release
- mds issues new lease, seq 0 (again.. poor choice of seq#)
- mds processes client lease seq 0 release (bad)

15 years agoosd: log/debug hb set changes
Sage Weil [Fri, 23 Jul 2010 21:41:07 +0000 (14:41 -0700)]
osd: log/debug hb set changes

15 years agoosdmap: recalc num_osds after applying incremental
Sage Weil [Fri, 23 Jul 2010 21:40:59 +0000 (14:40 -0700)]
osdmap: recalc num_osds after applying incremental

15 years agoosd: clean_up_local should ignore snapped, snapdir objects
Sage Weil [Fri, 23 Jul 2010 19:59:11 +0000 (12:59 -0700)]
osd: clean_up_local should ignore snapped, snapdir objects

The snap_trimmer is responsible for removing any/all snap objects.

snapdir only exists if snapped objects exist and head doesn't, so it will
get cleaned up when the snapped object(s) do.

15 years agofilestore: make stat print correct errno
Sage Weil [Fri, 23 Jul 2010 18:08:48 +0000 (11:08 -0700)]
filestore: make stat print correct errno

15 years agoosd: simplify heartbeat checks
Sage Weil [Thu, 22 Jul 2010 22:55:23 +0000 (15:55 -0700)]
osd: simplify heartbeat checks

- Only check heartbeats when we have heartbeat_lock and osdmap rdlocked,
and thus _know_ heartbeat info and map are in sync.  Drop unnecessary
consistency checks.
- Check heartbeats in tick(), since the heartbeat thread may miss it if
it's unlucky.

15 years agoosd: red is good enough; don't blink
Sage Weil [Thu, 22 Jul 2010 21:36:00 +0000 (14:36 -0700)]
osd: red is good enough; don't blink

15 years agomds: only try and lssnaps on a dir for as long as it's been around
Greg Farnum [Fri, 23 Jul 2010 20:42:07 +0000 (13:42 -0700)]
mds: only try and lssnaps on a dir for as long as it's been around

15 years agoqa: runoncfuse shouldn't start cfuse in background any more.
Greg Farnum [Tue, 20 Jul 2010 22:53:31 +0000 (15:53 -0700)]
qa: runoncfuse shouldn't start cfuse in background any more.

15 years agomds: fix snap lookups in CInode encoding
Greg Farnum [Tue, 20 Jul 2010 22:52:43 +0000 (15:52 -0700)]
mds: fix snap lookups in CInode encoding

15 years agomon: don't crash on 'osd pool set' command
Sage Weil [Fri, 23 Jul 2010 20:21:36 +0000 (13:21 -0700)]
mon: don't crash on 'osd pool set' command

15 years agoosd: zero ondisklog pointers when starting pg deletion
Sage Weil [Fri, 23 Jul 2010 18:45:26 +0000 (11:45 -0700)]
osd: zero ondisklog pointers when starting pg deletion

This fixes a problem where the osd stops part way through pg cleanup.  It
seens the old ondisklog bounds, but then fails to load the log, and crashes
on startup.

We just need to zero the ondisklog bounds when we zero the log.

Signed-off-by: Sage Weil <sage@newdream.net>
15 years agolibrados: remove use of snapid_t
Yehuda Sadeh [Fri, 23 Jul 2010 18:43:25 +0000 (11:43 -0700)]
librados: remove use of snapid_t

15 years agoobjecter: default debug level 0 (no 'laggy' messages)
Sage Weil [Fri, 23 Jul 2010 16:42:51 +0000 (09:42 -0700)]
objecter: default debug level 0 (no 'laggy' messages)

15 years agoinitscripts: use $type.$id, not $name, when possible
Sage Weil [Thu, 22 Jul 2010 21:27:08 +0000 (14:27 -0700)]
initscripts: use $type.$id, not $name, when possible