]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
16 years agocosd: don't screw up stdout with NULL string
Sage Weil [Sat, 28 Feb 2009 23:52:46 +0000 (15:52 -0800)]
cosd: don't screw up stdout with NULL string

16 years agoconfig: chdir_root on by default
Sage Weil [Sat, 28 Feb 2009 23:52:18 +0000 (15:52 -0800)]
config: chdir_root on by default

16 years agoconfig: use daemon() call; rename use_abspath to chdir_root
Sage Weil [Sat, 28 Feb 2009 23:48:09 +0000 (15:48 -0800)]
config: use daemon() call; rename use_abspath to chdir_root

16 years agoconfig: fix conf metaoption parsing
Sage Weil [Sat, 28 Feb 2009 05:19:52 +0000 (21:19 -0800)]
config: fix conf metaoption parsing

Remove from args[] so that caller doesn't get confused by them.

16 years agoceph-daemons: some more fixes
Yehuda Sadeh [Sat, 28 Feb 2009 01:20:10 +0000 (17:20 -0800)]
ceph-daemons: some more fixes

16 years agoMerge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable
Yehuda Sadeh [Sat, 28 Feb 2009 01:11:22 +0000 (17:11 -0800)]
Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable

16 years agoceph-daemons: some more fixes
Yehuda Sadeh [Sat, 28 Feb 2009 01:11:10 +0000 (17:11 -0800)]
ceph-daemons: some more fixes

16 years agorename sample.startup.conf
Sage Weil [Sat, 28 Feb 2009 00:41:07 +0000 (16:41 -0800)]
rename sample.startup.conf

16 years agomore cleanup
Sage Weil [Sat, 28 Feb 2009 00:39:40 +0000 (16:39 -0800)]
more cleanup

16 years agomakefile: cleanup
Sage Weil [Sat, 28 Feb 2009 00:39:09 +0000 (16:39 -0800)]
makefile: cleanup

16 years agoceph-daemons: generate list of items to stop/start in ceph_common.sh
Sage Weil [Sat, 28 Feb 2009 00:17:40 +0000 (16:17 -0800)]
ceph-daemons: generate list of items to stop/start in ceph_common.sh

nothing -> everything
mon -> all monitors (mon*)
mds0 -> just mds0

16 years agoceph-daemons: simplify crun/valgrind logic
Sage Weil [Sat, 28 Feb 2009 00:04:34 +0000 (16:04 -0800)]
ceph-daemons: simplify crun/valgrind logic

16 years agoceph-daemons: fixed merge
Yehuda Sadeh [Sat, 28 Feb 2009 00:04:20 +0000 (16:04 -0800)]
ceph-daemons: fixed merge

16 years agoMerge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable
Yehuda Sadeh [Sat, 28 Feb 2009 00:02:09 +0000 (16:02 -0800)]
Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable

16 years agoceph-daemons: minor changes
Yehuda Sadeh [Sat, 28 Feb 2009 00:01:53 +0000 (16:01 -0800)]
ceph-daemons: minor changes

16 years agoceph-daemons: 'stop' works
Sage Weil [Fri, 27 Feb 2009 23:51:55 +0000 (15:51 -0800)]
ceph-daemons: 'stop' works

16 years agoMerge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable
Yehuda Sadeh [Fri, 27 Feb 2009 23:49:01 +0000 (15:49 -0800)]
Merge branch 'unstable' of ssh://ceph.newdream.net/git/ceph into unstable

Conflicts:

src/ceph-daemons

16 years agoceph-daemons: works partially
Yehuda Sadeh [Fri, 27 Feb 2009 23:46:10 +0000 (15:46 -0800)]
ceph-daemons: works partially

16 years agovstart: some changes
Sage Weil [Fri, 27 Feb 2009 23:44:14 +0000 (15:44 -0800)]
vstart: some changes

no more crun wrapper; rename ceph_stop back to stop.sh

16 years agovstart: no more crun
Sage Weil [Fri, 27 Feb 2009 23:15:11 +0000 (15:15 -0800)]
vstart: no more crun

16 years agomkcephfs
Sage Weil [Fri, 27 Feb 2009 23:11:19 +0000 (15:11 -0800)]
mkcephfs

Still need to add optional mkbtrfs + mount stuff.

16 years agodebian: update packages
Sage Weil [Fri, 27 Feb 2009 22:23:49 +0000 (14:23 -0800)]
debian: update packages

16 years agomakefile, todo
Sage Weil [Fri, 27 Feb 2009 22:23:40 +0000 (14:23 -0800)]
makefile, todo

16 years agoconfig: specify --monmap_file on command line
Sage Weil [Fri, 27 Feb 2009 22:19:21 +0000 (14:19 -0800)]
config: specify --monmap_file on command line

Still defaults to .ceph_monmap.

16 years agoclient: fix warning
Sage Weil [Fri, 27 Feb 2009 21:12:25 +0000 (13:12 -0800)]
client: fix warning

16 years agoceph-daemon: some comments
Sage Weil [Fri, 27 Feb 2009 21:12:15 +0000 (13:12 -0800)]
ceph-daemon: some comments

16 years agoceph-daemons: no norestart any more
Yehuda Sadeh [Fri, 27 Feb 2009 22:33:15 +0000 (14:33 -0800)]
ceph-daemons: no norestart any more

16 years agoceph-daemons: read config for different entities
Yehuda Sadeh [Fri, 27 Feb 2009 22:30:09 +0000 (14:30 -0800)]
ceph-daemons: read config for different entities

16 years agocrun: replace $* with "$@"
Yehuda Sadeh [Fri, 27 Feb 2009 20:55:41 +0000 (12:55 -0800)]
crun: replace $* with "$@"

16 years agoceph-daemons: replace $* with "$@"
Yehuda Sadeh [Fri, 27 Feb 2009 20:51:51 +0000 (12:51 -0800)]
ceph-daemons: replace $* with "$@"

16 years agocrun: simplify to just restart if coredump
Sage Weil [Fri, 27 Feb 2009 20:43:10 +0000 (12:43 -0800)]
crun: simplify to just restart if coredump

16 years agocephd: added "osd journal" option
Yehuda Sadeh [Fri, 27 Feb 2009 20:36:38 +0000 (12:36 -0800)]
cephd: added "osd journal" option

16 years agoceph-daemons: add --allhosts option
Sage Weil [Fri, 27 Feb 2009 19:38:22 +0000 (11:38 -0800)]
ceph-daemons: add --allhosts option

By default only start hosts on the current host if 'host' is defined.  If
--allhosts is specified, ssh into the remote host to start/stop as needed.

16 years agosample startup.conf
Sage Weil [Fri, 27 Feb 2009 19:18:45 +0000 (11:18 -0800)]
sample startup.conf

16 years agoceph-daemons: restructured (but incomplete) init.d script
Sage Weil [Fri, 27 Feb 2009 19:03:23 +0000 (11:03 -0800)]
ceph-daemons: restructured (but incomplete) init.d script

Only start/stop items explicitly defined in startup.conf.

Start specific osds or mdss (e.g. 'start osd12')

No NUM_OSD type iteration.. that only makes sense in a testing/dev
environment.

Extract options for each daemon in both start AND stop path, so that we can
stop the right daemon... e.g. if it is on a remote host or some such thing.

Try to be smart about looking for things in . or /usr/bin, /etc/ceph, etc.

16 years agoconfig: optionally maintain a pid file
Sage Weil [Fri, 27 Feb 2009 18:57:24 +0000 (10:57 -0800)]
config: optionally maintain a pid file

Remove it when we shut down _only_ if it matches getpid().

16 years agocconf: ability to list section names
Sage Weil [Fri, 27 Feb 2009 18:23:21 +0000 (10:23 -0800)]
cconf: ability to list section names

'./cconf -c ceph.conf -l foo' will list all section names that begin with
'foo'.

16 years agoceph_init: assume CEPH_BIN is `dirname ceph_init`
Sage Weil [Fri, 27 Feb 2009 17:20:37 +0000 (09:20 -0800)]
ceph_init: assume CEPH_BIN is `dirname ceph_init`

16 years agoceph_init: default to /etc/ceph/startup.conf
Sage Weil [Fri, 27 Feb 2009 17:05:19 +0000 (09:05 -0800)]
ceph_init: default to /etc/ceph/startup.conf

16 years agodebian: Build-depends libedit-dev
Sage Weil [Fri, 27 Feb 2009 16:46:41 +0000 (08:46 -0800)]
debian: Build-depends libedit-dev

16 years agologger: validate log type; remove unused mds.logger2
Sage Weil [Fri, 27 Feb 2009 04:47:11 +0000 (20:47 -0800)]
logger: validate log type; remove unused mds.logger2

Catch any undefined columns early.  Only real non-startup runtime danger
is sending events to the wrong logger, now.

16 years agodebug: ensure a SIGHUP reopens log reasonably soon
Sage Weil [Fri, 27 Feb 2009 04:27:56 +0000 (20:27 -0800)]
debug: ensure a SIGHUP reopens log reasonably soon

Since nothing new may be written to the log for a while, check if it needs
to be reopened in the mds/osd/mon tick() method.

16 years agologger: fix again
Sage Weil [Fri, 27 Feb 2009 02:34:42 +0000 (18:34 -0800)]
logger: fix again

bah

16 years agoconfig: only build an abspath if it's not already absolute
Sage Weil [Fri, 27 Feb 2009 02:33:40 +0000 (18:33 -0800)]
config: only build an abspath if it's not already absolute

16 years agoconfig: default to etc/ceph/ceph.conf
Sage Weil [Fri, 27 Feb 2009 01:36:25 +0000 (17:36 -0800)]
config: default to etc/ceph/ceph.conf

16 years agodebian: include var/log/ceph in package
Sage Weil [Fri, 27 Feb 2009 01:23:11 +0000 (17:23 -0800)]
debian: include var/log/ceph in package

16 years agologger: cleanup; make feeble attempt to create log dir
Sage Weil [Fri, 27 Feb 2009 01:23:03 +0000 (17:23 -0800)]
logger: cleanup; make feeble attempt to create log dir

16 years agoconfig: prefix default paths with install prefix
Sage Weil [Fri, 27 Feb 2009 01:13:43 +0000 (17:13 -0800)]
config: prefix default paths with install prefix

16 years agoconfig: verify argument exists before dereferencing args[++i]
Sage Weil [Thu, 26 Feb 2009 23:05:08 +0000 (15:05 -0800)]
config: verify argument exists before dereferencing args[++i]

Avoid segfault on malformed command line args.

16 years agoconfig: use sane default paths for logs; use .conf for *start.sh
Sage Weil [Thu, 26 Feb 2009 22:50:38 +0000 (14:50 -0800)]
config: use sane default paths for logs; use .conf for *start.sh

Specify sane deafult paths for logs (/var/log/ceph/*).  Use workingdir.conf
when starting up from dstart.sh or vstart.sh to use directories relative
to the current (presumably, build) directory.

16 years agologger: fixes
Sage Weil [Thu, 26 Feb 2009 22:48:40 +0000 (14:48 -0800)]
logger: fixes

16 years agologger: identify fields with int constants instead of strings
Sage Weil [Thu, 26 Feb 2009 19:25:37 +0000 (11:25 -0800)]
logger: identify fields with int constants instead of strings

This avoids the crufty hashes and so forth.  The only downside is that
_all_ fields must be predeclared.  That's probably a good thing anyway.

Logger will assert if the key is invalid or the name hasn't been
registered.  Hopefully I haven't missed any.

16 years agoconfig: remove ms_hosts
Sage Weil [Thu, 26 Feb 2009 17:52:20 +0000 (09:52 -0800)]
config: remove ms_hosts

16 years agologger: configurable output dir
Sage Weil [Thu, 26 Feb 2009 17:52:00 +0000 (09:52 -0800)]
logger: configurable output dir

16 years agoosd: strip out hard-coded osd device paths
Sage Weil [Thu, 26 Feb 2009 17:47:42 +0000 (09:47 -0800)]
osd: strip out hard-coded osd device paths

The correct device path should be specified on the command line.

16 years agokclient: zero_user_segments doesn't appear until 2.6.25
Sage Weil [Thu, 26 Feb 2009 17:23:34 +0000 (09:23 -0800)]
kclient: zero_user_segments doesn't appear until 2.6.25

16 years agokclient: more sysfs cleanup, bug fixes
Sage Weil [Wed, 25 Feb 2009 23:47:41 +0000 (15:47 -0800)]
kclient: more sysfs cleanup, bug fixes

16 years agokclient: fix kbuild patch, import script
Sage Weil [Wed, 25 Feb 2009 23:07:38 +0000 (15:07 -0800)]
kclient: fix kbuild patch, import script

16 years agokclient: move parens
Sage Weil [Wed, 25 Feb 2009 23:07:24 +0000 (15:07 -0800)]
kclient: move parens

16 years agokclient: changes for 2.6.29
Sage Weil [Wed, 25 Feb 2009 22:40:55 +0000 (14:40 -0800)]
kclient: changes for 2.6.29

16 years agokclient: avoid simple_prepare_write()
Sage Weil [Wed, 25 Feb 2009 22:39:08 +0000 (14:39 -0800)]
kclient: avoid simple_prepare_write()

No longer exported.

16 years agokclient: separate Kconfig
Sage Weil [Wed, 25 Feb 2009 22:34:55 +0000 (14:34 -0800)]
kclient: separate Kconfig

16 years agotodos
Sage Weil [Wed, 25 Feb 2009 21:07:23 +0000 (13:07 -0800)]
todos

16 years agokclient: add module author
Sage Weil [Wed, 25 Feb 2009 20:49:48 +0000 (12:49 -0800)]
kclient: add module author

16 years agokclient: dup kobj_sysfs_ops from kobject.c
Sage Weil [Wed, 25 Feb 2009 20:49:18 +0000 (12:49 -0800)]
kclient: dup kobj_sysfs_ops from kobject.c

They're not exported, bleh.

16 years agojournal: initiate full commit when journal hits 50% full
Sage Weil [Wed, 25 Feb 2009 20:38:32 +0000 (12:38 -0800)]
journal: initiate full commit when journal hits 50% full

We want to avoid filling up the journal, particularly since
_start_sync is a no-op with a journal enabled.

16 years agofilestore: don't initiate sync on _start_sync if there's a journal
Sage Weil [Wed, 25 Feb 2009 20:37:28 +0000 (12:37 -0800)]
filestore: don't initiate sync on _start_sync if there's a journal

Journal will commit immediately anyway.. don't slow the rest
down with a full commit to disk.

16 years agoosd: don't clobber log output stream
Sage Weil [Wed, 25 Feb 2009 20:20:43 +0000 (12:20 -0800)]
osd: don't clobber log output stream

Don't print a null char pointer.

16 years agomon: only do big sync if we're flushing lots of states
Sage Weil [Wed, 25 Feb 2009 20:19:54 +0000 (12:19 -0800)]
mon: only do big sync if we're flushing lots of states

The rest of the time, fsync them individually.

16 years agokclient: include sysfs (and not proc) in kernel client patchset
Sage Weil [Wed, 25 Feb 2009 19:10:43 +0000 (11:10 -0800)]
kclient: include sysfs (and not proc) in kernel client patchset

16 years agoosd: take journal on command line
Sage Weil [Wed, 25 Feb 2009 19:05:55 +0000 (11:05 -0800)]
osd: take journal on command line

./cosd dev -j journaldev ...

16 years agokclient: remove /proc/fs/ceph
Sage Weil [Wed, 25 Feb 2009 18:09:19 +0000 (10:09 -0800)]
kclient: remove /proc/fs/ceph

/sys/fs/ceph now does everything it used to.

16 years agokclient: add other maps to sysfs
Sage Weil [Wed, 25 Feb 2009 18:06:03 +0000 (10:06 -0800)]
kclient: add other maps to sysfs

16 years agokclient: add debug levels, mask to /sys/fs/ceph
Sage Weil [Wed, 25 Feb 2009 17:29:56 +0000 (09:29 -0800)]
kclient: add debug levels, mask to /sys/fs/ceph

16 years agokclient: some sysfs cleanup
Sage Weil [Wed, 25 Feb 2009 05:14:45 +0000 (21:14 -0800)]
kclient: some sysfs cleanup

16 years agodstop: remove cosd hostname prefix
Sage Weil [Wed, 25 Feb 2009 00:58:29 +0000 (16:58 -0800)]
dstop: remove cosd hostname prefix

16 years agotodos
Sage Weil [Wed, 25 Feb 2009 00:51:09 +0000 (16:51 -0800)]
todos

16 years agodstart: remove cosd hostname prefix
Sage Weil [Wed, 25 Feb 2009 00:51:04 +0000 (16:51 -0800)]
dstart: remove cosd hostname prefix

16 years agokclient: consider issued AND implemented AND dirty when updating inode
Sage Weil [Wed, 25 Feb 2009 00:37:55 +0000 (16:37 -0800)]
kclient: consider issued AND implemented AND dirty when updating inode

We do not want to update the local inode field(s) if we
 * still hold EXCL
 * are having EXCL revoked (not issued, but still implemented)
 * are writing back EXCL (not issued or implemented, but dirty)

16 years agomds: flush cap update if affected lock is unstable
Sage Weil [Wed, 25 Feb 2009 00:33:46 +0000 (16:33 -0800)]
mds: flush cap update if affected lock is unstable

16 years agodebian: include new binaries, scripts in ceph-common
Sage Weil [Tue, 24 Feb 2009 22:30:12 +0000 (14:30 -0800)]
debian: include new binaries, scripts in ceph-common

16 years agoMakefile: mount.ceph goes in usr/sbin
Sage Weil [Tue, 24 Feb 2009 22:30:00 +0000 (14:30 -0800)]
Makefile: mount.ceph goes in usr/sbin

16 years agodebian: pull version from configure.ac
Sage Weil [Tue, 24 Feb 2009 22:21:25 +0000 (14:21 -0800)]
debian: pull version from configure.ac

16 years agodebian: specify arch on command line
Sage Weil [Tue, 24 Feb 2009 22:13:37 +0000 (14:13 -0800)]
debian: specify arch on command line

16 years agomakefile: add missing files for kernel module
Sage Weil [Tue, 24 Feb 2009 22:08:19 +0000 (14:08 -0800)]
makefile: add missing files for kernel module

16 years agodebian: script to build and upload debs to repo
Sage Weil [Tue, 24 Feb 2009 21:57:16 +0000 (13:57 -0800)]
debian: script to build and upload debs to repo

16 years agomake unstable v0.7
Sage Weil [Tue, 24 Feb 2009 21:15:53 +0000 (13:15 -0800)]
make unstable v0.7

16 years agocommon: uninit var
Sage Weil [Tue, 24 Feb 2009 20:33:21 +0000 (12:33 -0800)]
common: uninit var

16 years agodebian: cleanup, changelog fix
Sage Weil [Tue, 24 Feb 2009 20:29:28 +0000 (12:29 -0800)]
debian: cleanup, changelog fix

16 years agokclient: typo
Sage Weil [Tue, 24 Feb 2009 20:22:16 +0000 (12:22 -0800)]
kclient: typo

16 years agomds: xlock filelock during truncate
Sage Weil [Tue, 24 Feb 2009 20:21:45 +0000 (12:21 -0800)]
mds: xlock filelock during truncate

This allows client to see projected truncation before it commits.

16 years agomds: look at active (not projected) inode when issuing truncation
Sage Weil [Tue, 24 Feb 2009 19:55:58 +0000 (11:55 -0800)]
mds: look at active (not projected) inode when issuing truncation

We are interested in applying the truncation that just committed, not one
that is projected.

16 years agomds: only do truncation process when file size goes down
Sage Weil [Tue, 24 Feb 2009 19:55:23 +0000 (11:55 -0800)]
mds: only do truncation process when file size goes down

For file size increase, no special action is required...

16 years agomds: limit propagation of full auth_pin count up hierarchy
Sage Weil [Tue, 24 Feb 2009 19:52:56 +0000 (11:52 -0800)]
mds: limit propagation of full auth_pin count up hierarchy

We only care if there are _some_ auth pins, not the exact count.  So only
propagation whether there are any pings from dir -> inode, to avoid walking
all the way up the hierarchy for each pin/unpin event.

16 years agokclient: don't remove from clients list if we're not on it
Sage Weil [Mon, 23 Feb 2009 21:46:46 +0000 (13:46 -0800)]
kclient: don't remove from clients list if we're not on it

16 years agoMakefile: link libcommon, lockdep last
Sage Weil [Mon, 23 Feb 2009 18:18:46 +0000 (10:18 -0800)]
Makefile: link libcommon, lockdep last

Link libcommon.a last for everything.

Include lockdep last in libcommon so to initialize first, shutdown
last, so that g_lockdep is initialized to zero for all Mutexes.

Put config.cc next to last so that the atomic_t thread counter is
initialized before all threads are created, shutdown after all
threads are destroyed.

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