]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
16 years agokclient: do filemap_write_and_wait
Sage Weil [Mon, 16 Mar 2009 20:33:53 +0000 (13:33 -0700)]
kclient: do filemap_write_and_wait

The _range variant isn't exported.

16 years agoMerge commit '1e8073b75ad5172a1ef975e7c6c42406888f56ae' v0.7.1
Sage Weil [Mon, 16 Mar 2009 17:57:23 +0000 (10:57 -0700)]
Merge commit '1e8073b75ad5172a1ef975e7c6c42406888f56ae'

Conflicts:

src/init-ceph
src/mkcephfs

16 years agokclient: fix uninitialized var warnings
Sage Weil [Sun, 15 Mar 2009 22:06:09 +0000 (15:06 -0700)]
kclient: fix uninitialized var warnings

Harmless, but this shuts up the warnings.

16 years agokclient: put_page O_DIRECT pages after read or write
Sage Weil [Sun, 15 Mar 2009 21:15:30 +0000 (14:15 -0700)]
kclient: put_page O_DIRECT pages after read or write

We were leaking page refs.

16 years agovstart: only 1 mds
Sage Weil [Sun, 15 Mar 2009 21:09:31 +0000 (14:09 -0700)]
vstart: only 1 mds

16 years agokclient: make O_DIRECT io flush or truncate page cache pages
Sage Weil [Sat, 14 Mar 2009 05:35:40 +0000 (22:35 -0700)]
kclient: make O_DIRECT io flush or truncate page cache pages

This will make concurrent O_DIRECT and normal i/o slow as all hell, but it
means that normal i/o followed by O_DIRECT (or the other way around) will
behave as expected.

16 years agokclient: more cleanup
Sage Weil [Fri, 13 Mar 2009 23:54:39 +0000 (16:54 -0700)]
kclient: more cleanup

16 years agokclient: some sparse fixes
Yehuda Sadeh [Fri, 13 Mar 2009 23:54:06 +0000 (16:54 -0700)]
kclient: some sparse fixes

16 years agokclient: small cleanups
Sage Weil [Fri, 13 Mar 2009 23:50:07 +0000 (16:50 -0700)]
kclient: small cleanups

16 years agokclient: lease renewal fixes, cleanups
Sage Weil [Fri, 13 Mar 2009 23:47:30 +0000 (16:47 -0700)]
kclient: lease renewal fixes, cleanups

16 years agokclient: zero lease_renew_after ttl before requesting renewal
Yehuda Sadeh [Fri, 13 Mar 2009 23:33:02 +0000 (16:33 -0700)]
kclient: zero lease_renew_after ttl before requesting renewal

16 years agokclient: send lease renew message when passed ttl
Yehuda Sadeh [Fri, 13 Mar 2009 23:27:41 +0000 (16:27 -0700)]
kclient: send lease renew message when passed ttl

16 years agokclient: refactoring of lease msg sending, add lease half-time accounting
Yehuda Sadeh [Fri, 13 Mar 2009 23:06:19 +0000 (16:06 -0700)]
kclient: refactoring of lease msg sending, add lease half-time accounting

16 years agokclient: update lease handler to cope with a renewal
Sage Weil [Fri, 13 Mar 2009 23:23:05 +0000 (16:23 -0700)]
kclient: update lease handler to cope with a renewal

16 years agomdsmap: fix find_standby_for
Sage Weil [Fri, 13 Mar 2009 22:32:25 +0000 (15:32 -0700)]
mdsmap: fix find_standby_for

Ignore active mds' with old standby_for values.

16 years agomon: allow 'mds getmap [epoch]'
Sage Weil [Fri, 13 Mar 2009 22:24:38 +0000 (15:24 -0700)]
mon: allow 'mds getmap [epoch]'

16 years agomon: allow 'mds dump [epoch]'
Sage Weil [Fri, 13 Mar 2009 22:23:25 +0000 (15:23 -0700)]
mon: allow 'mds dump [epoch]'

So we can examine old mdsmap epochs...

16 years agokclient: clean up setattr vs caps vs i_lock
Sage Weil [Fri, 13 Mar 2009 22:07:10 +0000 (15:07 -0700)]
kclient: clean up setattr vs caps vs i_lock

We should carry i_lock over caps checks when doing setattr
updates locally.

Also, always direct setattr requests at the auth MDS.  Drop trivial
prepare_setattr helper.

16 years agokclient: remove redundant ceph_inode_holds_caps
Sage Weil [Fri, 13 Mar 2009 21:53:38 +0000 (14:53 -0700)]
kclient: remove redundant ceph_inode_holds_caps

Same as ceph_caps_issued_mask.

16 years agokclient: fix printk format
Sage Weil [Fri, 13 Mar 2009 21:53:14 +0000 (14:53 -0700)]
kclient: fix printk format

16 years agokclient: dentry_lease_is_valid cleanup
Sage Weil [Fri, 13 Mar 2009 21:42:48 +0000 (14:42 -0700)]
kclient: dentry_lease_is_valid cleanup

Make static, move to dir.c, etc.

16 years agokclient: do revalidate RDCACHE check under protection of lock
Sage Weil [Fri, 13 Mar 2009 21:41:56 +0000 (14:41 -0700)]
kclient: do revalidate RDCACHE check under protection of lock

We need to do dentry->d_time and dirci->i_version comparison under
i_lock protection.

16 years agomds: fix lease release; add lease renew support in MDS
Sage Weil [Fri, 13 Mar 2009 21:25:21 +0000 (14:25 -0700)]
mds: fix lease release; add lease renew support in MDS

16 years agoconf: use dynamic sized strings
Yehuda Sadeh [Fri, 13 Mar 2009 21:05:14 +0000 (14:05 -0700)]
conf: use dynamic sized strings

16 years agokclient: set osd op sync flag on O_SYNC|O_DIRECT sync writes
Sage Weil [Fri, 13 Mar 2009 20:58:12 +0000 (13:58 -0700)]
kclient: set osd op sync flag on O_SYNC|O_DIRECT sync writes

Otherwise they will have a high latency from the OSD.

16 years agokclient: enable direct_IO
Sage Weil [Fri, 13 Mar 2009 17:38:32 +0000 (10:38 -0700)]
kclient: enable direct_IO

16 years agokclient: refactor read path, allow O_DIRECT
Sage Weil [Fri, 13 Mar 2009 19:38:23 +0000 (12:38 -0700)]
kclient: refactor read path, allow O_DIRECT

Clean up the read path to only use a single readpages function.
Prepare page vectors in caller.  Allow O_DIRECT reads.

16 years agokclient: refactor write path to facilitate sync or O_DIRECT writes
Sage Weil [Fri, 13 Mar 2009 17:38:20 +0000 (10:38 -0700)]
kclient: refactor write path to facilitate sync or O_DIRECT writes

Refactor osd_client writepages to always take a page vector, owned
by the caller.  Move user data copy for regular sync write into
file.c.  Alternatively, build a page vector of user pages for
O_DIRECT writes.  Fix ->writepages async callers to allocate and
free the page vector.

16 years agokclient: fix file reopen on existing caps
Sage Weil [Fri, 13 Mar 2009 20:40:13 +0000 (13:40 -0700)]
kclient: fix file reopen on existing caps

We can do a local open only if the MDS already knows we want
those caps.  It doesn't actually matter if they're currently
issued to us (there may be a concurrent something-or-other going
on, but we'll get them back eventually).

16 years agokclient: show wanted in trim_rdcaps
Sage Weil [Fri, 13 Mar 2009 20:42:30 +0000 (13:42 -0700)]
kclient: show wanted in trim_rdcaps

To aid debugging.  Also, get function call out of BUG_ON argument.

16 years agoceph: fix argument parsing to allow commands with '-' in them
Sage Weil [Fri, 13 Mar 2009 19:50:06 +0000 (12:50 -0700)]
ceph: fix argument parsing to allow commands with '-' in them

16 years agoconfig: indent warning
Sage Weil [Fri, 13 Mar 2009 19:39:03 +0000 (12:39 -0700)]
config: indent warning

16 years agokclient: don't read into pages if request is aborted
Sage Weil [Fri, 13 Mar 2009 19:35:47 +0000 (12:35 -0700)]
kclient: don't read into pages if request is aborted

Check req->r_aborted in prepare_pages.

16 years agotodo
Sage Weil [Fri, 13 Mar 2009 16:43:28 +0000 (09:43 -0700)]
todo

16 years agoman: update with latest args
Sage Weil [Thu, 12 Mar 2009 23:46:16 +0000 (16:46 -0700)]
man: update with latest args

16 years agoremove newsyn
Sage Weil [Thu, 12 Mar 2009 23:17:00 +0000 (16:17 -0700)]
remove newsyn

16 years agoceph.cc: fix arg parsing
Yehuda Sadeh [Thu, 12 Mar 2009 23:27:22 +0000 (16:27 -0700)]
ceph.cc: fix arg parsing

16 years agoconfig: fix bool argument parsing
Yehuda Sadeh [Thu, 12 Mar 2009 23:19:01 +0000 (16:19 -0700)]
config: fix bool argument parsing

16 years agokclient todos
Sage Weil [Thu, 12 Mar 2009 23:11:28 +0000 (16:11 -0700)]
kclient todos

16 years agomds: clear replica lock dirty flag when state is flushed back to primary
Sage Weil [Thu, 12 Mar 2009 21:48:42 +0000 (14:48 -0700)]
mds: clear replica lock dirty flag when state is flushed back to primary

The dirty -> flush -> clean bit is probably overkill, given the
locking rules, but it's very explicit.

16 years agoconf: redo all arg parsing for different modules
Yehuda Sadeh [Thu, 12 Mar 2009 23:08:13 +0000 (16:08 -0700)]
conf: redo all arg parsing for different modules

16 years agoconf: arguments parsing cleanup
Yehuda Sadeh [Thu, 12 Mar 2009 22:09:59 +0000 (15:09 -0700)]
conf: arguments parsing cleanup

16 years agomds: fix excl->mix transition when replicated
Sage Weil [Thu, 12 Mar 2009 21:18:39 +0000 (14:18 -0700)]
mds: fix excl->mix transition when replicated

16 years agomds: simplify lock msg handler by leveraging eval_gather
Sage Weil [Thu, 12 Mar 2009 20:49:40 +0000 (13:49 -0700)]
mds: simplify lock msg handler by leveraging eval_gather

The one exception is that we need to issue_caps when we first
receive the message in order to do the revocation; pass in a bool
to do that.

16 years agovstart: no thrashing for now
Sage Weil [Thu, 12 Mar 2009 20:35:20 +0000 (13:35 -0700)]
vstart: no thrashing for now

16 years agomds: merge scatter and file lock message handlers
Sage Weil [Thu, 12 Mar 2009 20:35:13 +0000 (13:35 -0700)]
mds: merge scatter and file lock message handlers

And fix some issues along the way.

16 years agomds: lock lock actions (no more LOCK_AC_SCATTER)
Sage Weil [Thu, 12 Mar 2009 19:22:42 +0000 (12:22 -0700)]
mds: lock lock actions (no more LOCK_AC_SCATTER)

16 years agomds: more eval_gather() caller fixes
Sage Weil [Thu, 12 Mar 2009 19:03:54 +0000 (12:03 -0700)]
mds: more eval_gather() caller fixes

16 years agomds: add SYNC_MIX2 state
Sage Weil [Thu, 12 Mar 2009 18:59:25 +0000 (11:59 -0700)]
mds: add SYNC_MIX2 state

After replica releases RDCACHE back to mds, it still needs to wait
before moving to MIX state.

16 years agomds: only adjust inode auth_pins if we have cum auth pins
Sage Weil [Thu, 12 Mar 2009 18:57:26 +0000 (11:57 -0700)]
mds: only adjust inode auth_pins if we have cum auth pins

Add some assertions to that effect.

16 years agomds: remove bad eval_gather calls
Sage Weil [Thu, 12 Mar 2009 18:37:58 +0000 (11:37 -0700)]
mds: remove bad eval_gather calls

Not needed if lock state is stable.

16 years agomds: cope with non-mdr request in path_traverse
Sage Weil [Thu, 12 Mar 2009 18:30:52 +0000 (11:30 -0700)]
mds: cope with non-mdr request in path_traverse

For example, an MDiscover.

16 years agomds: fix eval_gather on capless inode locks
Sage Weil [Thu, 12 Mar 2009 18:28:26 +0000 (11:28 -0700)]
mds: fix eval_gather on capless inode locks

There are inode locks without caps (e.g. INEST).

16 years agokclient: friendly mds state names
Sage Weil [Thu, 12 Mar 2009 18:16:18 +0000 (11:16 -0700)]
kclient: friendly mds state names

16 years agomds: MDSMap::get_state_naem -> ceph_mds_state_name
Sage Weil [Thu, 12 Mar 2009 18:14:09 +0000 (11:14 -0700)]
mds: MDSMap::get_state_naem -> ceph_mds_state_name

16 years agokclient: decode new mdsmap format
Sage Weil [Thu, 12 Mar 2009 18:07:24 +0000 (11:07 -0700)]
kclient: decode new mdsmap format

16 years agotodo
Sage Weil [Thu, 12 Mar 2009 17:57:06 +0000 (10:57 -0700)]
todo

16 years agovstart: more mdss
Sage Weil [Thu, 12 Mar 2009 17:56:55 +0000 (10:56 -0700)]
vstart: more mdss

16 years agomonclient: do not show monmap source on startup
Sage Weil [Thu, 12 Mar 2009 17:56:46 +0000 (10:56 -0700)]
monclient: do not show monmap source on startup

16 years agocmon, cosd: show fsid on startup
Sage Weil [Thu, 12 Mar 2009 17:56:37 +0000 (10:56 -0700)]
cmon, cosd: show fsid on startup

16 years agocmds: show name, fsid on startup
Sage Weil [Thu, 12 Mar 2009 17:56:25 +0000 (10:56 -0700)]
cmds: show name, fsid on startup

16 years agoobjecter: throttle read or write ops as per osdmap flags
Sage Weil [Thu, 12 Mar 2009 17:34:39 +0000 (10:34 -0700)]
objecter: throttle read or write ops as per osdmap flags

16 years agoosdmap: PAUSE flags
Sage Weil [Thu, 12 Mar 2009 17:34:21 +0000 (10:34 -0700)]
osdmap: PAUSE flags

Globally throttle read or write or recovery activity via the
osdmap.

16 years agoinitscripts: print cconf command if verbose
Sage Weil [Thu, 12 Mar 2009 21:12:04 +0000 (14:12 -0700)]
initscripts: print cconf command if verbose

16 years agocosd: change osd path
Sage Weil [Thu, 12 Mar 2009 21:09:02 +0000 (14:09 -0700)]
cosd: change osd path

16 years agoinitscript: remove mon_addr generation
Sage Weil [Thu, 12 Mar 2009 21:02:33 +0000 (14:02 -0700)]
initscript: remove mon_addr generation

Not needed.

16 years agoceph_common: use new cconf syntax
Sage Weil [Thu, 12 Mar 2009 20:59:05 +0000 (13:59 -0700)]
ceph_common: use new cconf syntax

16 years agomkcephfs: modprobe btrfs after the mkfs
Sage Weil [Thu, 12 Mar 2009 17:15:19 +0000 (10:15 -0700)]
mkcephfs: modprobe btrfs after the mkfs

16 years agoconf: enlarge post processing buffer
Yehuda Sadeh [Thu, 12 Mar 2009 21:05:53 +0000 (14:05 -0700)]
conf: enlarge post processing buffer

16 years agocconf: fix -s options and some other cleanup
Yehuda Sadeh [Thu, 12 Mar 2009 21:03:04 +0000 (14:03 -0700)]
cconf: fix -s options and some other cleanup

16 years agocconf: fix behavior when key not found
Yehuda Sadeh [Thu, 12 Mar 2009 19:26:08 +0000 (12:26 -0700)]
cconf: fix behavior when key not found

16 years agoconf: enable default values
Yehuda Sadeh [Thu, 12 Mar 2009 19:16:10 +0000 (12:16 -0700)]
conf: enable default values

16 years agocconf: shouldn't open the conf file
Yehuda Sadeh [Thu, 12 Mar 2009 18:48:42 +0000 (11:48 -0700)]
cconf: shouldn't open the conf file

16 years agocconf: can read keys that are not related to g_conf
Yehuda Sadeh [Thu, 12 Mar 2009 18:44:10 +0000 (11:44 -0700)]
cconf: can read keys that are not related to g_conf

16 years agocconf: restructure, use common infrastructure
Yehuda Sadeh [Thu, 12 Mar 2009 17:48:24 +0000 (10:48 -0700)]
cconf: restructure, use common infrastructure

16 years agocmon: typo
Yehuda Sadeh [Thu, 12 Mar 2009 16:33:16 +0000 (09:33 -0700)]
cmon: typo

16 years agodrop dstart/dstop
Sage Weil [Thu, 12 Mar 2009 05:05:57 +0000 (22:05 -0700)]
drop dstart/dstop

16 years agoinitscript: get pid_file so stop/reload/etc work
Sage Weil [Thu, 12 Mar 2009 05:05:01 +0000 (22:05 -0700)]
initscript: get pid_file so stop/reload/etc work

16 years agovstart: fix mkmonfs call
Sage Weil [Thu, 12 Mar 2009 05:00:08 +0000 (22:00 -0700)]
vstart: fix mkmonfs call

16 years agoconfutils: initialize pointer to null
Sage Weil [Thu, 12 Mar 2009 04:57:09 +0000 (21:57 -0700)]
confutils: initialize pointer to null

16 years agoconf: parameter substitution work (not fully working)
Yehuda Sadeh [Thu, 12 Mar 2009 00:32:08 +0000 (17:32 -0700)]
conf: parameter substitution work (not fully working)

16 years agoconfig: clean up sample conf
Sage Weil [Wed, 11 Mar 2009 23:31:00 +0000 (16:31 -0700)]
config: clean up sample conf

16 years agomakefile: remove sample.cluster.conf
Sage Weil [Wed, 11 Mar 2009 23:28:52 +0000 (16:28 -0700)]
makefile: remove sample.cluster.conf

16 years agocconf: added $num to substitution variables
Yehuda Sadeh [Wed, 11 Mar 2009 23:30:15 +0000 (16:30 -0700)]
cconf: added $num to substitution variables

16 years agocconf: can use substitution variables
Yehuda Sadeh [Wed, 11 Mar 2009 23:28:54 +0000 (16:28 -0700)]
cconf: can use substitution variables

16 years agoconfig: fix sample conf files
Sage Weil [Wed, 11 Mar 2009 23:07:16 +0000 (16:07 -0700)]
config: fix sample conf files

16 years agoinitscript: more fixes
Sage Weil [Wed, 11 Mar 2009 23:21:50 +0000 (16:21 -0700)]
initscript: more fixes

16 years agomkmonfs: fix argument parsing
Sage Weil [Wed, 11 Mar 2009 23:21:43 +0000 (16:21 -0700)]
mkmonfs: fix argument parsing

16 years agoconfig: fix cosd conf files
Sage Weil [Wed, 11 Mar 2009 23:09:46 +0000 (16:09 -0700)]
config: fix cosd conf files

16 years agoconfig: just ceph.conf, no more cluster.conf
Sage Weil [Wed, 11 Mar 2009 23:03:05 +0000 (16:03 -0700)]
config: just ceph.conf, no more cluster.conf

16 years agoconfig: more config fixes
Sage Weil [Wed, 11 Mar 2009 22:49:30 +0000 (15:49 -0700)]
config: more config fixes

16 years agoman: some manpages fixes
Sage Weil [Wed, 11 Mar 2009 22:49:17 +0000 (15:49 -0700)]
man: some manpages fixes

16 years agoconfig: can use alternative module name
Yehuda Sadeh [Wed, 11 Mar 2009 22:52:39 +0000 (15:52 -0700)]
config: can use alternative module name

16 years agoconfig: search in global section by default
Yehuda Sadeh [Wed, 11 Mar 2009 22:33:43 +0000 (15:33 -0700)]
config: search in global section by default

16 years agoinitscript: lots of changes
Sage Weil [Wed, 11 Mar 2009 22:23:46 +0000 (15:23 -0700)]
initscript: lots of changes

16 years agoconfig: fix mds, mon, osd startup
Sage Weil [Wed, 11 Mar 2009 21:58:58 +0000 (14:58 -0700)]
config: fix mds, mon, osd startup

16 years agomds: rework mds standby framework
Sage Weil [Wed, 11 Mar 2009 20:42:19 +0000 (13:42 -0700)]
mds: rework mds standby framework

16 years agomds: fix up startup options
Sage Weil [Wed, 11 Mar 2009 20:08:33 +0000 (13:08 -0700)]
mds: fix up startup options

16 years agomds: name mds daemon instances independent of their current logical rank
Sage Weil [Wed, 11 Mar 2009 20:04:03 +0000 (13:04 -0700)]
mds: name mds daemon instances independent of their current logical rank

16 years agocconf: resort to search in global section
Yehuda Sadeh [Wed, 11 Mar 2009 22:27:20 +0000 (15:27 -0700)]
cconf: resort to search in global section