Re: e2fsck of non-root filesystem failing at boot time, because already mounted?

2015-02-20 Thread Richard Braun
On Sat, Feb 21, 2015 at 12:04:36AM +0100, Justus Winter wrote: > > > $ showtrans /media/erich > > > /hurd/ext2fs --no-atime /dev/hd2 > > > $ grep hd2 < /etc/fstab > > > /dev/hd2/media/erich ext2 defaults 0 2 > > That's odd. Though I must admit I do not use passive translat

[committed mach 1/4] linux: fix compiler warning

2015-02-20 Thread Justus Winter
If the loop above completes at least one iteration, `i' will be larger than zero. * linux/dev/glue/block.c (rdwr_full): Add assertion to appease the compiler. --- linux/dev/glue/block.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux/dev/glue/block.c b/linux/dev/glue/block.c index 79a36

[committed mach 3/4] i386: drop needless instruction from `copyout'

2015-02-20 Thread Justus Winter
* i386/i386/locore.S (copyout): Do not needlessly copy length to %eax first. --- i386/i386/locore.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/i386/i386/locore.S b/i386/i386/locore.S index 15715f6..2e04bb8 100644 --- a/i386/i386/locore.S +++ b/i386/i386/locore.S @@ -1

[committed mach 4/4] i386: specialize `copyinmsg' and `copyoutmsg'

2015-02-20 Thread Justus Winter
Previously, `copyinmsg' was the same function as `copyin'. The former is for messages, and the size of messages is a multiple of four. Likewise for `copyoutmsg'. Provide a specialized version of both functions. This shaves off a couple of instructions and improves our IPC performance. * i386/i3

[committed mach 2/4] kern: improve assert

2015-02-20 Thread Justus Winter
Use the ternary operator to implement `assert' like it is done in the glibc. The glibcs changelog does not mention the rationale behind this change, but doing the same seems to improve our IPC performance. * kern/assert.h (assert): Define macro using the ternary operator. --- kern/assert.h | 7 +

Re: e2fsck of non-root filesystem failing at boot time, because already mounted?

2015-02-20 Thread Justus Winter
Hey Thomas :) Quoting Thomas Schwinge (2015-02-20 23:38:49) > On Fri, 20 Feb 2015 22:44:17 +0100, I wrote: > > As in the subject, and see the attached QEMU screenshot. Has something > > been changed in the boot process ("startup" is new; Justus CCed ;-) just /hurd/startup is the new /hurd/init,

Re: e2fsck of non-root filesystem failing at boot time, because already mounted?

2015-02-20 Thread Thomas Schwinge
Hi! On Fri, 20 Feb 2015 22:44:17 +0100, I wrote: > As in the subject, and see the attached QEMU screenshot. Has something > been changed in the boot process ("startup" is new; Justus CCed ;-) just > in case) that would cause this non-root filesystem to be mounted that > early, so that e2fsck can'

e2fsck of non-root filesystem failing at boot time, because already mounted?

2015-02-20 Thread Thomas Schwinge
Hi! As in the subject, and see the attached QEMU screenshot. Has something been changed in the boot process ("startup" is new; Justus CCed ;-) just in case) that would cause this non-root filesystem to be mounted that early, so that e2fsck can't then process it anymore? "Erich" has not needed a

Re: [PATCH 8/8] startup: bind the startup server to /servers/startup

2015-02-20 Thread Thomas Schwinge
Hi David! On Thu, 18 Sep 2014 17:14:17 -0400, David Michael wrote: > On Wed, Sep 3, 2014 at 8:33 AM, Justus Winter > <4win...@informatik.uni-hamburg.de> wrote: > > Bind the startup server to /servers/startup instead. Use this to > > contact the startup server. > > I'm trying to test this patch,

[committed mach 1/2] kern: avoid #if 0ing out thread_collect_scan

2015-02-20 Thread Justus Winter
Currently, `thread_collect_scan' does nothing because `pcb_collect' is a nop. Its body is exempt from compilation by means of the preprocessor. This is unfortunate as it increases the risk of bitrot, and we still need to pay the price of rate-limiting thread_collect_scan. * kern/thread.c (thread

[committed mach 2/2] kern: reduce the size of `struct thread'

2015-02-20 Thread Justus Winter
Reduce the size of `struct thread' by twelve bytes making it fit into exactly five cache lines (on 32-bit platforms). * kern/thread.h (struct thread): Group the state and all flags in a bitfield. (TH_EV_WAKE_ACTIVE, TH_EV_STATE): Provide macros that generate keys for synchronization primitives lik