]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
16 years agoobjecter: shouldn't swap bufferlist buffers
Yehuda Sadeh [Fri, 20 Feb 2009 22:49:44 +0000 (14:49 -0800)]
objecter: shouldn't swap bufferlist buffers

16 years agocommon: remove warning
Yehuda Sadeh [Thu, 19 Feb 2009 23:42:56 +0000 (15:42 -0800)]
common: remove warning

16 years agocommon: virtual destructor for class Timer
Yehuda Sadeh [Thu, 19 Feb 2009 23:41:36 +0000 (15:41 -0800)]
common: virtual destructor for class Timer

16 years agotodo
Sage Weil [Thu, 19 Feb 2009 23:25:21 +0000 (15:25 -0800)]
todo

16 years agoSafeTimer: getting rid of global timer
Yehuda Sadeh [Fri, 13 Feb 2009 21:28:24 +0000 (13:28 -0800)]
SafeTimer: getting rid of global timer

16 years agokclient: only unregister after both acks
Sage Weil [Thu, 19 Feb 2009 23:22:12 +0000 (15:22 -0800)]
kclient: only unregister after both acks

Partially reverts behavior of b732c0ddb8a990a97b98606a6d9a387e5a21e3e5

We need the request to stay in the request_tree so that when the
safe arrives we can look it up (duh).  Also, we need to keep a
reference to the request during that period...

16 years agomds: reverse rename argument order
Sage Weil [Thu, 19 Feb 2009 22:47:03 +0000 (14:47 -0800)]
mds: reverse rename argument order

Order change introduced by 3dc43aa8e6606be15695d565715b6a7a1b2d38ea

16 years agoclient: reverse rename argument order
Sage Weil [Thu, 19 Feb 2009 22:45:37 +0000 (14:45 -0800)]
client: reverse rename argument order

16 years agokclient: add missing r_wait list_head init
Sage Weil [Thu, 19 Feb 2009 22:38:33 +0000 (14:38 -0800)]
kclient: add missing r_wait list_head init

16 years agokclient: initialize request list_heads
Sage Weil [Thu, 19 Feb 2009 22:30:16 +0000 (14:30 -0800)]
kclient: initialize request list_heads

16 years agokclient: cast path
Sage Weil [Thu, 19 Feb 2009 22:23:38 +0000 (14:23 -0800)]
kclient: cast path

path[12] will either point to freshly allocated paths (that we
later kfree) or a provided const path.

16 years agokclient: unregister mds requests on unsafe reply
Sage Weil [Thu, 19 Feb 2009 21:59:15 +0000 (13:59 -0800)]
kclient: unregister mds requests on unsafe reply

Fresh vs unsafe mds request replay is handled separately.  So,
unregister requests on first reply.  This avoids a stray dentry
reference if we unmount before getting a final safe (although
eventually those should be explicitly flushed as well).

16 years agokclient: clean up some mdsc locking
Sage Weil [Thu, 19 Feb 2009 20:10:40 +0000 (12:10 -0800)]
kclient: clean up some mdsc locking

Do not drop mds mutex in __do_request().

16 years agokclient: fix path memory leak
Sage Weil [Thu, 19 Feb 2009 21:08:27 +0000 (13:08 -0800)]
kclient: fix path memory leak

16 years agokclient: async mds requestion completion callbacks
Sage Weil [Thu, 19 Feb 2009 21:10:40 +0000 (13:10 -0800)]
kclient: async mds requestion completion callbacks

16 years agokclient: fix fh_to_dentry; move build_path to mds_client.c
Sage Weil [Thu, 19 Feb 2009 00:35:45 +0000 (16:35 -0800)]
kclient: fix fh_to_dentry; move build_path to mds_client.c

16 years agokclient: mds requests in terms of dentries, not paths
Sage Weil [Thu, 19 Feb 2009 00:19:39 +0000 (16:19 -0800)]
kclient: mds requests in terms of dentries, not paths

Generate mds request paths when request is sent, so that it reflects
the current state of mds capabilities.  Eventually we can then make
the relative paths based on the current capabilities for that mds..

16 years agokclient: async mds requests
Sage Weil [Wed, 18 Feb 2009 22:13:49 +0000 (14:13 -0800)]
kclient: async mds requests

Restructure the mds client to handle mds request asynchronously, so
that we can handle requests that are not managed by a blocking
thread.

16 years agokclient: remove extra log output
Yehuda Sadeh [Thu, 19 Feb 2009 19:53:11 +0000 (11:53 -0800)]
kclient: remove extra log output

16 years agokclient: sync writeout when not pdflush
Yehuda Sadeh [Thu, 19 Feb 2009 17:43:28 +0000 (09:43 -0800)]
kclient: sync writeout when not pdflush

16 years agomds: only flush journal when we need to
Sage Weil [Thu, 19 Feb 2009 19:01:51 +0000 (11:01 -0800)]
mds: only flush journal when we need to

Force a flush every tick just in case.

16 years agokclient: set 'sync' flag for fsync
Sage Weil [Wed, 18 Feb 2009 22:20:05 +0000 (14:20 -0800)]
kclient: set 'sync' flag for fsync

This will ensure that fsynced data is committed immediately by the
OSDs.

16 years agoscript: fix check_osd_request_latency
Sage Weil [Wed, 18 Feb 2009 19:53:51 +0000 (11:53 -0800)]
script: fix check_osd_request_latency

16 years agoscript: check_osd_request_latency
Sage Weil [Wed, 18 Feb 2009 19:47:23 +0000 (11:47 -0800)]
script: check_osd_request_latency

16 years agoconf: can turn on debug logs in startup.conf
Yehuda Sadeh [Wed, 18 Feb 2009 19:07:19 +0000 (11:07 -0800)]
conf: can turn on debug logs in startup.conf

16 years agoconf: add debug_ms option
Yehuda Sadeh [Tue, 17 Feb 2009 21:26:24 +0000 (13:26 -0800)]
conf: add debug_ms option

16 years agomds: don't rdlock stat fields that client has EXCL cap for
Sage Weil [Tue, 17 Feb 2009 20:15:39 +0000 (12:15 -0800)]
mds: don't rdlock stat fields that client has EXCL cap for

16 years agoadd ceph_init to distribution
yehudasa [Tue, 17 Feb 2009 18:57:48 +0000 (10:57 -0800)]
add ceph_init to distribution

16 years agokclient: backport changes to kernel 2.6.25
Yehuda Sadeh [Tue, 17 Feb 2009 18:45:34 +0000 (10:45 -0800)]
kclient: backport changes to kernel 2.6.25

16 years agokclient: fix mdsc->snap_empty cleanup
Yehuda Sadeh [Sat, 14 Feb 2009 01:09:12 +0000 (17:09 -0800)]
kclient: fix mdsc->snap_empty cleanup

16 years agokclient: remove client from client list before destorying
Yehuda Sadeh [Sat, 14 Feb 2009 01:06:22 +0000 (17:06 -0800)]
kclient: remove client from client list before destorying

16 years agokclient: fix proc cleanup
Yehuda Sadeh [Fri, 13 Feb 2009 23:02:51 +0000 (15:02 -0800)]
kclient: fix proc cleanup

16 years agoassert: some more assert_warn
Yehuda Sadeh [Fri, 13 Feb 2009 00:47:56 +0000 (16:47 -0800)]
assert: some more assert_warn

16 years agocosd: change some assert to assert_warn and clean exit
Yehuda Sadeh [Thu, 12 Feb 2009 23:05:12 +0000 (15:05 -0800)]
cosd: change some assert to assert_warn and clean exit

16 years agokclient: show some meaningful info in client proc entry
Yehuda Sadeh [Thu, 12 Feb 2009 20:43:17 +0000 (12:43 -0800)]
kclient: show some meaningful info in client proc entry

16 years agokclient: per client proc data file
Yehuda Sadeh [Thu, 12 Feb 2009 19:05:45 +0000 (11:05 -0800)]
kclient: per client proc data file

16 years agokclient: added a proc function to read client data
Yehuda Sadeh [Wed, 11 Feb 2009 00:21:20 +0000 (16:21 -0800)]
kclient: added a proc function to read client data

16 years agokclient: proc subdir for each ceph client
Yehuda Sadeh [Wed, 11 Feb 2009 00:08:02 +0000 (16:08 -0800)]
kclient: proc subdir for each ceph client

16 years agokclient: keep global list of ceph clients
Yehuda Sadeh [Tue, 10 Feb 2009 23:42:51 +0000 (15:42 -0800)]
kclient: keep global list of ceph clients

16 years agoassert: warn on assertion if requested for current thread
Yehuda Sadeh [Tue, 10 Feb 2009 00:29:43 +0000 (16:29 -0800)]
assert: warn on assertion if requested for current thread

16 years agoadded a common initialization function
Yehuda Sadeh [Mon, 9 Feb 2009 23:46:02 +0000 (15:46 -0800)]
added a common initialization function

16 years agotls: addeed a thread local storage infrastructure
Yehuda Sadeh [Mon, 9 Feb 2009 22:59:07 +0000 (14:59 -0800)]
tls: addeed a thread local storage infrastructure
(cherry picked from commit 1b6b128f4e2aaab016575f48f2ec50d4abe002c9)

16 years agoosd: fix log level
Yehuda Sadeh [Sat, 31 Jan 2009 00:24:41 +0000 (16:24 -0800)]
osd: fix log level

16 years agomds: make sure we eval_stray when inode was replicated
Sage Weil [Fri, 30 Jan 2009 23:13:43 +0000 (15:13 -0800)]
mds: make sure we eval_stray when inode was replicated

Also, drop dn to end of lru if unlinked and last cap.

16 years agomds: remove traces of CDir::committed_version_equivalent
Sage Weil [Fri, 30 Jan 2009 23:04:25 +0000 (15:04 -0800)]
mds: remove traces of CDir::committed_version_equivalent

Don't think it's coming back

16 years agokclient: release CAP_LINK_RDCACHE before unlink
Sage Weil [Fri, 30 Jan 2009 23:03:21 +0000 (15:03 -0800)]
kclient: release CAP_LINK_RDCACHE before unlink

16 years agovstart: fix call to stop.sh
Sage Weil [Fri, 30 Jan 2009 23:01:03 +0000 (15:01 -0800)]
vstart: fix call to stop.sh

16 years agotodos
Sage Weil [Fri, 30 Jan 2009 23:00:53 +0000 (15:00 -0800)]
todos

16 years agoosd: print ops args correctly
Sage Weil [Fri, 30 Jan 2009 23:00:45 +0000 (15:00 -0800)]
osd: print ops args correctly

16 years agomds: use generic helper when removing a cap
Sage Weil [Fri, 30 Jan 2009 23:00:34 +0000 (15:00 -0800)]
mds: use generic helper when removing a cap

This way we make sure to do all the right checks on the locks,
mds_caps, and to call eval_stray if the inode is unlinked.

16 years agomds: fix try_remove_unlinked_dn
Sage Weil [Fri, 30 Jan 2009 22:59:24 +0000 (14:59 -0800)]
mds: fix try_remove_unlinked_dn

Clear dentry NEW flag when we commit it.. pretty sure that was the
old bug.  And we can't cheat the directory commit because the fnode
also gets updated.

16 years agomds: fix purge of 0-length inode
Sage Weil [Fri, 30 Jan 2009 21:51:49 +0000 (13:51 -0800)]
mds: fix purge of 0-length inode

16 years agomds: remove unused inode purge fields
Sage Weil [Fri, 30 Jan 2009 21:15:20 +0000 (13:15 -0800)]
mds: remove unused inode purge fields

16 years agoceph_init: fix initalization
Yehuda Sadeh [Fri, 30 Jan 2009 23:56:36 +0000 (15:56 -0800)]
ceph_init: fix initalization

16 years agoceph_init: added missing file
Yehuda Sadeh [Fri, 30 Jan 2009 23:48:56 +0000 (15:48 -0800)]
ceph_init: added missing file

16 years agoceph_init: initial version
Yehuda Sadeh [Fri, 30 Jan 2009 23:47:59 +0000 (15:47 -0800)]
ceph_init: initial version

16 years agocrun: restart only processes that should have dumped core
Yehuda Sadeh [Fri, 30 Jan 2009 20:45:31 +0000 (12:45 -0800)]
crun: restart only processes that should have dumped core

16 years agotodo
Sage Weil [Fri, 30 Jan 2009 19:43:53 +0000 (11:43 -0800)]
todo

16 years agoosd: put full original reqid in osd_op_reply
Sage Weil [Fri, 30 Jan 2009 19:40:40 +0000 (11:40 -0800)]
osd: put full original reqid in osd_op_reply

16 years agomds: typos
Sage Weil [Fri, 30 Jan 2009 19:36:37 +0000 (11:36 -0800)]
mds: typos

16 years agokclient: don't retain caps if inode is closed and nlink == 0
Sage Weil [Fri, 30 Jan 2009 19:36:28 +0000 (11:36 -0800)]
kclient: don't retain caps if inode is closed and nlink == 0

16 years agomds: rip out old purge_inode crap
Sage Weil [Fri, 30 Jan 2009 19:22:40 +0000 (11:22 -0800)]
mds: rip out old purge_inode crap

16 years agomds: simplify purge_stray
Sage Weil [Fri, 30 Jan 2009 18:41:12 +0000 (10:41 -0800)]
mds: simplify purge_stray

Just delete objects and then journal completion.  No need to do
the funky purge_inode double commit crap, since we will re-eval
strays later any (and do it all again if needed).

16 years agomds: clean up opent a bit
Sage Weil [Fri, 30 Jan 2009 18:08:44 +0000 (10:08 -0800)]
mds: clean up opent a bit

16 years agomds: drop _do_open helper
Sage Weil [Fri, 30 Jan 2009 18:07:06 +0000 (10:07 -0800)]
mds: drop _do_open helper

only one caller

16 years agomds: open O_TRUNC implemented.. but not used by kclient :/
Sage Weil [Fri, 30 Jan 2009 17:56:13 +0000 (09:56 -0800)]
mds: open O_TRUNC implemented.. but not used by kclient :/

16 years agomds: implement async truncate (trimtrunc); fix log segment trim vs purge bug
Sage Weil [Fri, 30 Jan 2009 00:53:10 +0000 (16:53 -0800)]
mds: implement async truncate (trimtrunc); fix log segment trim vs purge bug

Logsegs were allowed to trim even with outstanding purges.. fix.

16 years agoosd: fix truncate ops; add TRIMTRUNC
Sage Weil [Thu, 29 Jan 2009 22:47:46 +0000 (14:47 -0800)]
osd: fix truncate ops; add TRIMTRUNC

16 years agomds: truncate changes. not complete.
Sage Weil [Thu, 29 Jan 2009 22:47:31 +0000 (14:47 -0800)]
mds: truncate changes.  not complete.

We don't clean up after we finish our truncate.

16 years agokclient: fix and clean up osd request generation
Sage Weil [Thu, 29 Jan 2009 22:47:06 +0000 (14:47 -0800)]
kclient: fix and clean up osd request generation

Add trunc op correctly.  Clean things up by combining request
message and request struct creation.

16 years agokclient: include old size in truncate
Sage Weil [Thu, 29 Jan 2009 22:46:35 +0000 (14:46 -0800)]
kclient: include old size in truncate

16 years agokclient: truncate bits
Sage Weil [Thu, 29 Jan 2009 22:46:23 +0000 (14:46 -0800)]
kclient: truncate bits

Queue vmtruncate if we see size decrease in fill_file_info (not
just on CAP_OP_TRUNC).

16 years agokclient: include truncate osd_ops when needed
Sage Weil [Thu, 29 Jan 2009 19:22:15 +0000 (11:22 -0800)]
kclient: include truncate osd_ops when needed

16 years agoosd: MASKTRUNC and SETTRUNC osd ops
Sage Weil [Thu, 29 Jan 2009 18:58:50 +0000 (10:58 -0800)]
osd: MASKTRUNC and SETTRUNC osd ops

16 years agomds: add truncate_size
Sage Weil [Sat, 24 Jan 2009 05:22:57 +0000 (21:22 -0800)]
mds: add truncate_size

16 years agorenamed common.sh to ceph_common.sh
Yehuda Sadeh [Fri, 30 Jan 2009 19:41:06 +0000 (11:41 -0800)]
renamed common.sh to ceph_common.sh

16 years agorename stop.sh to ceph_stop, added to Makefile.am
Yehuda Sadeh [Fri, 30 Jan 2009 19:23:52 +0000 (11:23 -0800)]
rename stop.sh to ceph_stop, added to Makefile.am

16 years agocephd: update Makefile.am
Yehuda Sadeh [Fri, 30 Jan 2009 19:12:19 +0000 (11:12 -0800)]
cephd: update Makefile.am

16 years agomon: only propose new osdmap once at end of mdsmonitor tick()
Sage Weil [Fri, 30 Jan 2009 19:13:23 +0000 (11:13 -0800)]
mon: only propose new osdmap once at end of mdsmonitor tick()

16 years agoceph.sh renamed to cephd
Yehuda Sadeh [Fri, 30 Jan 2009 19:01:41 +0000 (11:01 -0800)]
ceph.sh renamed to cephd

16 years agomsgr: fix WAIT connection race handling
Sage Weil [Fri, 30 Jan 2009 19:00:43 +0000 (11:00 -0800)]
msgr: fix WAIT connection race handling

Not sure why it wasn't setting STATE_WAIT before.  Works now.

16 years agoceph.sh: some changes, fixes
Yehuda Sadeh [Fri, 30 Jan 2009 18:37:51 +0000 (10:37 -0800)]
ceph.sh: some changes, fixes

16 years agoceph.sh: some fixes
Yehuda Sadeh [Fri, 30 Jan 2009 00:20:46 +0000 (16:20 -0800)]
ceph.sh: some fixes

16 years agoceph.sh: try to locate cconf
Yehuda Sadeh [Thu, 29 Jan 2009 23:30:17 +0000 (15:30 -0800)]
ceph.sh: try to locate cconf

16 years agoceph.sh: enable script
Yehuda Sadeh [Thu, 29 Jan 2009 23:24:16 +0000 (15:24 -0800)]
ceph.sh: enable script

16 years agoceph.sh: able to specify start/stop/restart, specific modules
Yehuda Sadeh [Thu, 29 Jan 2009 23:22:52 +0000 (15:22 -0800)]
ceph.sh: able to specify start/stop/restart, specific modules

16 years agoceph.sh: add missing file
Yehuda Sadeh [Thu, 29 Jan 2009 23:02:34 +0000 (15:02 -0800)]
ceph.sh: add missing file

16 years agoceph.sh: can specify remote modules
Yehuda Sadeh [Thu, 29 Jan 2009 23:01:25 +0000 (15:01 -0800)]
ceph.sh: can specify remote modules

16 years agoceph.sh: startup script that uses conf file
Yehuda Sadeh [Thu, 29 Jan 2009 21:55:33 +0000 (13:55 -0800)]
ceph.sh: startup script that uses conf file

16 years agoosd: rev internal osd protocol
Sage Weil [Thu, 29 Jan 2009 18:16:12 +0000 (10:16 -0800)]
osd: rev internal osd protocol

16 years agoosd: push wrlocks into object_info_t
Sage Weil [Wed, 28 Jan 2009 21:06:05 +0000 (13:06 -0800)]
osd: push wrlocks into object_info_t

16 years agoosd: remove inc_lock
Sage Weil [Wed, 28 Jan 2009 19:10:21 +0000 (11:10 -0800)]
osd: remove inc_lock

16 years agoosd: combine all internal object state into single '_' object_info_t xattr
Sage Weil [Wed, 28 Jan 2009 19:08:14 +0000 (11:08 -0800)]
osd: combine all internal object state into single '_' object_info_t xattr

16 years agoosd: replace version attr with oi (object_info_t) (disk format change)
Sage Weil [Tue, 27 Jan 2009 19:20:37 +0000 (11:20 -0800)]
osd: replace version attr with oi (object_info_t) (disk format change)

Includes last reqid, mtime.  Makes backlog log entries include
a real reqid, which makes the client_reqs IndexedLog map meaningful.
Otherwise, the first backlog item we 'unindex' means the remaining
ops with reqid unknown0.0:0 aren't in the map.

This revs the osd ondisk format.

16 years agoMerge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable
Yehuda Sadeh [Thu, 29 Jan 2009 00:35:54 +0000 (16:35 -0800)]
Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable

16 years agocconf: able to specify multiple sections
Yehuda Sadeh [Thu, 29 Jan 2009 00:35:39 +0000 (16:35 -0800)]
cconf: able to specify multiple sections

16 years agodstart: --ramjournal option
Sage Weil [Thu, 29 Jan 2009 00:11:07 +0000 (16:11 -0800)]
dstart: --ramjournal option

16 years agoscripts: osd latency check script
Sage Weil [Thu, 29 Jan 2009 00:10:57 +0000 (16:10 -0800)]
scripts: osd latency check script

16 years agokclient: start writeback without blocking
Sage Weil [Wed, 28 Jan 2009 23:52:58 +0000 (15:52 -0800)]
kclient: start writeback without blocking

We just want to make sure writeback starts; we don't need/want
to wait for it to complete in the writeback thread.

16 years agocconf: set default conf filename
Yehuda Sadeh [Wed, 28 Jan 2009 18:51:18 +0000 (10:51 -0800)]
cconf: set default conf filename