]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
15 years agomds: drop useless double from DecayCounter
Sage Weil [Thu, 4 Mar 2010 23:48:41 +0000 (15:48 -0800)]
mds: drop useless double from DecayCounter

No need to store k AND halflife.

15 years agomon: Hack -- set allow_all in caps if client name is admin
Greg Farnum [Mon, 8 Mar 2010 15:47:47 +0000 (07:47 -0800)]
mon: Hack -- set allow_all in caps if client name is admin

15 years agoobjecter: librados: add optional auid param to
Greg Farnum [Mon, 8 Mar 2010 15:41:35 +0000 (07:41 -0800)]
objecter: librados: add optional auid param to
create_pool functions

15 years agoobjecter: add auid to PoolOp, fill it in during pool_op_submit
Greg Farnum [Mon, 8 Mar 2010 15:40:54 +0000 (07:40 -0800)]
objecter: add auid to PoolOp, fill it in during pool_op_submit

15 years agomon: let prepare_new_pool assign an auid.
Greg Farnum [Mon, 8 Mar 2010 14:44:51 +0000 (06:44 -0800)]
mon: let prepare_new_pool assign an auid.
Add new version that takes an MPoolOp and checks permissions
first.

15 years agomon: add check_privileges function to OSDMon.
Greg Farnum [Mon, 8 Mar 2010 14:43:24 +0000 (06:43 -0800)]
mon: add check_privileges function to OSDMon.

15 years agomsg: Add an auid field to MPoolOp; additional constructor to match
Greg Farnum [Mon, 8 Mar 2010 14:42:00 +0000 (06:42 -0800)]
msg: Add an auid field to MPoolOp; additional constructor to match

15 years agoauth: move CEPH_AUTH_UID_DEFAULT into ceph_fs.h
Greg Farnum [Sat, 6 Mar 2010 00:47:26 +0000 (16:47 -0800)]
auth: move CEPH_AUTH_UID_DEFAULT into ceph_fs.h

15 years agocauthtool: set auid in data member format instead of as (ignored) text key
Greg Farnum [Fri, 5 Mar 2010 21:48:04 +0000 (13:48 -0800)]
cauthtool: set auid in data member format instead of as (ignored) text key

15 years agomon: store auid in MonCaps
Greg Farnum [Fri, 5 Mar 2010 23:35:28 +0000 (15:35 -0800)]
mon: store auid in MonCaps

15 years agoosd: store auid in OSDCaps
Greg Farnum [Fri, 5 Mar 2010 20:31:09 +0000 (12:31 -0800)]
osd: store auid in OSDCaps

15 years agomon: fix bad return test!
Greg Farnum [Fri, 5 Mar 2010 01:16:48 +0000 (17:16 -0800)]
mon: fix bad return test!

cephx_build_service_ticket_blob returns a bool, so it's not ever
going to return <0 -- or if it somehow does that'll be true (good, not false!

15 years agoauth: add set_uid() to KeyRing, print out auid in print function
Greg Farnum [Fri, 5 Mar 2010 20:36:56 +0000 (12:36 -0800)]
auth: add set_uid() to KeyRing, print out auid in print function

15 years agoauth: Add an auid parameter to verify_authorizer and handle_request
Greg Farnum [Thu, 4 Mar 2010 23:52:31 +0000 (15:52 -0800)]
auth: Add an auid parameter to verify_authorizer and handle_request

It defaults to null, in which case it's not assigned to.

auth: add optional auid param to handle_request

15 years agocephx: Piece-wise initialization of structs is BAD!
Greg Farnum [Fri, 5 Mar 2010 19:13:59 +0000 (11:13 -0800)]
cephx: Piece-wise initialization of structs is BAD!
If you add, say, a field "auid" to the struct and it's being
piece-wise initialized then you need to change every copy to include it.
Or you assume it's just copied wholesale and then spend many hours trying
to find where it isn't. Like in this one.

15 years agoauth: rename auth_uid -> auid
Greg Farnum [Fri, 5 Mar 2010 20:48:47 +0000 (12:48 -0800)]
auth: rename auth_uid -> auid

15 years agoauth: re-add auid to EntityAuth and AuthTicket.
Greg Farnum [Thu, 4 Mar 2010 22:35:53 +0000 (14:35 -0800)]
auth: re-add auid to EntityAuth and AuthTicket.

15 years agomon: add auid field to MonCaps. Also make it a struct --
Greg Farnum [Fri, 5 Mar 2010 23:24:42 +0000 (15:24 -0800)]
mon: add auid field to MonCaps. Also make it a struct --
we want those data members accessible!"

15 years agoAfter discussing with Sage, we do want auid to be a part
Greg Farnum [Fri, 5 Mar 2010 20:37:56 +0000 (12:37 -0800)]
After discussing with Sage, we do want auid to be a part
of AuthTicket, et al. Let's do it that way.
Revert "authtool: give generated key specific uid if one is provided on the cli."

This reverts commit 3a080fa109d1c9106ac6891c97ee5e816b4ea51d.

Revert "cephx: Add auth_uid (if present) to Info for all service types"

This reverts commit 1cb95b419421e99efbebf77950b0e582907060b4.

Revert "osd: mon: caps store auth_uid as an int for fast checking"

This reverts commit 08e21ca094859143955f1c2acbef0a1451bcab90.

15 years agomds: shut up about request latency
Sage Weil [Thu, 4 Mar 2010 21:55:48 +0000 (13:55 -0800)]
mds: shut up about request latency

15 years agomds: return lease on null dentries (ENOENT lookups)
Sage Weil [Thu, 4 Mar 2010 21:34:54 +0000 (13:34 -0800)]
mds: return lease on null dentries (ENOENT lookups)

This provides the client with a lease on a dentry's nonexistence,
allowing it to avoid repetitive ENOENT lookups.

15 years agomds: behave when passed NULL *need_issue
Sage Weil [Thu, 4 Mar 2010 18:30:08 +0000 (10:30 -0800)]
mds: behave when passed NULL *need_issue

Catch two cases: *need_issue = true at top of func
(if (first ...)), and when eval() call resets need_issue again.

15 years agocrushtool: fail on parse error
Sage Weil [Thu, 4 Mar 2010 15:41:20 +0000 (07:41 -0800)]
crushtool: fail on parse error

15 years agomds: accept stray reconnects
Sage Weil [Thu, 4 Mar 2010 00:49:58 +0000 (16:49 -0800)]
mds: accept stray reconnects

Hmm.  Ultimately this is the direction we want to go, so that,
for example, a client that is forcefully disconnected can at
least attempt a reconnect (even if all its caps go ESTALE).
There are undoubtably some issues that need to be dealt with to
keep the mds from choking on weird client data, but those things
need to be fixed regardless.

15 years agofilestore: fix --mkjournal option
Sage Weil [Wed, 3 Mar 2010 22:14:42 +0000 (14:14 -0800)]
filestore: fix --mkjournal option

Read fsid off disk before creating journal.

15 years agofilestore: avoid sync_file_range(2) if not present
Sage Weil [Thu, 4 Mar 2010 17:46:21 +0000 (09:46 -0800)]
filestore: avoid sync_file_range(2) if not present

This disables the flushing 'optimization'.

15 years agofilejournal: avoid sync_file_range(2) if not present
Sage Weil [Thu, 4 Mar 2010 17:45:56 +0000 (09:45 -0800)]
filejournal: avoid sync_file_range(2) if not present

15 years agoautoconf: detect sync_file_range(2)
Sage Weil [Thu, 4 Mar 2010 17:45:44 +0000 (09:45 -0800)]
autoconf: detect sync_file_range(2)

15 years agocrushtool: allow multiple -v's to increase verbosity
Sage Weil [Thu, 4 Mar 2010 17:29:38 +0000 (09:29 -0800)]
crushtool: allow multiple -v's to increase verbosity

15 years agocrushtool: fix parsing with new boost library (compress whitespace)
Sage Weil [Thu, 4 Mar 2010 17:29:23 +0000 (09:29 -0800)]
crushtool: fix parsing with new boost library (compress whitespace)

The latest spirit breaks parsing.  It seems to choke on
whitespace (e.g., fail to parse if there is any trailing
whitespace).  I couldn't find any obvious problems with how
spirit is beign used, so work around it by stripping out any
extra whitespace from the input.  Bleh!

15 years agoosd: mon: caps store auth_uid as an int for fast checking
Greg Farnum [Thu, 4 Mar 2010 02:40:22 +0000 (18:40 -0800)]
osd: mon: caps store auth_uid as an int for fast checking

15 years agocephx: Add auth_uid (if present) to Info for all service types
Greg Farnum [Thu, 4 Mar 2010 02:40:18 +0000 (18:40 -0800)]
cephx: Add auth_uid (if present) to Info for all service types

15 years agoosd: OSDCaps have a better check for ownership
Greg Farnum [Wed, 3 Mar 2010 23:57:27 +0000 (15:57 -0800)]
osd: OSDCaps have a better check for ownership

15 years agoauthtool: give generated key specific uid if one is provided on the cli.
Greg Farnum [Wed, 3 Mar 2010 23:26:11 +0000 (15:26 -0800)]
authtool: give generated key specific uid if one is provided on the cli.

Of course, you can also now just specify it in the caps file.

15 years agoRevert a number of auth_uid commits.
Greg Farnum [Wed, 3 Mar 2010 21:02:06 +0000 (13:02 -0800)]
Revert a number of auth_uid commits.

Attempting to add an auth_uid to all the relevant structs has gotten too messy;
it *will* get messed up at some point in the future. So we're moving it into
the string map caps, and the machines can store it in their local structs
however they like.
Note to self: In future, do not attempt to extend mirrored structs without
great cause. Or else commit to making them properly-encapsulated objects.

Revert "auth: Add an auth_uid to AuthTicket. Still to do: copy it around"

This reverts commit 62c8ceba870eae66e26b4796e3adc468e0165028.

Revert "auth: misc printing and initialization fixes"

This reverts commit ae8ed243dff02a83cc33c2bf4f4e3715715c482b.

Revert "authtool: set generated key to specific uid if one is given"

This reverts commit 2ab6e75c9b0b2b1f0965ad9ce6ea6a701b6e0098.

Revert "auth: constant for unknown/unsecured user"

This reverts commit ea01f18305f5cd79fe8ff69fcbe4dc4b5f13c2f1.

Revert "auth: auth_uid needs to be in AuthCapsInfo as well."

This reverts commit d499cf5c0524b2266170f9fe1b7b53451b84aa73.

Revert "auth: Add a uid field to EntityAuth; make it a required feature"

This reverts commit 14052d4b12a7efb178af5147d761a1589c23e413.

Conflicts:

src/include/ceph_fs.h

15 years agotodo
Sage Weil [Thu, 4 Mar 2010 00:55:12 +0000 (16:55 -0800)]
todo

15 years agoinit-ceph: return success error code on missing ceph.conf if no -c
Sage Weil [Tue, 2 Mar 2010 23:41:23 +0000 (15:41 -0800)]
init-ceph: return success error code on missing ceph.conf if no -c

This will avoid errors when installing/removing the unconfigured
package.

15 years agomds: fix snapid tests in encode_inodestat
Sage Weil [Tue, 2 Mar 2010 23:35:49 +0000 (15:35 -0800)]
mds: fix snapid tests in encode_inodestat

Snapid should always be non-zero; assert as much.

This fixes bug where valid was set to false when stating dir
inodes on non-auth mds's, which in turn returned no caps to
clients and, in the case of cfuse, caused a crash.

15 years agomds: fix null pointer deref in resolve on mostly-empty mds
Sage Weil [Wed, 3 Mar 2010 17:47:37 +0000 (09:47 -0800)]
mds: fix null pointer deref in resolve on mostly-empty mds

We may not have any dirfrags during resolve if the mds crashed
while stopping.

15 years agojournal: set committing_seq in commit_start
Sage Weil [Wed, 3 Mar 2010 17:47:00 +0000 (09:47 -0800)]
journal: set committing_seq in commit_start

We need to set committing_seq when we first block access to the
fs in commit_start(), NOT in commit_started(), as by that time
we may have queued all sorts of additional entries for the
journal.  The committing_seq is all about syncing up with the
live fs (via op_apply_start), not what's queued for the journal.

15 years agoosd: use per-PG ObjectStore::Sequencer when possible
Sage Weil [Tue, 2 Mar 2010 23:09:24 +0000 (15:09 -0800)]
osd: use per-PG ObjectStore::Sequencer when possible

Otherwise, when it doesn't matter, use the default.  This
serialized io submission to btrfs at the lower layer within a
single PG.  In general this is not significant, since we have
lots of PGs.  We could potentionally do per object in some cases,
but we'd have to be careful about snapshots and such.  Keep it
simple for now.

15 years agofilestore: add Sequencer to queue_transaction interface
Sage Weil [Tue, 2 Mar 2010 23:07:29 +0000 (15:07 -0800)]
filestore: add Sequencer to queue_transaction interface

The (optional) sequencer parameter lets you order operations
submitted via the same Sequencer relative to each other.  If no
sequencer is specified, a default one is used.  Operations are
single-threaded with respect to an individual sequencer, so you
effectively get single threaded io submission to btrfs/whatever
if you do not specify a sequencer.

15 years agomsgr: don't redefine value of ENTITY_TYPE_AUTH
Sage Weil [Tue, 2 Mar 2010 20:39:43 +0000 (12:39 -0800)]
msgr: don't redefine value of ENTITY_TYPE_AUTH

15 years agoosd: fix TRIMTRUNC truncation size
Yehuda Sadeh [Tue, 2 Mar 2010 18:07:39 +0000 (10:07 -0800)]
osd: fix TRIMTRUNC truncation size

15 years agofilestore: use separate finisher for journaled ahead completion
Sage Weil [Tue, 2 Mar 2010 18:46:42 +0000 (10:46 -0800)]
filestore: use separate finisher for journaled ahead completion

I don't love it, but this fixes the problem: we can't mix ondisk
and onreadable completions in the same finisher queue.

15 years ago0.19.1
Sage Weil [Mon, 1 Mar 2010 18:17:08 +0000 (10:17 -0800)]
0.19.1

15 years agobuilddebs.sh: suppress lintian as root warning
Sage Weil [Tue, 2 Mar 2010 18:02:36 +0000 (10:02 -0800)]
builddebs.sh: suppress lintian as root warning

15 years agoauth: Add an auth_uid to AuthTicket. Still to do: copy it around
Greg Farnum [Tue, 2 Mar 2010 17:51:19 +0000 (09:51 -0800)]
auth: Add an auth_uid to AuthTicket. Still to do: copy it around

15 years agoauth: misc printing and initialization fixes
Greg Farnum [Sat, 27 Feb 2010 01:20:43 +0000 (17:20 -0800)]
auth: misc printing and initialization fixes

15 years agovstart:/mkcephfs: set client.admin auth_uid to 0
Greg Farnum [Sat, 27 Feb 2010 01:20:18 +0000 (17:20 -0800)]
vstart:/mkcephfs: set client.admin auth_uid to 0

15 years agoauthtool: set generated key to specific uid if one is given
Greg Farnum [Fri, 26 Feb 2010 23:34:50 +0000 (15:34 -0800)]
authtool: set generated key to specific uid if one is given

15 years agomsgr: Remove the type CEPH_ENTITY_TYPE_ADMIN.
Greg Farnum [Fri, 26 Feb 2010 19:28:25 +0000 (11:28 -0800)]
msgr: Remove the type CEPH_ENTITY_TYPE_ADMIN.
It *looks* like this won't break EntityName's isAdmin() function as that
depends on a set name, and client.admin will satisfy it. I think.

15 years agoceph_fs: Split CEPH_FEATURE_{SUPPORTED, REQUIRED} flags into service-based flags
Greg Farnum [Fri, 26 Feb 2010 18:57:37 +0000 (10:57 -0800)]
ceph_fs: Split CEPH_FEATURE_{SUPPORTED, REQUIRED} flags into service-based flags
msgr: New get_{required,supported}_bits methods which calculate required bits
based on type of self and of peer. Replace all hard-coded flag uses with these.

15 years agoOSD: If an auth_uid owns a pool and has no explicit permissions,
Greg Farnum [Fri, 26 Feb 2010 00:37:07 +0000 (16:37 -0800)]
OSD: If an auth_uid owns a pool and has no explicit permissions,
grant it full privileges.

15 years agoosd: Add auth_uid to OSDCaps, and fill in.
Greg Farnum [Fri, 26 Feb 2010 00:28:46 +0000 (16:28 -0800)]
osd: Add auth_uid to OSDCaps, and fill in.

15 years agoauth: constant for unknown/unsecured user
Greg Farnum [Fri, 26 Feb 2010 00:30:39 +0000 (16:30 -0800)]
auth: constant for unknown/unsecured user

15 years agofilestore: fix ondisk vs onreadable_sync deadlock
Sage Weil [Tue, 2 Mar 2010 17:57:25 +0000 (09:57 -0800)]
filestore: fix ondisk vs onreadable_sync deadlock

Do ondisk completion async in journaled_ahead completion to avoid
any onreadable_sync getting held up behind an ondisk completion.

Reuse the op_finisher finisher thread for this.

15 years agotodo
Sage Weil [Tue, 2 Mar 2010 17:45:58 +0000 (09:45 -0800)]
todo

15 years agobuilddebs.sh: keep base.tgz outside ~/debian
Sage Weil [Tue, 2 Mar 2010 17:45:55 +0000 (09:45 -0800)]
builddebs.sh: keep base.tgz outside ~/debian

15 years agomds: put forced open sessions in OPENING then OPEN
Sage Weil [Tue, 2 Mar 2010 00:34:17 +0000 (16:34 -0800)]
mds: put forced open sessions in OPENING then OPEN

We use OPENING state to indicate sessions that are being
imported.  Fix get_or_add_open_session() to NOT set the session
state (except to STATE_NEW if new) so that the caller can do
the right thing.  Otherwise, the prepare_force_open_sessions()
can't tell if it just forced open a session (and needs it to be
OPENING) or if it was already open.  Subsequently cap migrations
weren't working if the client didn't already have a session
open.

There is still a bug: if the import aborts, we have an OPENING
session with no actual open client_session message queued.  Maybe
we should have a different state instead of OPENING... IMPORTING?

15 years agotodo
Sage Weil [Mon, 1 Mar 2010 18:41:13 +0000 (10:41 -0800)]
todo

15 years agodebian: new release, push, build, publish scripts
Sage Weil [Mon, 1 Mar 2010 04:19:04 +0000 (20:19 -0800)]
debian: new release, push, build, publish scripts

15 years agoMakefile: fix /sbin hack
Sage Weil [Sun, 28 Feb 2010 22:39:55 +0000 (14:39 -0800)]
Makefile: fix /sbin hack

misplaced ;'s

15 years agoMakefile: include debian/
Sage Weil [Sun, 28 Feb 2010 22:39:45 +0000 (14:39 -0800)]
Makefile: include debian/

15 years agomds: fix (new) sessionmap decoding
Sage Weil [Fri, 26 Feb 2010 23:42:43 +0000 (15:42 -0800)]
mds: fix (new) sessionmap decoding

der!

15 years agomds: fix mds_export_targets message parent
Sage Weil [Fri, 26 Feb 2010 23:41:04 +0000 (15:41 -0800)]
mds: fix mds_export_targets message parent

Needs to be a PaxosServiceMessage.  The monitor was assuming
as much, casting, and getting a gibberish prior paxos version.

15 years agoqa: download linux tarball from ceph.newdream.net for kernel compile test
Sage Weil [Fri, 26 Feb 2010 22:50:54 +0000 (14:50 -0800)]
qa: download linux tarball from ceph.newdream.net for kernel compile test

15 years agocauthtool: validate arguments better, cleanup
Sage Weil [Fri, 26 Feb 2010 21:29:17 +0000 (13:29 -0800)]
cauthtool: validate arguments better, cleanup

Sanity check arguments up front.  Clean up code a bit.

15 years agoosd: use onreadable_sync finishers to drop ondisk locks
Sage Weil [Fri, 26 Feb 2010 20:30:07 +0000 (12:30 -0800)]
osd: use onreadable_sync finishers to drop ondisk locks

This fixes a deadlock where we are holding pg->lock, block
waiting for the ondisk lock, but the unlock completion is stuck
behind something else waiting on pg->lock in the finisher queue.

15 years agofilestore: add onreadable_sync callback
Sage Weil [Fri, 26 Feb 2010 20:29:17 +0000 (12:29 -0800)]
filestore: add onreadable_sync callback

Add an additional completion context that gets called
synchronously when the operation completes, instead of getting
shunted to the async finisher thread.  This allows us to make
sure certain completion events happen without getting 'stuck
in line' behind other completions with conflicting locks.

15 years agocontext: minor finish_contexts() cleanup
Sage Weil [Fri, 26 Feb 2010 20:09:17 +0000 (12:09 -0800)]
context: minor finish_contexts() cleanup

15 years agofinisher: generic C_OnFinisher context
Sage Weil [Fri, 26 Feb 2010 19:16:04 +0000 (11:16 -0800)]
finisher: generic C_OnFinisher context

Queue given context on given finisher.

15 years agoobjectstore: conflate onjournal and ondisk
Sage Weil [Fri, 26 Feb 2010 19:10:29 +0000 (11:10 -0800)]
objectstore: conflate onjournal and ondisk

No callers actually make this distinction, and the ObjectStore
hides the details of if/whether/how things go to the journal
or disk or in what order, so simplify things all around.

15 years agomds: revise mds sessionmap encoding [disk format change]
Sage Weil [Thu, 25 Feb 2010 23:50:09 +0000 (15:50 -0800)]
mds: revise mds sessionmap encoding [disk format change]

Encode session name before session itself, so that we can use
an existing session instead of allocating a new one.  This lets
us keep eagerly reconnecting clients that connect before we
load the sessionmap.

Add proper struct_v.  Drop useless/incorrect 'n' value.

Continue to read old format, of course.  Some minor hackery
because we didn't have a struct_v before.

15 years agomds: initialize session state, even if we had it already
Sage Weil [Thu, 25 Feb 2010 23:48:00 +0000 (15:48 -0800)]
mds: initialize session state, even if we had it already

This ensures that eagerly reconnecting clients get set to OPEN
when we replay their session from the journal.

15 years agomds: assert client_msut_resend on forward.
Sage Weil [Thu, 25 Feb 2010 23:38:42 +0000 (15:38 -0800)]
mds: assert client_msut_resend on forward.

15 years agomds: print session states as string; nicer dump
Sage Weil [Thu, 25 Feb 2010 23:25:03 +0000 (15:25 -0800)]
mds: print session states as string; nicer dump

15 years agoencoding: make bool encoder explicitly u8
Sage Weil [Thu, 25 Feb 2010 23:24:15 +0000 (15:24 -0800)]
encoding: make bool encoder explicitly u8

15 years agoauth: auth_uid needs to be in AuthCapsInfo as well.
Greg Farnum [Thu, 25 Feb 2010 21:34:47 +0000 (13:34 -0800)]
auth: auth_uid needs to be in AuthCapsInfo as well.

Conflicts:

src/auth/Auth.h

15 years agoauthmon: reminder --> remainder, for less confusion!
Greg Farnum [Thu, 25 Feb 2010 18:46:36 +0000 (10:46 -0800)]
authmon: reminder --> remainder, for less confusion!

15 years agomds: if we have no subtrees on rejoin_done, leave cluster
Sage Weil [Thu, 25 Feb 2010 19:48:35 +0000 (11:48 -0800)]
mds: if we have no subtrees on rejoin_done, leave cluster

15 years agomds: fix trim_non_auth empty lru case
Sage Weil [Thu, 25 Feb 2010 19:48:14 +0000 (11:48 -0800)]
mds: fix trim_non_auth empty lru case

If our lru is empty, make sure we clean things out _after_
unpinning the subtrees!  This came up after an mds leaving the
cluster crashed before it finished, and on replay/rejoin had
no auth subtrees.

15 years agoqa: specify logdir on command line (or assume rundir)
Sage Weil [Thu, 25 Feb 2010 18:53:15 +0000 (10:53 -0800)]
qa: specify logdir on command line (or assume rundir)

Don't just put logs with the qa source.  Among other things that
means we can't run runallonce.sh twice.

15 years agoosd: do not activate pg if lost osds and no acting has gone active
Sage Weil [Thu, 25 Feb 2010 18:52:20 +0000 (10:52 -0800)]
osd: do not activate pg if lost osds and no acting has gone active

If the no acting osd has gone active since it most recently
joined the pg, then we may not have up to date pg state (log,
etc).  If may even be empty.

If so, then do not activate even if an osd is marked lost.

15 years agoosd: detect permanently lost objects, and continue
Sage Weil [Thu, 25 Feb 2010 18:40:25 +0000 (10:40 -0800)]
osd: detect permanently lost objects, and continue

If we mark an osd lost, and subsequently there are some objects
that are permanently lost, recover.  Adjust the missing map to
no longer expect those new revisions.  (FIXME: pg stats are not
correctly adjusted; a repair will be needed.)

15 years agoosd: send log events to monitor
Sage Weil [Thu, 25 Feb 2010 18:39:01 +0000 (10:39 -0800)]
osd: send log events to monitor

15 years agoosd: print lost_at
Sage Weil [Wed, 24 Feb 2010 19:07:07 +0000 (11:07 -0800)]
osd: print lost_at

15 years agomds: fix sessionmap decoding
Sage Weil [Wed, 24 Feb 2010 05:31:15 +0000 (21:31 -0800)]
mds: fix sessionmap decoding

There's a session count value encoded, but it's a meaningless
upper bound.  Stop decoding when we hit the end of the buffer
instead.

15 years agorados: revert indentation so it matches kernel. Oops.
Greg Farnum [Wed, 24 Feb 2010 23:44:03 +0000 (15:44 -0800)]
rados: revert indentation so it matches kernel. Oops.

15 years agomsgr: Set features in ceph_msg_connect_reply
Greg Farnum [Wed, 24 Feb 2010 23:26:27 +0000 (15:26 -0800)]
msgr: Set features in ceph_msg_connect_reply

15 years agoauth: Add a uid field to EntityAuth; make it a required feature
Greg Farnum [Wed, 24 Feb 2010 22:41:11 +0000 (14:41 -0800)]
auth: Add a uid field to EntityAuth; make it a required feature

15 years agorados: fix indentation
Greg Farnum [Tue, 23 Feb 2010 20:35:55 +0000 (12:35 -0800)]
rados: fix indentation

15 years agofiler: remove -> purge_range, and scale to large ranges
Sage Weil [Wed, 24 Feb 2010 18:48:31 +0000 (10:48 -0800)]
filer: remove -> purge_range, and scale to large ranges

Redefine remove interface to operate over a range of objects
numbers, not a byte range, since we are removing objects.  It is
the caller's responsibility to ensure they have the proper
range (by mapping from the ceph_file_layout).

And behave when the range is large by only allowing a few in
flight remove requests at once.

Eventually the objecter probably needs a more generalized request
throttling mechanism, but this will do for now.

15 years agomds: make scatter_nudge actually nudge when replica asks
Sage Weil [Wed, 24 Feb 2010 05:08:56 +0000 (21:08 -0800)]
mds: make scatter_nudge actually nudge when replica asks

If we're not replicated, there is no need to twiddle the
lockstate.. we can just write out any dirty data, as when we
have delayed rstat propagation.  If we are replicated, though,
and a replica asks to nudge the lock, we had better nudge the
lock state!

15 years agomds: correctly set root inode_auth during recovery
Sage Weil [Wed, 24 Feb 2010 05:01:32 +0000 (21:01 -0800)]
mds: correctly set root inode_auth during recovery

Set to root node id as indicated by mdsmap.  Setting the auth
bit alone isn't sufficient.

15 years agomds: show nref=%d if MDS_REF_SET is not defined
Sage Weil [Tue, 23 Feb 2010 23:52:01 +0000 (15:52 -0800)]
mds: show nref=%d if MDS_REF_SET is not defined

So we can see the ref count, at least!

15 years agomds: fix file purge race
Sage Weil [Tue, 23 Feb 2010 23:51:39 +0000 (15:51 -0800)]
mds: fix file purge race

Handle the case where a new inode ref appears while we are
purging an inode.  If so, we just truncate it to 0, so that next
time we go through purge_stray() we don't have to do the work
over again.

This can happen if a client goes snooping in the stray dir (or
who knows what else!).

15 years agofilestore: explicitly parse args for _touch
Sage Weil [Tue, 23 Feb 2010 21:28:18 +0000 (13:28 -0800)]
filestore: explicitly parse args for _touch

15 years agoinit-ceph: don't barf on dash when no command
Sage Weil [Tue, 23 Feb 2010 00:10:50 +0000 (16:10 -0800)]
init-ceph: don't barf on dash when no command

15 years agoautomake: fix mount sbin dir when configured with prefix
Yehuda Sadeh [Tue, 23 Feb 2010 23:56:33 +0000 (15:56 -0800)]
automake: fix mount sbin dir when configured with prefix