]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
16 years agoauth: auth scheme notes
Sage Weil [Wed, 19 Aug 2009 17:18:29 +0000 (10:18 -0700)]
auth: auth scheme notes

16 years agoMerge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable
Sage Weil [Wed, 19 Aug 2009 17:15:34 +0000 (10:15 -0700)]
Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable

16 years agokclient: requeue cap if cap send fails
Sage Weil [Wed, 19 Aug 2009 17:14:49 +0000 (10:14 -0700)]
kclient: requeue cap if cap send fails

16 years agokclient: don't reuse message for revoke_ack
Sage Weil [Wed, 19 Aug 2009 16:53:17 +0000 (09:53 -0700)]
kclient: don't reuse message for revoke_ack

This is error prone (multiple paths for sending caps) and screws
up the msg pools.

16 years agomds: shut up cap sanity check
Sage Weil [Tue, 18 Aug 2009 21:59:20 +0000 (14:59 -0700)]
mds: shut up cap sanity check

16 years agokclient: use reference counted ceph_buffer for xattr blob, msg middle
Sage Weil [Tue, 18 Aug 2009 21:59:06 +0000 (14:59 -0700)]
kclient: use reference counted ceph_buffer for xattr blob, msg middle

16 years agofix client caps encoding
Sage Weil [Tue, 18 Aug 2009 20:36:30 +0000 (13:36 -0700)]
fix client caps encoding

16 years agouclient/hadoop: Implement lstat_precise.
Greg Farnum [Tue, 18 Aug 2009 20:31:25 +0000 (13:31 -0700)]
uclient/hadoop: Implement lstat_precise.

libceph: Some functions were getting C bindings where it
didn't make sense (having string parameters. Fixed now.

16 years agouClient: Whoops, apparently I thought stat's atime was in millis, but it's in seconds.
Greg Farnum [Tue, 18 Aug 2009 19:52:51 +0000 (12:52 -0700)]
uClient: Whoops, apparently I thought stat's atime was in millis, but it's in seconds.

16 years agomsgr: handle 'middle' section of message
Sage Weil [Tue, 18 Aug 2009 19:16:42 +0000 (12:16 -0700)]
msgr: handle 'middle' section of message

16 years agoHadoop: What's with all these unused variables?
Greg Farnum [Tue, 18 Aug 2009 17:33:59 +0000 (10:33 -0700)]
Hadoop: What's with all these unused variables?

16 years agoHadoop: Javadoc and cleanup in CephInput/OutputStream.
Greg Farnum [Tue, 18 Aug 2009 15:41:40 +0000 (08:41 -0700)]
Hadoop: Javadoc and cleanup in CephInput/OutputStream.

16 years agoHadoop: Javadoc and cleanup in CephInputStream.
Greg Farnum [Tue, 18 Aug 2009 00:15:01 +0000 (17:15 -0700)]
Hadoop: Javadoc and cleanup in CephInputStream.

16 years agokclient: alloc 'middle' section of messages via callback
Sage Weil [Mon, 17 Aug 2009 23:51:13 +0000 (16:51 -0700)]
kclient: alloc 'middle' section of messages via callback

16 years agokclient: fix up msgpool some
Sage Weil [Mon, 17 Aug 2009 23:50:45 +0000 (16:50 -0700)]
kclient: fix up msgpool some

16 years agouclient: A Sage-given fix for something Sage broke.
Greg Farnum [Mon, 17 Aug 2009 22:56:04 +0000 (15:56 -0700)]
uclient: A Sage-given fix for something Sage broke.

16 years agomsgr: add 'middle' section to msgs
Sage Weil [Mon, 17 Aug 2009 21:57:42 +0000 (14:57 -0700)]
msgr: add 'middle' section to msgs

16 years agokclient: use msgpools for some messages
Sage Weil [Mon, 17 Aug 2009 20:36:15 +0000 (13:36 -0700)]
kclient: use msgpools for some messages

16 years agoHadoop: cleanup compile bugs from previous cleanup work.
Greg Farnum [Mon, 17 Aug 2009 19:38:00 +0000 (12:38 -0700)]
Hadoop: cleanup compile bugs from previous cleanup work.

16 years agokclient: add msgpools
Sage Weil [Mon, 17 Aug 2009 19:36:47 +0000 (12:36 -0700)]
kclient: add msgpools

16 years agoHadoop: Remove an exists call by checking return codes on mkdirs
Greg Farnum [Sat, 15 Aug 2009 00:29:45 +0000 (17:29 -0700)]
Hadoop: Remove an exists call by checking return codes on mkdirs

16 years agoHadoop: Remove references to uid and gid.
Greg Farnum [Sat, 15 Aug 2009 00:07:39 +0000 (17:07 -0700)]
Hadoop: Remove references to uid and gid.

16 years agoHadoop: Remove unused getLength and supporting C stuff.
Greg Farnum [Sat, 15 Aug 2009 00:04:29 +0000 (17:04 -0700)]
Hadoop: Remove unused getLength and supporting C stuff.

16 years agoHadoop: uses the new stat_precise.
Greg Farnum [Fri, 14 Aug 2009 23:58:13 +0000 (16:58 -0700)]
Hadoop: uses the new stat_precise.

16 years agouclient/libceph: setattr and _setattr now use a stat_precise struct
Greg Farnum [Fri, 14 Aug 2009 23:55:27 +0000 (16:55 -0700)]
uclient/libceph: setattr and _setattr now use a stat_precise struct
that handles both seconds and microseconds.
stat_precise has a stat_precise(struct stat) constructor.
ll_setattr still uses struct stat.

16 years agotestceph: Clarify use of endl so it's non-ambiguous when the includes change.
Greg Farnum [Fri, 14 Aug 2009 22:20:48 +0000 (15:20 -0700)]
testceph: Clarify use of endl so it's non-ambiguous when the includes change.

16 years agoHadoop: More Javadoc, indentation fixes, etc.
Greg Farnum [Fri, 14 Aug 2009 20:37:14 +0000 (13:37 -0700)]
Hadoop: More Javadoc, indentation fixes, etc.

16 years agoHadoop: Convert bytes to kb in statfs
Greg Farnum [Fri, 14 Aug 2009 20:36:36 +0000 (13:36 -0700)]
Hadoop: Convert bytes to kb in statfs

16 years agoHadoop: Javadoc and consistency.
Greg Farnum [Thu, 13 Aug 2009 20:56:13 +0000 (13:56 -0700)]
Hadoop: Javadoc and consistency.

16 years agoHadoop: Adds the getStatus method introduced by Hadoop .21;
Greg Farnum [Wed, 12 Aug 2009 23:54:47 +0000 (16:54 -0700)]
Hadoop: Adds the getStatus method introduced by Hadoop .21;
currently commented out since it doesn't compile in .20, but it's tested.

16 years agokclient: zero pages we did readahead on
Sage Weil [Fri, 14 Aug 2009 21:37:36 +0000 (14:37 -0700)]
kclient: zero pages we did readahead on

If we get -ENOENT or a short read on readahead, we should still
zero the pages and add them to the page cache, to avoid a future
readpage on each one.

16 years agokclient: zero page on ->readpage() ENOENT
Sage Weil [Fri, 14 Aug 2009 21:31:30 +0000 (14:31 -0700)]
kclient: zero page on ->readpage() ENOENT

16 years agokclient: fix bad up_read(snap_rwsem) on readpage failure in write_begin
Sage Weil [Fri, 14 Aug 2009 21:31:05 +0000 (14:31 -0700)]
kclient: fix bad up_read(snap_rwsem) on readpage failure in write_begin

16 years agomount.ceph: key -> secret
Sage Weil [Fri, 14 Aug 2009 19:50:03 +0000 (12:50 -0700)]
mount.ceph: key -> secret

16 years agokclient: kill unused unsafe_writeback option
Sage Weil [Fri, 14 Aug 2009 19:33:07 +0000 (12:33 -0700)]
kclient: kill unused unsafe_writeback option

16 years agokclient: fix up snapdirname, secret mount options
Sage Weil [Fri, 14 Aug 2009 19:32:29 +0000 (12:32 -0700)]
kclient: fix up snapdirname, secret mount options

16 years agomount: translate keyfile=file to key=thekey
Sage Weil [Wed, 5 Aug 2009 22:10:38 +0000 (15:10 -0700)]
mount: translate keyfile=file to key=thekey

By reading the first line from the file.

16 years agotodo
Sage Weil [Fri, 14 Aug 2009 18:57:19 +0000 (11:57 -0700)]
todo

16 years agomds: keep precalculated _issued instead of recalcing each time
Sage Weil [Fri, 14 Aug 2009 18:09:10 +0000 (11:09 -0700)]
mds: keep precalculated _issued instead of recalcing each time

16 years agomds: rewrite Capability issue/revoke tracking
Sage Weil [Fri, 14 Aug 2009 17:56:39 +0000 (10:56 -0700)]
mds: rewrite Capability issue/revoke tracking

Use a list.  Track everything.  Be smart about trimming the list.

16 years agokclient: set issue_seq in revoke ack
Sage Weil [Fri, 14 Aug 2009 17:56:11 +0000 (10:56 -0700)]
kclient: set issue_seq in revoke ack

16 years agotodo
Sage Weil [Thu, 13 Aug 2009 23:51:06 +0000 (16:51 -0700)]
todo

16 years agouclient: clean up write path a bit; better max_size handling
Sage Weil [Thu, 13 Aug 2009 23:50:59 +0000 (16:50 -0700)]
uclient: clean up write path a bit; better max_size handling

16 years agokclient: check size on llseek(..., SEEK_END)
Sage Weil [Thu, 13 Aug 2009 22:43:49 +0000 (15:43 -0700)]
kclient: check size on llseek(..., SEEK_END)

16 years agouclient: check size on lseek(..., SEEK_END)
Sage Weil [Thu, 13 Aug 2009 22:38:38 +0000 (15:38 -0700)]
uclient: check size on lseek(..., SEEK_END)

16 years agouclient: remove dead code
Sage Weil [Thu, 13 Aug 2009 22:38:24 +0000 (15:38 -0700)]
uclient: remove dead code

16 years agotodo
Sage Weil [Thu, 13 Aug 2009 22:33:51 +0000 (15:33 -0700)]
todo

16 years agouclient: handle short sync reads vs eof
Sage Weil [Thu, 13 Aug 2009 22:30:14 +0000 (15:30 -0700)]
uclient: handle short sync reads vs eof

16 years agoosd: reorder snapc setup and ORDERSNAP check
Sage Weil [Thu, 13 Aug 2009 22:12:08 +0000 (15:12 -0700)]
osd: reorder snapc setup and ORDERSNAP check

16 years agoradosgw: remove unneeded INT_MAX
Yehuda Sadeh [Thu, 13 Aug 2009 22:28:42 +0000 (15:28 -0700)]
radosgw: remove unneeded INT_MAX

16 years agoradosgw: list objects in chunks
Yehuda Sadeh [Thu, 13 Aug 2009 22:03:02 +0000 (15:03 -0700)]
radosgw: list objects in chunks

16 years agokclient: zero tail of page in readpage, readpages after short read
Sage Weil [Thu, 13 Aug 2009 20:41:24 +0000 (13:41 -0700)]
kclient: zero tail of page in readpage, readpages after short read

ceph_osdc_readpages isn't zeroing for us anymore (as of commit
23b81b9082c987a6f8221eb81c77fd7701086c5b).

16 years agokclient: check EOF on sync read to do short result when appropriate
Sage Weil [Thu, 13 Aug 2009 20:38:04 +0000 (13:38 -0700)]
kclient: check EOF on sync read to do short result when appropriate

We only want to return a short read if we read the end of file.
Otherwise, a short object read means we hit a hole and need to
zero-fill.

16 years agoconfigure: fix --with-radosgw
Sage Weil [Thu, 13 Aug 2009 18:23:54 +0000 (11:23 -0700)]
configure: fix --with-radosgw

16 years agomds: track caps we release in requests, and reissue on request cleanup if needed
Sage Weil [Thu, 13 Aug 2009 00:08:04 +0000 (17:08 -0700)]
mds: track caps we release in requests, and reissue on request cleanup if needed

We may suppress cap issue when we release caps in a request.  A lock state
change may have changed the allowed caps and should normally have issued
caps, but we suppress that because the request will way to embed that
normally.  When we cleanup the request, if we haven't issued on that cap
for some reason (maybe the request errored out, or forwarded, etc.), force
an issue then.

16 years agomds: do not suppress cap msg if it is a revocation
Sage Weil [Wed, 12 Aug 2009 20:19:25 +0000 (13:19 -0700)]
mds: do not suppress cap msg if it is a revocation

This can cause things to hang, because the mds is waiting for a revocation
ack that is never going to arrive.

In contrast, an issue can be suppressed if we know we are going to issue
to the client later.

16 years agoHadoop: Added some checks for not-a-file paths;
Greg Farnum [Tue, 11 Aug 2009 23:09:22 +0000 (16:09 -0700)]
Hadoop: Added some checks for not-a-file paths;
changed what delete returns on not-a-file.

16 years agouClient: move last_flush_tid into Inodes,
Greg Farnum [Tue, 11 Aug 2009 17:44:39 +0000 (10:44 -0700)]
uClient: move last_flush_tid into Inodes,
make kick_flushing_caps faster by overwriting tids.

16 years agoMakefile: include stop.sh in tarball
Sage Weil [Tue, 11 Aug 2009 23:29:01 +0000 (16:29 -0700)]
Makefile: include stop.sh in tarball

16 years agotodo
Sage Weil [Tue, 11 Aug 2009 23:22:11 +0000 (16:22 -0700)]
todo

16 years agopsim: ifdef out dead code
Sage Weil [Tue, 11 Aug 2009 23:14:41 +0000 (16:14 -0700)]
psim: ifdef out dead code

16 years agofilestore: clean out old debug print
Sage Weil [Tue, 11 Aug 2009 23:07:04 +0000 (16:07 -0700)]
filestore: clean out old debug print

16 years agouclient: avoid cap release delay on revoke
Sage Weil [Tue, 11 Aug 2009 22:43:07 +0000 (15:43 -0700)]
uclient: avoid cap release delay on revoke

16 years agorev ondisk versions
Sage Weil [Tue, 11 Aug 2009 22:24:40 +0000 (15:24 -0700)]
rev ondisk versions

16 years agoauth: add versioning to ClientTicket
Sage Weil [Tue, 28 Jul 2009 18:31:48 +0000 (11:31 -0700)]
auth: add versioning to ClientTicket

16 years agokclient: print osdmap pgid info
Sage Weil [Tue, 11 Aug 2009 22:21:07 +0000 (15:21 -0700)]
kclient: print osdmap pgid info

16 years agokclient: refactor readpages, striping
Sage Weil [Tue, 11 Aug 2009 22:20:51 +0000 (15:20 -0700)]
kclient: refactor readpages, striping

Make zero filling conditional on whether we did a short read or
the caller wants zeroed pages (e.g. O_DIRECT).  Simply lowest level
osdc readpages to do a short read if it hits a stripe boundary;
that is sufficient for the ->readpages() aops.

16 years agokclient: fix msgr incoming msg allocation stupid
Sage Weil [Tue, 11 Aug 2009 22:17:43 +0000 (15:17 -0700)]
kclient: fix msgr incoming msg allocation stupid

16 years agonstring: use correct hash function !!!!
Sage Weil [Tue, 11 Aug 2009 21:57:55 +0000 (14:57 -0700)]
nstring: use correct hash function !!!!

This needs to match up with the hash used by the kernel when
hashing the object name for placement.

Use the better hash for all strings, while we're at it.

16 years agokclient: fix sync_read return value
Sage Weil [Tue, 11 Aug 2009 19:18:44 +0000 (12:18 -0700)]
kclient: fix sync_read return value

Return total number of bytes read from ceph_sync_read.

16 years agomds: fix multiclient RD+WR loner logic
Sage Weil [Tue, 11 Aug 2009 17:59:20 +0000 (10:59 -0700)]
mds: fix multiclient RD+WR loner logic

We want to go mix if there is a mix of RD and WR wanted, not
just multiple writers.

16 years agokclient: fix sync read, avoid unnecessary zeroing in readpages
Sage Weil [Tue, 11 Aug 2009 17:44:04 +0000 (10:44 -0700)]
kclient: fix sync read, avoid unnecessary zeroing in readpages

For readpages and O_DIRECT, we want to zero out the full range
of pages we tried to read, even if the OSD does a short read,
because that implies those pages are full of zeroes.

For a regular sync read, though, we want to pass the OSD's short
read back to the application, and avoid wasting time zeroing
out pages we aren't going to look at.

16 years agoosd: recover primary in version (not object) order
Sage Weil [Tue, 11 Aug 2009 17:02:19 +0000 (10:02 -0700)]
osd: recover primary in version (not object) order

This should exhibit better disk (temporal) locality.

16 years agoosd: avoid calling std::list.size() in PG print method
Sage Weil [Tue, 11 Aug 2009 16:59:09 +0000 (09:59 -0700)]
osd: avoid calling std::list.size() in PG print method

So slow!

16 years agokclient: allocate mempool prior to sget()
Sage Weil [Mon, 10 Aug 2009 22:50:03 +0000 (15:50 -0700)]
kclient: allocate mempool prior to sget()

We hold a spinlock in ceph_set_super.  And it's not the time or
place.

16 years agouClient: Now pipelines cap flushes like the kclient.
Greg Farnum [Mon, 10 Aug 2009 23:46:58 +0000 (16:46 -0700)]
uClient: Now pipelines cap flushes like the kclient.
Analagous to the kclient changes in f7e60edead6d025d167715372dad601b499fb5a4.
The kick_flushing_caps function does way too many comparisons, though.

16 years agouClient: debug output for inode issues.
Greg Farnum [Mon, 10 Aug 2009 20:30:16 +0000 (13:30 -0700)]
uClient: debug output for inode issues.

16 years agoHadoop: CEPH_SETTATTR_ATIME -> CEPH_SETATTR_ATIME typo fix
Greg Farnum [Mon, 10 Aug 2009 05:45:48 +0000 (22:45 -0700)]
Hadoop: CEPH_SETTATTR_ATIME -> CEPH_SETATTR_ATIME typo fix

16 years agotodo
Sage Weil [Mon, 10 Aug 2009 23:50:26 +0000 (16:50 -0700)]
todo

16 years agoosd: wait for primary to build backlog when needed
Sage Weil [Mon, 10 Aug 2009 23:50:06 +0000 (16:50 -0700)]
osd: wait for primary to build backlog when needed

This is still required in certain cases.. unfortunately..

16 years agokclient: decode, map osdmap pg_temp
Sage Weil [Mon, 10 Aug 2009 23:42:31 +0000 (16:42 -0700)]
kclient: decode, map osdmap pg_temp

16 years agokclient: specify incoming message allocation function
Sage Weil [Mon, 10 Aug 2009 22:31:17 +0000 (15:31 -0700)]
kclient: specify incoming message allocation function

16 years agokclient: use ceph_msg_new to allocate incoming msgs
Sage Weil [Mon, 10 Aug 2009 22:20:40 +0000 (15:20 -0700)]
kclient: use ceph_msg_new to allocate incoming msgs

Read header into a temp buffer, and delay msg allocation until we
know how big it will be.

16 years agoosd: der, prior_set may contain down osds
Sage Weil [Mon, 10 Aug 2009 21:26:24 +0000 (14:26 -0700)]
osd: der, prior_set may contain down osds

Incorrectly cleaned this up a few commits back.

16 years agoosd: fixed up some debug output
Sage Weil [Mon, 10 Aug 2009 21:26:02 +0000 (14:26 -0700)]
osd: fixed up some debug output

16 years agoosd: fix osdmap decoding typo/crash for old versions
Sage Weil [Mon, 10 Aug 2009 20:38:28 +0000 (13:38 -0700)]
osd: fix osdmap decoding typo/crash for old versions

16 years agomon: include pool op in MPoolOp msg print
Sage Weil [Mon, 10 Aug 2009 20:38:12 +0000 (13:38 -0700)]
mon: include pool op in MPoolOp msg print

16 years agokclient: GFP_NOFS for vmalloc; vmalloc large incoming msgs too
Sage Weil [Mon, 10 Aug 2009 20:29:00 +0000 (13:29 -0700)]
kclient: GFP_NOFS for vmalloc; vmalloc large incoming msgs too

16 years agoosd: pg removal in a work queue
Sage Weil [Mon, 10 Aug 2009 20:12:49 +0000 (13:12 -0700)]
osd: pg removal in a work queue

16 years agoosd: ignore info racing with PGRemove
Sage Weil [Fri, 7 Aug 2009 22:34:24 +0000 (15:34 -0700)]
osd: ignore info racing with PGRemove

We may get multiple infos during peering, because we explicitly
query priors AND osds with existing pg data send them (thus we
may get 2).

The second info can race with a PGRemove.  When we get it, we have
to realize it's not _new_ stray content.. it's old content we're
already purging.

16 years agoosd: rev protocols
Sage Weil [Fri, 7 Aug 2009 22:18:01 +0000 (15:18 -0700)]
osd: rev protocols

16 years agoelector: off by one check
Sage Weil [Fri, 7 Aug 2009 21:59:09 +0000 (14:59 -0700)]
elector: off by one check

16 years agoosd: exclude lagging peers during backlog generation
Sage Weil [Fri, 7 Aug 2009 22:37:27 +0000 (15:37 -0700)]
osd: exclude lagging peers during backlog generation

16 years agoosd: use same_acting_since instead of same_primary_since in most cases
Sage Weil [Fri, 7 Aug 2009 17:19:08 +0000 (10:19 -0700)]
osd: use same_acting_since instead of same_primary_since in most cases

16 years agoosd: track same_up_since, same_acting_since, same_primary_since
Sage Weil [Thu, 6 Aug 2009 23:53:01 +0000 (16:53 -0700)]
osd: track same_up_since, same_acting_since, same_primary_since

16 years agoosd: use pg_temp to limit acting set to nodes who don't need backlog
Sage Weil [Thu, 6 Aug 2009 23:20:04 +0000 (16:20 -0700)]
osd: use pg_temp to limit acting set to nodes who don't need backlog

We still need to do something intelligent about it (namely, generate
backlogs for up-but-not-acting nodes, and then clear the pg_temp)..

16 years agorados: statically allocate time
Sage Weil [Fri, 7 Aug 2009 17:52:03 +0000 (10:52 -0700)]
rados: statically allocate time

16 years agorados: change command line arg
Sage Weil [Thu, 6 Aug 2009 23:16:16 +0000 (16:16 -0700)]
rados: change command line arg

16 years agomon: handle MOSDPGTemp
Sage Weil [Thu, 6 Aug 2009 23:15:48 +0000 (16:15 -0700)]
mon: handle MOSDPGTemp

Used to instruct monitor to set temporary mapping of an osd pg.

16 years agoosd: track both up and acting sets in PG, PG::Interval
Sage Weil [Thu, 6 Aug 2009 20:02:53 +0000 (13:02 -0700)]
osd: track both up and acting sets in PG, PG::Interval