Daniel Hermann
3bf3745ec8
marsadm: use lamport clock for checking modification timestamps of symlinks
...
- Added mars_time() function returning lamport clock
- Renamed check_mtime to check_file_aged and fixed to use mars_time()
- Renamed check_all_mtimes to check_files_modified_any_of
Commits eb849e2 1be8700 fbb415a rebased on dfeb8e6
Signed-off-by: Thomas Schoebel-Theuer <tst@1und1.de>
2013-04-11 11:01:25 +02:00
Daniel Hermann
7a42f95d6c
marsadm: renam _allowed_logdelete() to _min_nondeletable_logfile()
...
Signed-off-by: Thomas Schoebel-Theuer <tst@1und1.de>
2013-04-11 11:01:25 +02:00
Daniel Hermann
5d3d777b86
marsadm: fix check_primary/check_not_primary to use actual state ('is-primary')
...
The actual state is decoded in 'actual-*/is-primary' links, while the target
state is decoded in the 'primary' link.
- check_primary() now uses actual state
- check_not_primary() now uses both actual state and target state
Commits c38a822 94ac15a rebased on eaba743
Signed-off-by: Thomas Schoebel-Theuer <tst@1und1.de>
2013-04-11 11:01:25 +02:00
Daniel Hermann
24ad742db4
infra: add Makefile.dist for administrative targets (distribution)
...
Makefile.dist contains targets for distribution/packaging, such as
the generation of release tarballs, and other administrative tasks.
Commits 43770d2 dfcd866 b04bf8d 68b9f2e 191cc1a dd6db46 rebased on eaba743
Signed-off-by: Thomas Schoebel-Theuer <tst@1und1.de>
2013-04-11 11:01:25 +02:00
Daniel Hermann
176be50435
all: preparations for out-of-tree build
...
- Makefile: Prepare for out-of-tree build
- Define CONFIG_MARS_BIGMODULE if build out-of-tree
- Adjusted target for buildtag.h generation
- Added target for mars_config.h generation (depends on Kconfig)
- Commits 949c64e 3e1d566 167dd73 rebased on eaba743
- Added script gen_config.pl to generate mars_config.h from Kconfig
(Commits f373687 dc92c2f bf863f2 rebased on eaba743
)
- Include mars_config.h in mars.h/brick.h/brick_say.h
(Commits 6f14e02 8f1b7d6 rebased on eaba743
)
Signed-off-by: Thomas Schoebel-Theuer <tst@1und1.de>
2013-04-11 11:01:25 +02:00
Thomas Schoebel-Theuer
dfeb8e6bbb
light: fix hang of logfile update
...
regression from 0f9f2b40
2013-04-10 15:15:59 +02:00
Thomas Schoebel-Theuer
c474f7ca17
light: fix start of initial sync in weird cases
2013-04-10 11:02:03 +02:00
Thomas Schoebel-Theuer
4d1bbdef5a
net: fix parsing of :port syntax
2013-04-10 11:02:03 +02:00
Thomas Schoebel-Theuer
05f202a9d4
net: allow separate ports for traffic shaping
2013-04-09 16:23:45 +02:00
Thomas Schoebel-Theuer
07a40e7881
net: add module parameter mars_port=
2013-04-09 16:10:51 +02:00
Thomas Schoebel-Theuer
eaba743456
light: separate logging of transaction logfile problems
2013-04-09 14:01:07 +02:00
Thomas Schoebel-Theuer
7a6c24c0c1
light: when jammed, create a hole in logfile sequence numbers
...
The hole will indicate the disruption, and the secondaries will
stuble over it.
2013-04-09 13:17:57 +02:00
Thomas Schoebel-Theuer
c275bec28d
light: new systematics for emergency modes (filesystem full)
2013-04-08 17:02:57 +02:00
Thomas Schoebel-Theuer
a6aaa93da7
infra: fix forgotten {get,set}_df()
2013-04-08 17:02:57 +02:00
Thomas Schoebel-Theuer
1c8fa83d1f
infra: control creation of log messages
2013-04-08 17:02:57 +02:00
Thomas Schoebel-Theuer
a693f0bc50
infra: export del_channel() for general use
2013-04-08 17:02:57 +02:00
Thomas Schoebel-Theuer
ad06f69514
infra: allow stopping of log messages
2013-04-08 17:02:57 +02:00
Thomas Schoebel-Theuer
795e931e1f
all: make CONFIG_* constants tunable in /proc/sys/mars/
2013-04-08 17:02:57 +02:00
Thomas Schoebel-Theuer
c58417d271
all: move kernel source into separate directory
2013-04-08 17:01:37 +02:00
Thomas Schoebel-Theuer
3e22a3faca
marsadm: role command distincts between actual and todo
2013-04-03 11:44:16 +02:00
Thomas Schoebel-Theuer
8ced75120b
infra: Kconfig must depend on PROC_SYSCTL
2013-04-03 11:44:16 +02:00
Thomas Schoebel-Theuer
6519dced2d
marsadm: add new 'show' command
...
Display all relevant symlinks as key=value pairs.
2013-04-03 11:44:04 +02:00
Thomas Schoebel-Theuer
9763a49551
marsadm: change whitespace to match kernel coding style
2013-04-03 09:22:32 +02:00
Thomas Schoebel-Theuer
5fc1844eba
marsadm: allow switchback to primary when I am actually primary
...
For example, when /dev/mars/something is mounted or in another use,
switching to secondary will only succeed after the device has
been closed. During this intermediate state, we allow to switch
back to primary without checking all the big checks.
2013-04-03 09:17:26 +02:00
Thomas Schoebel-Theuer
6de8dc9639
trans_logger: remove broken queue depth limit
...
It wqas broken by concept: large requests from userspace max be
split into many mrefs. Thus a limit on units of #mrefs is not
comparable to userspace limits.
Instead, the ordinary nr_requests limits on kernel device queues
should suffice to get to the intended effect.
2013-04-02 15:35:13 +02:00
Thomas Schoebel-Theuer
77470b2688
trans_logger: fix debugging code
2013-04-02 15:21:33 +02:00
Thomas Schoebel-Theuer
da35c04afd
light: tell version number upon modprobe and rmmod
2013-03-13 17:16:58 +01:00
Daniel Hermann
01340092de
marsadm: Fixed check_splitbrain() to allow obsolete version link syntax
...
Signed-off-by: Thomas Schoebel-Theuer <schoebel@bell.site>
2013-03-11 14:39:17 +01:00
Thomas Schoebel-Theuer
be57ca7949
marsadm: document global options
2013-02-13 11:57:01 +01:00
Thomas Schoebel-Theuer
1516c46bf2
marsadm: add --timeout= option
2013-02-13 11:50:44 +01:00
Thomas Schoebel-Theuer
640a1742e3
marsadm: implement mars-state command
2013-02-12 15:39:49 +01:00
Thomas Schoebel-Theuer
c47d55cc49
marsadm: fix --force for switching to secondary
2013-02-12 15:39:12 +01:00
Thomas Schoebel-Theuer
9272780a32
doc: improve README
2013-01-31 21:33:46 +01:00
Thomas Schoebel-Theuer
5a29602ad3
doc: update README
2013-01-30 06:11:31 +01:00
Thomas Schoebel-Theuer
629e4e6ca2
doc: add presentation slides from LCA2013
2013-01-29 22:32:22 +01:00
Thomas Schoebel-Theuer
d6b3a1a79c
doc: update README
2013-01-29 22:28:21 +01:00
jmann
ca0a0115b5
doc: add some German docs from Joerg
...
Signed-off-by: Thomas Schoebel-Theuer <schoebel@bell.site>
2013-01-29 04:24:09 +01:00
Thomas Schoebel-Theuer
b8dcbab382
all: prepare publication at github
2013-01-25 11:58:46 +01:00
Thomas Schoebel-Theuer
79f7e6acd3
light: fix re-computation of todo_primary
2013-01-24 11:12:16 +01:00
Thomas Schoebel-Theuer
94e28913b1
bio: use new mapfree infrastructure
2013-01-23 20:07:02 +01:00
Thomas Schoebel-Theuer
cd551926c6
infra: factor out mapfree infrastructure from aio
2013-01-23 20:07:02 +01:00
Thomas Schoebel-Theuer
806a62289c
infra: fix automatic killing on outputless bricks
2013-01-23 20:07:02 +01:00
Thomas Schoebel-Theuer
03803eeea4
server: fix races, completely separate server bricks from main bricks
2013-01-23 20:07:02 +01:00
Thomas Schoebel-Theuer
34dac0689b
infra: make killing of useless bricks selectable
2013-01-23 20:07:02 +01:00
Thomas Schoebel-Theuer
4cbd11372e
infra: make showing global statistics configurable
2013-01-23 20:07:02 +01:00
Thomas Schoebel-Theuer
62a3d791d1
light: enforce contiguity of logrotate numbers
2013-01-23 20:07:02 +01:00
Thomas Schoebel-Theuer
79f0f28ef7
mem: add debugging of order0 operations
2013-01-23 20:07:02 +01:00
Thomas Schoebel-Theuer
229092c28c
mem: improve debugging
2013-01-23 20:07:02 +01:00
Thomas Schoebel-Theuer
d02814e9c5
infra: make mem debugging independently configurable
2013-01-23 20:07:02 +01:00
Thomas Schoebel-Theuer
2271f55e8c
brick_say: make debug messages runtime-selectable
2013-01-23 20:07:02 +01:00